From 80906e8de3ba99d8e2c7d78ea0f6d10d48ed2ee9 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Sat, 14 Sep 2024 10:45:01 +0100 Subject: [PATCH] update slt, remove dedicated test --- datafusion/core/tests/sql/mod.rs | 1 - datafusion/sqllogictest/test_files/array.slt | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/datafusion/core/tests/sql/mod.rs b/datafusion/core/tests/sql/mod.rs index 3146c32d8f32f..dc9d047860213 100644 --- a/datafusion/core/tests/sql/mod.rs +++ b/datafusion/core/tests/sql/mod.rs @@ -57,7 +57,6 @@ macro_rules! assert_metrics { } pub mod aggregates; -pub mod array_has; pub mod create_drop; pub mod explain_analyze; pub mod joins; diff --git a/datafusion/sqllogictest/test_files/array.slt b/datafusion/sqllogictest/test_files/array.slt index 17e02a1f646fa..b7d60b50586dd 100644 --- a/datafusion/sqllogictest/test_files/array.slt +++ b/datafusion/sqllogictest/test_files/array.slt @@ -7089,17 +7089,13 @@ select [1,2,3]::int[], [['1']]::int[][], arrow_typeof([]::text[]); # test empty arrays return length # issue: https://github.com/apache/datafusion/pull/12459 statement ok -create table values_all_empty(items int[]); - -statement ok -insert into values_all_empty (items) (select [] as c from (select unnest(generate_series(1, 3)))); +create table values_all_empty (a int[]) as values ([]), ([]); query B -select array_has(items, 1) from values_all_empty; +select array_has(a, 1) from values_all_empty; ---- false false -false ### Delete tables