diff --git a/src/client/src/tscFunctionImpl.c b/src/client/src/tscFunctionImpl.c index f202818578..88b1fc0c28 100644 --- a/src/client/src/tscFunctionImpl.c +++ b/src/client/src/tscFunctionImpl.c @@ -2110,7 +2110,6 @@ static void copyTopBotRes(SQLFunctionCtx *pCtx, int32_t type) { TSKEY *output = pCtx->ptsOutputBuf; for (int32_t i = 0; i < len; ++i, output += step) { *output = tvp[i]->timestamp; - printf("-------------%lld\n", *output); } // set the corresponding tag data for each record diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 889029e834..a4909e86fe 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -22,6 +22,7 @@ #include "tstoken.h" #include "tstrbuild.h" #include "ttime.h" +#include "tast.h" #include "tscSQLParser.h" #include "tscUtil.h" diff --git a/src/util/src/textbuffer.c b/src/util/src/textbuffer.c index 860de6782b..8ce090d335 100644 --- a/src/util/src/textbuffer.c +++ b/src/util/src/textbuffer.c @@ -468,8 +468,8 @@ int32_t compare_a(tOrderDescriptor *pDescriptor, int32_t numOfRows1, int32_t s1, return ret; } } else { - SSchema *pSchema = &pDescriptor->pColumnModel->pFields[colIdx]; - int32_t ret = columnValueAscendingComparator(f1, f2, pSchema->type, pSchema->bytes); + SSchemaEx *pSchema = &pDescriptor->pColumnModel->pFields[colIdx]; + int32_t ret = columnValueAscendingComparator(f1, f2, pSchema->field.type, pSchema->field.bytes); if (ret == 0) { continue; } else { @@ -500,8 +500,8 @@ int32_t compare_d(tOrderDescriptor *pDescriptor, int32_t numOfRows1, int32_t s1, return ret; } } else { - SSchema *pSchema = &pDescriptor->pColumnModel->pFields[colIdx]; - int32_t ret = columnValueAscendingComparator(f1, f2, pSchema->type, pSchema->bytes); + SSchemaEx *pSchema = &pDescriptor->pColumnModel->pFields[colIdx]; + int32_t ret = columnValueAscendingComparator(f1, f2, pSchema->field.type, pSchema->field.bytes); if (ret == 0) { continue; } else {