Skip to content

Commit

Permalink
Fallback on null empty value in ExprBoundaries::try_from_column
Browse files Browse the repository at this point in the history
  • Loading branch information
razeghi71 committed Dec 11, 2023
1 parent d091b55 commit 67d7872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/physical-expr/src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl ExprBoundaries {
col_index: usize,
) -> Result<Self> {
let field = &schema.fields()[col_index];
let empty_field = ScalarValue::try_from(field.data_type())?;
let empty_field = ScalarValue::try_from(field.data_type()).unwrap_or(ScalarValue::Null);
let interval = Interval::try_new(
col_stats
.min_value
Expand Down

0 comments on commit 67d7872

Please sign in to comment.