feat: add multiple group tsdb reads to table merge scan

This commit is contained in:
shenglian zhou 2022-06-22 22:32:29 +08:00
parent c99f7cac79
commit fd79fcc481
1 changed files with 5 additions and 1 deletions

View File

@ -2324,6 +2324,10 @@ SSDataBlock* doTableMergeScan(SOperatorInfo* pOperator) {
if (!pInfo->hasGroupId) { if (!pInfo->hasGroupId) {
pInfo->hasGroupId = true; pInfo->hasGroupId = true;
if (tableListSize == 0) {
doSetOperatorCompleted(pOperator);
return NULL;
}
pInfo->tableStartIndex = 0; pInfo->tableStartIndex = 0;
pInfo->groupId = ((STableKeyInfo*)taosArrayGet(pInfo->tableListInfo->pTableList, pInfo->tableStartIndex))->groupId; pInfo->groupId = ((STableKeyInfo*)taosArrayGet(pInfo->tableListInfo->pTableList, pInfo->tableStartIndex))->groupId;
startGroupTableMergeScan(pOperator); startGroupTableMergeScan(pOperator);