HyukjinKwon commented on code in PR #45859:
URL: https://github.com/apache/spark/pull/45859#discussion_r1550651926
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -4016,13 +4016,13 @@ object SQLConf {
.doc("When LEGACY, java.text.SimpleDateFormat is used for formatting and
parsing " +
"dates/timestamps in a locale-sensitive manner, which is the approach
before Spark 3.0. " +
"When set to CORRECTED, classes from java.time.* packages are used for
the same purpose. " +
- "The default value is EXCEPTION, RuntimeException is thrown when we will
get different " +
- "results.")
+ "When set to EXCEPTION, RuntimeException is thrown when we will get
different " +
+ "results. The default is CORRECTED.")
.version("3.0.0")
.stringConf
.transform(_.toUpperCase(Locale.ROOT))
.checkValues(LegacyBehaviorPolicy.values.map(_.toString))
- .createWithDefault(LegacyBehaviorPolicy.EXCEPTION.toString)
+ .createWithDefault(LegacyBehaviorPolicy.CORRECTED.toString)
Review Comment:
Would have to update SQL migration guide at
https://github.com/apache/spark/blob/master/docs/sql-migration-guide.md
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]