beliefer opened a new pull request, #39846:
URL: https://github.com/apache/spark/pull/39846

   ### What changes were proposed in this pull request?
   Currently, DS V2 pushdown framework compiles the `SortOrder` with fixed 
code. These fixed code outputs the fixed syntax format, such as `ORDER BY col 
ASC NULLS FIRST`.
   This is not flexible and friendly for some databases that do not support 
this syntax.
   For example, `ORDER BY col ASC NULLS FIRST` is not supported by MS SQL 
Server who not recognize the syntax `NULLS FIRST`.
   
   
   ### Why are the changes needed?
   This PR want compile the `SortOrder` with `V2ExpressionSQLBuilder`'s 
`visitSortOrder`, so that JDBC dialects could compile `SortOrder` by themselves.
   
   
   ### Does this PR introduce _any_ user-facing change?
   'No'.
   New feature.
   
   
   ### How was this patch tested?
   Exists test cases.
   


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