jackwener commented on PR #4484:
URL: 
https://github.com/apache/arrow-datafusion/pull/4484#issuecomment-1338770522

   > To remove the `SubqueryAlias` from the logical plan tree, I think there 
are two approaches:
   > 
   > 1. Add  a rule and unnest the inner child within `SubqueryAlias`, update 
the child schema's  qualifier name.  Need to add a method to logical operator 
types to update schema's qualifier name.
   > 2. Modify the logical `Column` expr, instead of depending on 
qualifier/relation name, have it depend on the index, just like the physical 
`Column` expr.  Another approach is to define two types of `Column` exprs : 
`UnResolvedColumn`  and `ResolvedColumn`,  `UnResolvedColumn` behaves like the 
current `Column` expr and depends on the qualifier/relation name, 
`ResolvedColumn`  behaves like the current physical `Column` expr  and depends 
on index.
   
   If we want to do this, I think we may need to add `binder/analyzer` for 
datafusion. cc @liukun4515 


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