Skip to content

Commit

Permalink
use return_type_from_exprs
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Dec 11, 2024
1 parent 4638fe3 commit febc1f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions native/core/src/execution/datafusion/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2021,9 +2021,11 @@ impl PhysicalPlanner {
.coerce_types(&input_expr_types)
.unwrap_or_else(|_| input_expr_types.clone());

// TODO need to call `return_type_from_exprs` instead
#[allow(deprecated)]
let data_type = func.inner().return_type(&coerced_types)?;
let data_type = func.inner().return_type_from_exprs(
&args,
&input_schema,
&coerced_types,
)?;

(data_type, coerced_types)
}
Expand Down

0 comments on commit febc1f1

Please sign in to comment.