Skip to content

Commit

Permalink
support decimal for inlist expr
Browse files Browse the repository at this point in the history
  • Loading branch information
liukun4515 committed Jun 23, 2022
1 parent bc00776 commit 88cfa73
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 31 deletions.
6 changes: 5 additions & 1 deletion datafusion/expr/src/binary_rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ fn bitwise_coercion(left_type: &DataType, right_type: &DataType) -> Option<DataT
}
}

fn comparison_eq_coercion(lhs_type: &DataType, rhs_type: &DataType) -> Option<DataType> {
/// Get the coerced data type for `eq` or `not eq` operation
pub fn comparison_eq_coercion(
lhs_type: &DataType,
rhs_type: &DataType,
) -> Option<DataType> {
// can't compare dictionaries directly due to
// https://github.com/apache/arrow-rs/issues/1201
if lhs_type == rhs_type && !is_dictionary(lhs_type) {
Expand Down
Loading

0 comments on commit 88cfa73

Please sign in to comment.