alamb commented on code in PR #14456:
URL: https://github.com/apache/datafusion/pull/14456#discussion_r1940027464


##########
datafusion/sqllogictest/test_files/case.slt:
##########
@@ -416,5 +416,58 @@ SELECT
   end
 FROM t;
 
+statement ok
+drop table t
+
+# Fix coercion of lists of structs
+# https://github.com/apache/datafusion/issues/14154
+
+statement ok
+create or replace table t as values
+(
+ 100,                                         -- column1 int (so the case 
isn't constant folded)
+ [{ 'foo': arrow_cast('baz', 'Utf8View') }],  -- column2 has List of Struct w/ 
Utf8View
+ [{ 'foo': 'bar' }],                          -- column3 has List of Struct w/ 
Utf8
+ [{ 'foo': 'blarg' }]                         -- column4 has List of Struct w/ 
Utf8

Review Comment:
   Yes, probably. 
   
   @Lordworms  is working on a follow up here:
    - https://github.com/apache/datafusion/issues/14396
   
   I will add a note to that ticket 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to