matthewmturner commented on issue #14396:
URL: https://github.com/apache/datafusion/issues/14396#issuecomment-6724581723

   So starting with reproduction from what was reported in the issue.
   
   With the following DDL.
   
   ```
   create table t as values
   (
    { 'foo': 'baz' }, 
    { 'xxx': arrow_cast('blarg', 'Utf8View') } -- column4 has List of Struct w/ 
Utf8View and a different field name
   );
   ```
   
   The first query now correctly fails:
   
   ```
   > select column1 from t UNION ALL select column2 from t;
   This feature is not implemented: Unsupported CAST from Struct("xxx": 
Utf8View) to Struct("foo": Utf8View)
   ```
   
   But the second query still works:
   
   ```
   select CASE WHEN 1=2 THEN column1 ELSE column2 END from t ;
   +-----------------------------------------------------------------+
   | CASE WHEN Int64(1) = Int64(2) THEN t.column1 ELSE t.column2 END |
   +-----------------------------------------------------------------+
   | {xxx: blarg}                                                    |
   +-----------------------------------------------------------------+
   1 row(s) fetched.
   Elapsed 0.001 seconds.
   ```
   


-- 
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