Skip to content

Commit a5657e1

Browse files
authored
Fix build with missing use (#10317)
1 parent 369e201 commit a5657e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion/physical-expr/src/scalar_function.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use std::sync::Arc;
3737
use arrow::datatypes::{DataType, Schema};
3838
use arrow::record_batch::RecordBatch;
3939

40-
use datafusion_common::Result;
40+
use datafusion_common::{internal_err, Result};
4141
use datafusion_expr::{
4242
expr_vec_fmt, ColumnarValue, FuncMonotonicity, ScalarFunctionDefinition,
4343
};
@@ -153,7 +153,7 @@ impl PhysicalExpr for ScalarFunctionExpr {
153153

154154
if let ColumnarValue::Array(array) = &output {
155155
if array.len() != batch.num_rows() {
156-
return internal_err!("UDF returned a different number of rows than expected. Expected: {}, Got: {}",
156+
return internal_err!("UDF returned a different number of rows than expected. Expected: {}, Got: {}",
157157
batch.num_rows(), array.len());
158158
}
159159
}

0 commit comments

Comments
 (0)