alamb commented on issue #11881:
URL: https://github.com/apache/datafusion/issues/11881#issuecomment-2308785130

   Thank you @dharanad  - I just doubled checked an indeed this is fixed now:
   
   ```sql
   > create table foo as values (arrow_cast('foo', 'Utf8View'));
   0 row(s) fetched.
   Elapsed 0.014 seconds.
   
   > explain select column1 || 'bar' from foo;
   
+---------------+--------------------------------------------------------------------------+
   | plan_type     | plan                                                       
              |
   
+---------------+--------------------------------------------------------------------------+
   | logical_plan  | Projection: foo.column1 || Utf8View("bar") AS foo.column1 
|| Utf8("bar") |
   |               |   TableScan: foo projection=[column1]                      
              |
   | physical_plan | ProjectionExec: expr=[column1@0 || bar as foo.column1 || 
Utf8("bar")]    |
   |               |   MemoryExec: partitions=1, partition_sizes=[1]            
              |
   |               |                                                            
              |
   
+---------------+--------------------------------------------------------------------------+
   2 row(s) fetched.
   Elapsed 0.006 seconds.
   
   > explain select 'bar' || column1 from foo;
   
+---------------+--------------------------------------------------------------------------+
   | plan_type     | plan                                                       
              |
   
+---------------+--------------------------------------------------------------------------+
   | logical_plan  | Projection: Utf8View("bar") || foo.column1 AS Utf8("bar") 
|| foo.column1 |
   |               |   TableScan: foo projection=[column1]                      
              |
   | physical_plan | ProjectionExec: expr=[bar || column1@0 as Utf8("bar") || 
foo.column1]    |
   |               |   MemoryExec: partitions=1, partition_sizes=[1]            
              |
   |               |                                                            
              |
   
+---------------+--------------------------------------------------------------------------+
   2 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