mingmwang opened a new issue, #6497: URL: https://github.com/apache/arrow-datafusion/issues/6497
### Describe the bug When the scalar subquery contains aggregation, our current rewriting strategy(Kim' method) is do the aggregation and then join(Left out join), this will lead the Count bug. Need to handle the unmatched rows and construct the computing Project ### To Reproduce _No response_ ### Expected behavior _No response_ ### Additional context _No response_ -- 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: github-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org