fix(query): fix the comparion error.

This commit is contained in:
Haojun Liao 2023-04-26 16:05:57 +08:00
parent 3e80f57fc7
commit 627429d490
1 changed files with 1 additions and 2 deletions

View File

@ -788,8 +788,7 @@ static int32_t tsdbReaderCreate(SVnode* pVnode, SQueryTableDataCond* pCond, STsd
goto _end;
}
if (pReader->suppInfo.colId[0] == PRIMARYKEY_TIMESTAMP_COL_ID) {
if (pReader->suppInfo.colId[0] != PRIMARYKEY_TIMESTAMP_COL_ID) {
tsdbError("the first column isn't primary timestamp, %d, %s", pReader->suppInfo.colId[0], pReader->idStr);
terrno = TSDB_CODE_INVALID_PARA;
goto _end;