sgrebnov opened a new pull request, #12482:
URL: https://github.com/apache/datafusion/pull/12482

   ## Which issue does this PR close?
   
   Follow up PR for https://github.com/apache/datafusion/pull/12331 that 
improves SQLite subquery tables aliasing unparsing to support more complex 
cases, for example
   
   ```sql
   SELECT * FROM (SELECT o_orderkey + 1 FROM orders) AS c(key) LIMIT 10
   
   SELECT * FROM (SELECT o_orderkey FROM orders LIMIT 10) AS c(key) LIMIT 10
   
   ```
   
   ## What changes are included in this PR?
   
   PRs modifies `LogicalPlan::SubqueryAlias(plan_alias)` unparser to support 
more complex table aliasing scenarios for  SQLite:
   1 - calculated columns
   2- cases where subquery projection is wrapped by other operators (e.g., 
LIMIT, SORT)
   
   ## Are these changes tested?
   
   Tested manually and added unit tests
   
   ## Are there any user-facing changes?
   
   No
   


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