Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ch-sc committed Jan 3, 2025
1 parent ae543c8 commit 844569f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datafusion/expr/src/udf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,10 @@ pub trait ScalarUDFImpl: Debug + Send + Sync {
/// If the function is `ABS(a)`, and the input interval is `a: [-3, 2]`,
/// then the output interval would be `[0, 3]`.
fn evaluate_bounds(&self, input: &[&Interval]) -> Result<Interval> {
let input_data_types = input.iter().map(|i| i.data_type()).collect::<Vec<DataType>>();
let input_data_types = input
.iter()
.map(|i| i.data_type())
.collect::<Vec<DataType>>();
let return_type = self.return_type(&input_data_types)?;
Interval::make_unbounded(&return_type)
}
Expand Down

0 comments on commit 844569f

Please sign in to comment.