Skip to content

Commit 655354e

Browse files
committed
more fixup
1 parent 234accf commit 655354e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

datafusion/core/tests/user_defined/user_defined_scalar_functions.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ use arrow_array::{
2727
Array, ArrayRef, Float32Array, Float64Array, Int32Array, RecordBatch, StringArray,
2828
};
2929
use arrow_schema::{DataType, Field, Schema};
30-
use parking_lot::Mutex;
31-
use regex::Regex;
32-
use sqlparser::ast::Ident;
33-
3430
use datafusion::execution::context::{FunctionFactory, RegisterFunction, SessionState};
3531
use datafusion::prelude::*;
3632
use datafusion::{execution::registry::FunctionRegistry, test_util};
@@ -48,6 +44,10 @@ use datafusion_expr::{
4844
Volatility,
4945
};
5046
use datafusion_functions_nested::range::range_udf;
47+
use parking_lot::Mutex;
48+
use regex::Regex;
49+
use sqlparser::ast::Ident;
50+
use sqlparser::tokenizer::Span;
5151

5252
/// test that casting happens on udfs.
5353
/// c11 is f32, but `custom_sqrt` requires f64. Casting happens but the logical plan and
@@ -1179,6 +1179,7 @@ async fn create_scalar_function_from_sql_statement_postgres_syntax() -> Result<(
11791179
name: Some(Ident {
11801180
value: "name".into(),
11811181
quote_style: None,
1182+
span: Span::empty(),
11821183
}),
11831184
data_type: DataType::Utf8,
11841185
default_expr: None,
@@ -1188,6 +1189,7 @@ async fn create_scalar_function_from_sql_statement_postgres_syntax() -> Result<(
11881189
language: Some(Ident {
11891190
value: "plrust".into(),
11901191
quote_style: None,
1192+
span: Span::empty(),
11911193
}),
11921194
behavior: None,
11931195
function_body: Some(lit(body)),

0 commit comments

Comments
 (0)