Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-26593][SQL] Use Proleptic Gregorian calendar in casting UTF8St…
…ring to Date/TimestampType ## What changes were proposed in this pull request? In the PR, I propose to use *java.time* classes in `stringToDate` and `stringToTimestamp`. This switches the methods from the hybrid calendar (Gregorian+Julian) to Proleptic Gregorian calendar. And it should make the casting consistent to other Spark classes that converts textual representation of dates/timestamps to `DateType`/`TimestampType`. ## How was this patch tested? The changes were tested by existing suites - `HashExpressionsSuite`, `CastSuite` and `DateTimeUtilsSuite`. Closes apache#23512 from MaxGekk/utf8string-timestamp-parsing. Lead-authored-by: Maxim Gekk <[email protected]> Co-authored-by: Maxim Gekk <[email protected]> Signed-off-by: Herman van Hovell <[email protected]>
- Loading branch information