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


   ### What changes were proposed in this pull request?
   DS V2 supports push down CAST to database.
   The current implement only uses the typeName of DataType.
   For example: `Cast(column, StringType)` will be build to `CAST(column AS 
String)`.
   But it should be `CAST(column AS TEXT)` for Postgres or `CAST(column AS 
VARCHAR2(255))` for Oracle.
   
   
   ### Why are the changes needed?
   Improve the implement of push down CAST.
   
   
   ### Does this PR introduce _any_ user-facing change?
   'No'.
   Just new feature.
   
   
   ### How was this patch tested?
   Exists tests
   


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