MaxGekk opened a new pull request #23541: [SPARK-26618][SQL] Make typed 
Timestamp/Date literals consistent to casting
URL: https://github.com/apache/spark/pull/23541
 
 
   ## What changes were proposed in this pull request?
   
   In the PR, I propose to make creation of typed Literals `TIMESTAMP` and 
`DATE` consistent to the `Cast` expression. More precisely, reusing the `Cast` 
expression in the type constructors. In this way, it allows:
   - To use the same calendar in parsing methods
   - To support the same set of timestamp/date patterns
   
   ## How was this patch tested?
   
   This was tested by `SQLQueryTestSuite` as well as `ExpressionParserSuite`.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to