Jimexist opened a new issue #632:
URL: https://github.com/apache/arrow-datafusion/issues/632


   We do allow query outputs (i.e. record batch schema and physical plan 
schema) to contain columns with same names. This is quite common in join 
queries where more than one relations contain the same column name.
   
   My previous comment was more around the inconsistency on how window function 
names are generated in logical plane v.s. physical plane. For example, in 
physical plane, we don't take `partition by clause, order by clause, and window 
frames` into account when creating the column name. If we don't want to 
maintain this consistency, I think we should update this invariant instead: 
https://github.com/apache/arrow-datafusion/blob/master/docs/specification/invariants.md#the-physical-schema-is-invariant-under-planning.
   
   
https://github.com/apache/arrow-datafusion/blob/master/docs/specification/output-field-name-semantic.md
 contains some rules on how we want to generate field names for physical 
schema. We don't have any rules for window functions at the moment, so maybe 
worth formalize it in that document as well.
   
   __Originally posted by @houqp in 
https://github.com/apache/arrow-datafusion/pull/622#issuecomment-868961912__


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