From cd7c72aef02c5aac59022cb3237e752a314e3e8d Mon Sep 17 00:00:00 2001 From: "Hongbin Ma (Mahone)" Date: Thu, 23 May 2024 15:03:03 +0800 Subject: [PATCH] add todo for utc issue Signed-off-by: Hongbin Ma (Mahone) --- .../apache/spark/sql/rapids/utils/RapidsSQLTestsBaseTrait.scala | 1 + .../org/apache/spark/sql/rapids/utils/RapidsTestsTrait.scala | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils/RapidsSQLTestsBaseTrait.scala b/tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils/RapidsSQLTestsBaseTrait.scala index 6529ef42d00..6db9e8b71a6 100644 --- a/tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils/RapidsSQLTestsBaseTrait.scala +++ b/tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils/RapidsSQLTestsBaseTrait.scala @@ -121,6 +121,7 @@ object RapidsSQLTestsBaseTrait { "org.apache.spark.sql.rapids.ExecutionPlanCaptureCallback") .set("spark.sql.warehouse.dir", warehouse) .set("spark.sql.cache.serializer", "com.nvidia.spark.ParquetCachedBatchSerializer") + // TODO: remove hard coded UTC https://github.com/NVIDIA/spark-rapids/issues/10874 .set("spark.sql.session.timeZone", "UTC") .set("spark.rapids.sql.explain", "ALL") // uncomment below config to run `strict mode`, where fallback to CPU is treated as fail diff --git a/tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils/RapidsTestsTrait.scala b/tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils/RapidsTestsTrait.scala index c10962c7e8a..bcac0b8fe2d 100644 --- a/tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils/RapidsTestsTrait.scala +++ b/tests/src/test/spark330/scala/org/apache/spark/sql/rapids/utils/RapidsTestsTrait.scala @@ -102,6 +102,7 @@ trait RapidsTestsTrait extends RapidsTestsCommonTrait { .config("spark.sql.queryExecutionListeners", "org.apache.spark.sql.rapids.ExecutionPlanCaptureCallback") .config("spark.sql.warehouse.dir", warehouse) + // TODO: remove hard coded UTC https://github.com/NVIDIA/spark-rapids/issues/10874 .config("spark.sql.session.timeZone","UTC") .config("spark.rapids.sql.explain", "ALL") .config("spark.rapids.sql.test.isFoldableNonLitAllowed", "true")