cloud-fan commented on code in PR #36531:
URL: https://github.com/apache/spark/pull/36531#discussion_r880669148


##########
sql/core/src/test/scala/org/apache/spark/sql/sources/DataSourceAnalysisSuite.scala:
##########
@@ -63,7 +63,9 @@ class DataSourceAnalysisSuite extends SparkFunSuite with 
BeforeAndAfterAll with
     def cast(e: Expression, dt: DataType): Expression = {
       SQLConf.get.storeAssignmentPolicy match {
         case StoreAssignmentPolicy.ANSI | StoreAssignmentPolicy.STRICT =>
-          AnsiCast(e, dt, Option(SQLConf.get.sessionLocalTimeZone))
+          val cast = Cast(e, dt, Option(SQLConf.get.sessionLocalTimeZone), 
true)

Review Comment:
   ```suggestion
             val cast = Cast(e, dt, Option(SQLConf.get.sessionLocalTimeZone), 
ansiEnabled = true)
   ```



-- 
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]

Reply via email to