liukun4515 commented on code in PR #3422:
URL: https://github.com/apache/arrow-datafusion/pull/3422#discussion_r967721530
##########
datafusion/core/src/physical_optimizer/pruning.rs:
##########
@@ -429,11 +429,16 @@ impl<'a> PruningExpressionBuilder<'a> {
}
};
- let (column_expr, correct_operator, scalar_expr) =
- match rewrite_expr_to_prunable(column_expr, correct_operator,
scalar_expr) {
- Ok(ret) => ret,
- Err(e) => return Err(e),
- };
+ let df_schema = DFSchema::try_from(schema.clone())?;
+ let (column_expr, correct_operator, scalar_expr) = match
rewrite_expr_to_prunable(
+ column_expr,
+ correct_operator,
+ scalar_expr,
+ df_schema,
+ ) {
+ Ok(ret) => ret,
+ Err(e) => return Err(e),
+ };
Review Comment:
update manually
--
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]