fix: fix groud id comparision in table merge scan

This commit is contained in:
shenglian zhou 2022-07-22 16:46:01 +08:00
parent ffa306b374
commit b10a95f418
1 changed files with 7 additions and 1 deletions

View File

@ -3065,7 +3065,13 @@ int32_t getTableMergeScanExplainExecInfo(SOperatorInfo* pOptr, void** pOptrExpla
int32_t compareTableKeyInfoByGid(const void* p1, const void* p2) { int32_t compareTableKeyInfoByGid(const void* p1, const void* p2) {
const STableKeyInfo* info1 = p1; const STableKeyInfo* info1 = p1;
const STableKeyInfo* info2 = p2; const STableKeyInfo* info2 = p2;
return info1->groupId - info2->groupId; if (info1->groupId - info2->groupId > 0) {
return 1;
} else if (info1->groupId < info2->groupId) {
return -1;
} else {
return 0;
}
} }
SOperatorInfo* createTableMergeScanOperatorInfo(STableScanPhysiNode* pTableScanNode, STableListInfo* pTableListInfo, SOperatorInfo* createTableMergeScanOperatorInfo(STableScanPhysiNode* pTableScanNode, STableListInfo* pTableListInfo,