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

   The additional expected cases from the description also work
   
   ```
   > create table u as values
   (
    { 'foo': 'baz', 'bar': 'bux' },
    { 'bar': 'b', 'foo': 'bt' }
   );
   0 row(s) fetched.
   Elapsed 0.002 seconds.
   
   > SELECT column1 FROM u UNION ALL SELECT column2 FROM u;
   +----------------------+
   | column1              |
   +----------------------+
   | {foo: baz, bar: bux} |
   | {foo: bt, bar: b}    |
   +----------------------+
   2 row(s) fetched.
   Elapsed 0.034 seconds.
   ```
   
   ```
   > create table v as values
   (
    { 'foo': 'baz', 'bar': 'bux' },
    { 'bar': 'b', 'foo': arrow_cast('bt', 'Utf8View') }
   );
   0 row(s) fetched.
   Elapsed 0.002 seconds.
   
   > DESCRIBE SELECT column1 FROM v UNION ALL SELECT column2 FROM v;
   +-------------+--------------------------------------+-------------+
   | column_name | data_type                            | is_nullable |
   +-------------+--------------------------------------+-------------+
   | column1     | Struct("foo": Utf8View, "bar": Utf8) | NO          |
   +-------------+--------------------------------------+-------------+
   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