cloud-fan commented on a change in pull request #34712:
URL: https://github.com/apache/spark/pull/34712#discussion_r756886697
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/orc/OrcQuerySuite.scala
##########
@@ -830,6 +830,27 @@ abstract class OrcQuerySuite extends OrcQueryTest with
SharedSparkSession {
}
}
}
+
+ test("SPARK-37463: read/write Timestamp ntz or ltz to Orc uses UTC
timestamp") {
+ TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"))
+ sql("set spark.sql.session.timeZone = America/Los_Angeles")
Review comment:
IIUC this orc bug is only about the the jvm timezone, not the spark
session timezone, we don't need to set it.
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/orc/OrcQuerySuite.scala
##########
@@ -830,6 +830,27 @@ abstract class OrcQuerySuite extends OrcQueryTest with
SharedSparkSession {
}
}
}
+
+ test("SPARK-37463: read/write Timestamp ntz or ltz to Orc uses UTC
timestamp") {
+ TimeZone.setDefault(TimeZone.getTimeZone("America/Los_Angeles"))
+ sql("set spark.sql.session.timeZone = America/Los_Angeles")
Review comment:
IIUC this orc bug is only about the jvm timezone, not the spark session
timezone, we don't need to set it.
--
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]