MaxGekk opened a new pull request #23358: [SPARK-26424][SQL] Use java.time API 
in date/timestamp expressions
URL: https://github.com/apache/spark/pull/23358
 
 
   ## What changes were proposed in this pull request?
   
   In the PR, I propose to switch the `DateFormatClass`, `ToUnixTimestamp`, 
`FromUnixTime`, `UnixTime` on java.time API for parsing/formatting dates and 
timestamps. The API has been already implemented by the 
`Timestamp`/`DateFormatter` classes. One of benefit is those classes support 
parsing timestamps with microsecond precision. Old behaviour can be switched on 
via SQL config: `spark.sql.legacy.timeParser.enabled` (`false` by default).
   
   ## How was this patch tested?
   
   It was tested by existing test suites - `DateFunctionsSuite`, 
`DateExpressionsSuite`, `JsonSuite`, `CsvSuite`, `SQLQueryTestSuite` as well as 
PySpark tests.
   

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