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

   ## Which issue does this PR close?
   
   - Closes #15813
   
   ## Rationale for this change
   
   Adds support for correctly round-tripping SQL queries that rely on the 
distinct properties of the `UNION` set operator.
   
   ## What changes are included in this PR?
   
   Keeps track of whether a Distinct node is the direct parent of a Union node 
in the Unparser's QueryBuilder. If so, then when the Union node is being 
processed the SetModified is set to `None` rather than `All`. That will cause 
the sqlparser AST to correctly emit the `UNION` SQL operator.
   
   ## Are these changes tested?
   
   Yes, I've added a new SQL roundtrip test that would have failed previously.
   
   ## 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