Skip to content

Commit 05fa9fa

Browse files
committed
format config name
1 parent ce7a49f commit 05fa9fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/sql-migration-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ license: |
9595

9696
- Since Spark 3.0, if `hive.default.fileformat` is not found in `Spark SQL configuration` then it will fallback to hive-site.xml present in the `Hadoop configuration` of `SparkContext`.
9797

98-
- Since Spark 3.0, Spark will cast `String` to `Date/TimeStamp` in binary comparisons with dates/timestamps. The previous behaviour of casting `Date/Timestamp` to `String` can be restored by setting `spark.sql.legacy.typeCoercion.datetimeToString` to `true`.
98+
- Since Spark 3.0, Spark will cast `String` to `Date/TimeStamp` in binary comparisons with dates/timestamps. The previous behaviour of casting `Date/Timestamp` to `String` can be restored by setting `spark.sql.legacy.typeCoercion.datetimeToString.enabled` to `true`.
9999

100100
- Since Spark 3.0, when Avro files are written with user provided schema, the fields will be matched by field names between catalyst schema and avro schema instead of positions.
101101

sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2046,7 +2046,7 @@ object SQLConf {
20462046
.createWithDefault(Int.MaxValue)
20472047

20482048
val LEGACY_CAST_DATETIME_TO_STRING =
2049-
buildConf("spark.sql.legacy.typeCoercion.datetimeToString")
2049+
buildConf("spark.sql.legacy.typeCoercion.datetimeToString.enabled")
20502050
.doc("If it is set to true, date/timestamp will cast to string in binary comparisons " +
20512051
"with String")
20522052
.booleanConf

0 commit comments

Comments
 (0)