qzsee opened a new issue, #14404:
URL: https://github.com/apache/doris/issues/14404

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   all version
   
   ### What's Wrong?
   
   SQL:
   ```sql
   table t : k1,k2,v(sum)
   
   select k1,k2,sum(v) where k1 = 1 and 1 = 2 group by grouping 
sets((k1),(k1,k2))
   
   ERROR 1105 (HY000): errCode = 2, detailMessage = failed to get tuple idx 
when prepare with tuple id: 1, slot id: 3
   
   ```
   plan tree:
   Agg
    |
   empty
   
   `EmptySetNode` tupleIds should be composed of tuple(k1,k2) and 
`VIRTUAL_TUPLE`(Grouping_ID)
   
   But in the current code,`EmptySetNode` tupleIds  only contains tuple(k1,k2). 
So `PartitionedAggregationNode`  init `grouping_exprs_`  lead to `failed to get 
tuple idx when prepare with tuple id: 1, slot id: 3`
   
   
   ### What You Expected?
   
   Correct interpretation
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to