comphead commented on issue #5695:
URL: 
https://github.com/apache/arrow-datafusion/issues/5695#issuecomment-1481413999

   @milevin I have looked into the code and another workaround, more natural is 
to give an alias
   
   ```
   ❯ create table temp1 as with orders as (
     select 1 as o_custkey
   )
   SELECT RANK() OVER (PARTITION BY o_custkey) as a
   FROM orders;
   0 rows in set. Query took 0.010 seconds.
   ```
   
   The code currently uses alias if its given or shortened the name to prevent 
huge unreadable names. 
   @alamb I'm not sure tbh if we should revert 
   
https://github.com/apache/arrow-datafusion/blob/26e1b20ea3362ea62cb713004a0636b8af6a16d7/datafusion/core/src/physical_plan/planner.rs#L1630


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

Reply via email to