y-f-u opened a new pull request, #11756:
URL: https://github.com/apache/datafusion/pull/11756

   ## Which issue does this PR close?
   
   This further addressed the unparser issues when derived table contains match 
operator, `cast`, `limit`, `order`, etc.
   
   ## Rationale for this change
   
   These are common SQL patterns which doesn't work now. See test cases for 
details
   
   ## What changes are included in this PR?
   
   Rewrite more bits of logical plan during unparsing. The key change is to use 
field name to match the outer layer projection field to detect if the logical 
plan can be corrected for unparsing purpose, which is the reverse path of 
parsing for these sql during the first leg of the round trip.
   
   ## Are these changes tested?
   
   Yes
   
   ## 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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to