Skip to content

Commit 68247ad

Browse files
committed
Update tests per apache#14396
1 parent 41b1337 commit 68247ad

File tree

1 file changed

+6
-6
lines changed
  • datafusion/sqllogictest/test_files

1 file changed

+6
-6
lines changed

datafusion/sqllogictest/test_files/case.slt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,15 +318,15 @@ create table t as values
318318
100, -- column1 int (so the case isn't constant folded)
319319
{ 'foo': 'bar' }, -- column2 has List of Struct w/ Utf8
320320
{ 'foo': arrow_cast('baz', 'Utf8View') }, -- column3 has List of Struct w/ Utf8View
321-
{ 'xxx': arrow_cast('blarg', 'Utf8View') } -- column4 has List of Struct w/ Utf8View and a different field name
321+
{ 'foo': arrow_cast('blarg', 'Utf8View') } -- column4 has List of Struct w/ Utf8View
322322
);
323323

324324

325-
# Note field names are foo/foo/xxx
325+
# Note field name is foo
326326
query ???
327327
SELECT column2, column3, column4 FROM t;
328328
----
329-
{foo: bar} {foo: baz} {xxx: blarg}
329+
{foo: bar} {foo: baz} {foo: blarg}
330330

331331
# Coerce fields, expect the field name to be the name of the first arg to case
332332
# the field should not be named 'c0'
@@ -339,12 +339,12 @@ SELECT
339339
end
340340
FROM t;
341341
----
342-
{xxx: bar}
342+
{foo: bar}
343343

344344
query ?
345345
SELECT
346346
case
347-
when column1 > 0 then column3 -- different arg order affects field name
347+
when column1 > 0 then column3 -- different arg order shouldn't affect name
348348
when column1 < 0 then column4
349349
else column2
350350
end
@@ -355,7 +355,7 @@ FROM t;
355355
query ?
356356
SELECT
357357
case
358-
when column1 > 0 then column4 -- different arg order affects field name
358+
when column1 > 0 then column4 -- different arg order shouldn't affect name
359359
when column1 < 0 then column2
360360
else column3
361361
end

0 commit comments

Comments
 (0)