Ngone51 commented on a change in pull request #24567: [SPARK-27638][SQL]: Cast 
string to date/timestamp in binary comparisons with dates/timestamps
URL: https://github.com/apache/spark/pull/24567#discussion_r362358257
 
 

 ##########
 File path: docs/sql-migration-guide-upgrade.md
 ##########
 @@ -128,6 +128,8 @@ license: |
 
   - 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`.
 
+  - 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`.
 
 Review comment:
   #27065

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to