andygrove opened a new issue, #3546:
URL: https://github.com/apache/arrow-datafusion/issues/3546
**Describe the bug**
Aggregate filters do not get pushed down to table scan. This results in
invalid query plans. In this example, the column `user_id` has not been pushed
down to the table scan.
```
Projection: #SUM(user_table_1.b) FILTER (WHERE #user_id = Int64(2)) AS S1,
#SUM(user_table_1.b) AS S2
Aggregate: groupBy=[[]], aggr=[[SUM(#user_table_1.b) FILTER (WHERE
#user_id = Int64(2)), SUM(#user_table_1.b)]]
TableScan: user_table_1 projection=[b]
```
**To Reproduce**
Steps to reproduce the behavior:
**Expected behavior**
A clear and concise description of what you expected to happen.
**Additional context**
Add any other context about the problem here.
--
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]