From 69372e34f4f6acab6839a50778919a6007ac9d93 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Tue, 30 Apr 2024 14:35:55 -0400 Subject: [PATCH] Fix build with missing `use` --- datafusion/physical-expr/src/scalar_function.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datafusion/physical-expr/src/scalar_function.rs b/datafusion/physical-expr/src/scalar_function.rs index d137c9c6f74a..95a2de1f7156 100644 --- a/datafusion/physical-expr/src/scalar_function.rs +++ b/datafusion/physical-expr/src/scalar_function.rs @@ -37,7 +37,7 @@ use std::sync::Arc; use arrow::datatypes::{DataType, Schema}; use arrow::record_batch::RecordBatch; -use datafusion_common::Result; +use datafusion_common::{internal_err, Result}; use datafusion_expr::{ expr_vec_fmt, ColumnarValue, FuncMonotonicity, ScalarFunctionDefinition, }; @@ -153,7 +153,7 @@ impl PhysicalExpr for ScalarFunctionExpr { if let ColumnarValue::Array(array) = &output { if array.len() != batch.num_rows() { - return internal_err!("UDF returned a different number of rows than expected. Expected: {}, Got: {}", + return internal_err!("UDF returned a different number of rows than expected. Expected: {}, Got: {}", batch.num_rows(), array.len()); } }