@@ -318,15 +318,15 @@ create table t as values
318
318
100, -- column1 int (so the case isn't constant folded)
319
319
{ 'foo': 'bar' }, -- column2 has List of Struct w/ Utf8
320
320
{ '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
322
322
);
323
323
324
324
325
- # Note field names are foo/foo/xxx
325
+ # Note field name is foo
326
326
query ???
327
327
SELECT column2, column3, column4 FROM t;
328
328
----
329
- {foo: bar} {foo: baz} {xxx : blarg}
329
+ {foo: bar} {foo: baz} {foo : blarg}
330
330
331
331
# Coerce fields, expect the field name to be the name of the first arg to case
332
332
# the field should not be named 'c0'
@@ -339,12 +339,12 @@ SELECT
339
339
end
340
340
FROM t;
341
341
----
342
- {xxx : bar}
342
+ {foo : bar}
343
343
344
344
query ?
345
345
SELECT
346
346
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
348
348
when column1 < 0 then column4
349
349
else column2
350
350
end
@@ -355,7 +355,7 @@ FROM t;
355
355
query ?
356
356
SELECT
357
357
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
359
359
when column1 < 0 then column2
360
360
else column3
361
361
end
0 commit comments