Skip to content

Apache DataFusion SQL Query Engine

Avoid warnings when compiling without default features (#489)

Andrew Lamb28b0dad82be3
diff --git a/datafusion/src/physical_plan/functions.rs b/datafusion/src/physical_plan/functions.rs
index 367e594f6e..eb312cabd7 100644
--- a/datafusion/src/physical_plan/functions.rs
+++ b/datafusion/src/physical_plan/functions.rs
@@ -1275,7 +1275,7 @@ mod tests {
use arrow::{
array::{
Array, ArrayRef, BinaryArray, BooleanArray, FixedSizeListArray, Float64Array,
- Int32Array, ListArray, StringArray, UInt32Array, UInt64Array,
+ Int32Array, StringArray, UInt32Array, UInt64Array,
},
datatypes::Field,
record_batch::RecordBatch,
@@ -3555,6 +3555,7 @@ mod tests {
#[test]
#[cfg(feature = "regex_expressions")]
fn test_regexp_match() -> Result<()> {
+ use arrow::array::ListArray;
let schema = Schema::new(vec![Field::new("a", DataType::Utf8, false)]);
let ctx_state = ExecutionContextState::new();
@@ -3594,6 +3595,7 @@ mod tests {
#[test]
#[cfg(feature = "regex_expressions")]
fn test_regexp_match_all_literals() -> Result<()> {
+ use arrow::array::ListArray;
let schema = Schema::new(vec![Field::new("a", DataType::Int32, false)]);
let ctx_state = ExecutionContextState::new();