Skip to content

Commit 28d2bfe

Browse files
committed
Update sqllogictest results
1 parent 5ab6302 commit 28d2bfe

7 files changed

Lines changed: 23 additions & 25 deletions

File tree

datafusion/sqllogictest/test_files/aggregate.slt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6950,7 +6950,7 @@ SELECT MIN(c), MAX(c) FROM (SELECT * FROM (SELECT STRUCT(1 as 'a', 2 as 'b') AS
69506950
----
69516951
NULL NULL
69526952

6953-
# Min/Max group struct
6953+
# Min/Max group struct
69546954
query I?? rowsort
69556955
WITH t AS (SELECT i as c1, i + 1 as c2 FROM generate_series(1, 10) t(i))
69566956
SELECT key, MIN(c), MAX(c) FROM (SELECT STRUCT(c1 AS 'a', c2 AS 'b') AS c, (c1 % 2) AS key FROM t) GROUP BY key
@@ -6996,5 +6996,3 @@ VALUES
69966996
);
69976997
----
69986998
{a: 1, b: 2, c: 3} {a: 1, b: 2, c: 4}
6999-
7000-

datafusion/sqllogictest/test_files/order.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,4 +1418,4 @@ SELECT address, zip FROM addresses ORDER BY ALL;
14181418
111 Duck Duck Goose Ln 11111
14191419
111 Duck Duck Goose Ln 11111
14201420
111 Duck Duck Goose Ln 11111-0001
1421-
123 Quack Blvd 11111
1421+
123 Quack Blvd 11111

datafusion/sqllogictest/test_files/regexp/regexp_count.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,4 +341,4 @@ statement ok
341341
drop table t_stringview;
342342

343343
statement ok
344-
drop table empty_table;
344+
drop table empty_table;

datafusion/sqllogictest/test_files/regexp/regexp_like.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,4 @@ statement ok
277277
drop table strings
278278

279279
statement ok
280-
drop table dict_table
280+
drop table dict_table

datafusion/sqllogictest/test_files/regexp/regexp_match.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,4 @@ NULL
198198
query B
199199
select null !~* 'abc';
200200
----
201-
NULL
201+
NULL

datafusion/sqllogictest/test_files/regexp/regexp_replace.slt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ select
126126
from (values ('a'), ('b')) as tbl(col);
127127
----
128128
NULL NULL NULL
129-
NULL NULL NULL
129+
NULL NULL NULL

datafusion/sqllogictest/test_files/struct.slt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ select * from struct_values;
5353
query TT
5454
select arrow_typeof(s1), arrow_typeof(s2) from struct_values;
5555
----
56-
Struct([Field { name: "c0", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }]) Struct([Field { name: "a", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
57-
Struct([Field { name: "c0", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }]) Struct([Field { name: "a", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
58-
Struct([Field { name: "c0", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }]) Struct([Field { name: "a", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
56+
Struct(c0 Int32) Struct(a Int32, b Utf8)
57+
Struct(c0 Int32) Struct(a Int32, b Utf8)
58+
Struct(c0 Int32) Struct(a Int32, b Utf8)
5959

6060

6161
# struct[i]
@@ -229,12 +229,12 @@ select named_struct('field_a', 1, 'field_b', 2);
229229
query T
230230
select arrow_typeof(named_struct('first', 1, 'second', 2, 'third', 3));
231231
----
232-
Struct([Field { name: "first", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "second", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "third", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
232+
Struct(first Int64, second Int64, third Int64)
233233

234234
query T
235235
select arrow_typeof({'first': 1, 'second': 2, 'third': 3});
236236
----
237-
Struct([Field { name: "first", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "second", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "third", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
237+
Struct(first Int64, second Int64, third Int64)
238238

239239
# test nested struct literal
240240
query ?
@@ -443,12 +443,12 @@ select * from t;
443443
query T
444444
select arrow_typeof(c1) from t;
445445
----
446-
Struct([Field { name: "r", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
446+
Struct(r Utf8, b Int32)
447447

448448
query T
449449
select arrow_typeof(c2) from t;
450450
----
451-
Struct([Field { name: "r", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
451+
Struct(r Utf8, b Float32)
452452

453453
statement ok
454454
drop table t;
@@ -465,8 +465,8 @@ select * from t;
465465
query T
466466
select arrow_typeof(column1) from t;
467467
----
468-
Struct([Field { name: "r", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "c", data_type: Float64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
469-
Struct([Field { name: "r", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "c", data_type: Float64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
468+
Struct(r Utf8, c Float64)
469+
Struct(r Utf8, c Float64)
470470

471471
statement ok
472472
drop table t;
@@ -498,9 +498,9 @@ select coalesce(s1) from t;
498498
query T
499499
select arrow_typeof(coalesce(s1, s2)) from t;
500500
----
501-
Struct([Field { name: "a", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
502-
Struct([Field { name: "a", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
503-
Struct([Field { name: "a", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
501+
Struct(a Float32, b Utf8)
502+
Struct(a Float32, b Utf8)
503+
Struct(a Float32, b Utf8)
504504

505505
statement ok
506506
drop table t;
@@ -525,9 +525,9 @@ select coalesce(s1, s2) from t;
525525
query T
526526
select arrow_typeof(coalesce(s1, s2)) from t;
527527
----
528-
Struct([Field { name: "a", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
529-
Struct([Field { name: "a", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
530-
Struct([Field { name: "a", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "b", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
528+
Struct(a Float32, b Utf8)
529+
Struct(a Float32, b Utf8)
530+
Struct(a Float32, b Utf8)
531531

532532
statement ok
533533
drop table t;
@@ -585,13 +585,13 @@ create table t(a struct(r varchar, c int, g float), b struct(r varchar, c float,
585585
query T
586586
select arrow_typeof(a) from t;
587587
----
588-
Struct([Field { name: "r", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "c", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "g", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
588+
Struct(r Utf8, c Int32, g Float32)
589589

590590
# type of each column should not coerced but perserve as it is
591591
query T
592592
select arrow_typeof(b) from t;
593593
----
594-
Struct([Field { name: "r", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "c", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: "g", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }])
594+
Struct(r Utf8, c Float32, g Int32)
595595

596596
statement ok
597597
drop table t;

0 commit comments

Comments
 (0)