From 28b0dad82be302fea240bb6b177ff60abbd0f090 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Thu, 3 Jun 2021 12:14:15 -0400 Subject: [PATCH] Avoid warnings when compiling without default features (#489) --- datafusion/src/physical_plan/functions.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/datafusion/src/physical_plan/functions.rs b/datafusion/src/physical_plan/functions.rs index 367e594f6e97..eb312cabd7f0 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();