diff --git a/src/util/src/tskiplist.c b/src/util/src/tskiplist.c index 9b8c86658d4de65c2e620ff8a249044f3fcaf6cd..85b1d3d206f07647c2fd68c9e61e7f8d7367f290 100644 --- a/src/util/src/tskiplist.c +++ b/src/util/src/tskiplist.c @@ -253,6 +253,7 @@ static __compar_fn_t getKeyComparator(int32_t keyType) { comparFn = compareInt32Val; break; case TSDB_DATA_TYPE_BIGINT: + case TSDB_DATA_TYPE_TIMESTAMP: comparFn = compareInt64Val; break; case TSDB_DATA_TYPE_BOOL: diff --git a/src/vnode/tsdb/tests/tsdbTests.cpp b/src/vnode/tsdb/tests/tsdbTests.cpp index 7b09fdfcdebc0828b08e22f30157a413a553b3ab..65522c12621ded5dab76277c985b1b96a994ce9f 100644 --- a/src/vnode/tsdb/tests/tsdbTests.cpp +++ b/src/vnode/tsdb/tests/tsdbTests.cpp @@ -48,7 +48,7 @@ TEST(TsdbTest, createRepo) { for (int j = 0; j < schemaNCols(schema); j++) { if (j == 0) { // Just for timestamp - tdAppendColVal(row, (void *)(&time), schemaColAt(schema, j)); + tdAppendColVal(row, (void *)(&ttime), schemaColAt(schema, j)); } else { // For int int val = 10; tdAppendColVal(row, (void *)(&val), schemaColAt(schema, j)); @@ -61,5 +61,7 @@ TEST(TsdbTest, createRepo) { pMsg->length = pMsg->length + sizeof(SSubmitBlk) + pBlock->len; tsdbInsertData(pRepo, pMsg); + + int k = 0; }