liukun4515 commented on code in PR #3472:
URL: https://github.com/apache/arrow-datafusion/pull/3472#discussion_r970348233
##########
datafusion/optimizer/src/type_coercion.rs:
##########
@@ -164,11 +163,61 @@ impl ExprRewriter for TypeCoercionRewriter<'_> {
};
expr.rewrite(&mut self.const_evaluator)
}
+ Expr::InList {
+ expr,
+ list,
+ negated,
+ } => {
+ let expr_data_type = expr.get_type(&self.schema)?;
+ let list_data_types = list
+ .iter()
+ .map(|list_expr| list_expr.get_type(&self.schema))
+ .collect::<Result<Vec<_>>>()?;
+ let result_type =
Review Comment:
it is also can be used in the `in_list.rs` for physical inlist test cases.
--
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]