@@ -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
326326query ???
327327SELECT 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
340340FROM t;
341341----
342- {xxx : bar}
342+ {foo : bar}
343343
344344query ?
345345SELECT
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;
355355query ?
356356SELECT
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