liukun4515 commented on code in PR #3222:
URL: https://github.com/apache/arrow-datafusion/pull/3222#discussion_r954778454
##########
datafusion/core/src/execution/context.rs:
##########
@@ -1377,6 +1378,8 @@ impl SessionState {
}
rules.push(Arc::new(ReduceOuterJoin::new()));
rules.push(Arc::new(FilterPushDown::new()));
+ // we do type coercion after filter push down so that we don't push
CAST filters to Parquet
Review Comment:
For example, `Filter expr: FLOAT32(C1) < FLOAT64(16)`. We should do type
coercion first and convert the filter expr to `CAST(INT32(C1) AS FLOAT64 <
FLOAT64(16)` and try to push the new filter expr to the table scan operation.
If you don't do the type coercion first, you will push the `expr:
FLOAT32(C1) < FLOAT64(16)` to table scan, Does this can be applied to the
parquet filter or pruning filter?
--
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]