Github user sergey-rubtsov commented on a diff in the pull request:
https://github.com/apache/spark/pull/20140#discussion_r166262196
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVOptions.scala
---
@@ -150,6 +151,16 @@ class CSVOptions(
val isCommentSet = this.comment != '\u0000'
+ def dateFormatter: DateTimeFormatter = {
--- End diff --
DateTimeFormatter has the disadvantage. It does not implement Serializable
in contrast to FastDateFormat. That is why I couldn't make it as a val here.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]