Skip to content

Commit 4155056

Browse files
committed
Update tests for struct casting
1 parent 50dda42 commit 4155056

File tree

1 file changed

+2
-3
lines changed
  • datafusion/sqllogictest/test_files

1 file changed

+2
-3
lines changed

datafusion/sqllogictest/test_files/case.slt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,7 @@ SELECT column2, column3, column4 FROM t;
384384
{foo: a, xxx: b} {xxx: c, foo: d} {xxx: e}
385385

386386
# coerce structs with different field orders,
387-
# (note the *value*s are from column2 but the field name is 'xxx', as the coerced
388-
# type takes the field name from the last argument (column3)
387+
# should keep the same field values
389388
query ?
390389
SELECT
391390
case
@@ -394,7 +393,7 @@ SELECT
394393
end
395394
FROM t;
396395
----
397-
{xxx: a, foo: b}
396+
{xxx: b, foo: a}
398397

399398
# coerce structs with different field orders
400399
query ?

0 commit comments

Comments
 (0)