You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2018/12/27 15:11:45 UTC
[GitHub] MaxGekk opened a new pull request #23391: [SPARK-26456][SQL] Cast
date/timestamp by Date/TimestampFormatter
MaxGekk opened a new pull request #23391: [SPARK-26456][SQL] Cast date/timestamp by Date/TimestampFormatter
URL: https://github.com/apache/spark/pull/23391
## What changes were proposed in this pull request?
In the PR, I propose to switch on `TimestampFormatter`/`DateFormatter` in casting dates/timestamps to strings. The SQL flag `spark.sql.legacy.timeParser.enabled` allows to switch back on `SimpleDateFormat`. The changes should make the date/timestamp casting consistent to JSON/CSV datasources and time-related functions like `to_date`, `to_unix_timestamp`/`from_unixtime`.
## How was this patch tested?
It was tested by `DateTimeUtilsSuite`, `CastSuite` and `JDBC*Suite`.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org