Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong number of maxAttrNum in TupleSplitState (#14927)
we cannot get corrent number of projecting targets for executing TupleSplit Node if wrong maxAttrNum in TupleSplitState, that cause wrong results in multi-dqa sql. ``` select count(distinct a), count(distinct b) from dqa_f4 group by c; ``` For each splited tuple, we also need to project column `c` as group column besides distinct column `a` and `b`. As a result, toal maxAttrNum of TupleSplit is three instead of two, which also decided totals projection columns of Node Tuplesplit. To figure maxAttrNum correctly, we need to calculate again after we initiated all elements in TupleSplitState.
- Loading branch information