Merge pull request #21796 from wangjiaming0909/fix/m/TS-3555

fix: fill operator with wrong input ts order
This commit is contained in:
dapan1121 2023-06-21 11:21:32 +08:00 committed by GitHub
commit 9c4c411b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,8 @@ static SSDataBlock* doFillImpl(SOperatorInfo* pOperator) {
// the scan order may be different from the output result order for agg interval operator.
if (pDownstream->operatorType == QUERY_NODE_PHYSICAL_PLAN_HASH_INTERVAL) {
order = ((SIntervalAggOperatorInfo*) pDownstream->info)->resultTsOrder;
} else {
order = pInfo->pFillInfo->order;
}
doHandleRemainBlockFromNewGroup(pOperator, pInfo, pResultInfo, order);