jonahgao commented on issue #7876:
URL:
https://github.com/apache/arrow-datafusion/issues/7876#issuecomment-1772330165
After some initial debugging, I found that this issue is likely caused by
the optimization rule `PushDownFilter`.
I think we should avoid pushing down non-deterministic predicates.
Before optimization:
```sh
projection: Projection: aggregate_test_100.c1, random() AS r
Aggregate: groupBy=[[aggregate_test_100.c1]], aggr=[[]]
Projection: aggregate_test_100.c1
TableScan: aggregate_test_100
```
After:
```sh
Projection: aggregate_test_100.c1, random() AS r
Aggregate: groupBy=[[aggregate_test_100.c1]], aggr=[[]]
Projection: aggregate_test_100.c1
Filter: random() <= Float64(0.2)
TableScan: aggregate_test_100, partial_filters=[random() <=
Float64(0.2)]
```
--
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]