debug test
This commit is contained in:
parent
d7e1481174
commit
71b42f717d
|
@ -253,6 +253,7 @@ static __compar_fn_t getKeyComparator(int32_t keyType) {
|
||||||
comparFn = compareInt32Val;
|
comparFn = compareInt32Val;
|
||||||
break;
|
break;
|
||||||
case TSDB_DATA_TYPE_BIGINT:
|
case TSDB_DATA_TYPE_BIGINT:
|
||||||
|
case TSDB_DATA_TYPE_TIMESTAMP:
|
||||||
comparFn = compareInt64Val;
|
comparFn = compareInt64Val;
|
||||||
break;
|
break;
|
||||||
case TSDB_DATA_TYPE_BOOL:
|
case TSDB_DATA_TYPE_BOOL:
|
||||||
|
|
|
@ -48,7 +48,7 @@ TEST(TsdbTest, createRepo) {
|
||||||
|
|
||||||
for (int j = 0; j < schemaNCols(schema); j++) {
|
for (int j = 0; j < schemaNCols(schema); j++) {
|
||||||
if (j == 0) { // Just for timestamp
|
if (j == 0) { // Just for timestamp
|
||||||
tdAppendColVal(row, (void *)(&time), schemaColAt(schema, j));
|
tdAppendColVal(row, (void *)(&ttime), schemaColAt(schema, j));
|
||||||
} else { // For int
|
} else { // For int
|
||||||
int val = 10;
|
int val = 10;
|
||||||
tdAppendColVal(row, (void *)(&val), schemaColAt(schema, j));
|
tdAppendColVal(row, (void *)(&val), schemaColAt(schema, j));
|
||||||
|
@ -61,5 +61,7 @@ TEST(TsdbTest, createRepo) {
|
||||||
pMsg->length = pMsg->length + sizeof(SSubmitBlk) + pBlock->len;
|
pMsg->length = pMsg->length + sizeof(SSubmitBlk) + pBlock->len;
|
||||||
|
|
||||||
tsdbInsertData(pRepo, pMsg);
|
tsdbInsertData(pRepo, pMsg);
|
||||||
|
|
||||||
|
int k = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue