We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16b2e94 commit e2df118Copy full SHA for e2df118
1 file changed
spark/src/test/scala/org/apache/comet/CometCastSuite.scala
@@ -1594,7 +1594,13 @@ class CometCastSuite extends CometTestBase with AdaptiveSparkPlanHelper {
1594
// CAST from TimestampNTZType
1595
1596
test("cast TimestampNTZType to StringType") {
1597
- castTest(generateTimestampNTZ(), DataTypes.StringType)
+ // TimestampNTZ is timezone-independent, so casting to string should produce
1598
+ // the same result regardless of the session timezone.
1599
+ for (tz <- representativeTimezones) {
1600
+ withSQLConf(SQLConf.SESSION_LOCAL_TIMEZONE.key -> tz) {
1601
+ castTest(generateTimestampNTZ(), DataTypes.StringType)
1602
+ }
1603
1604
}
1605
1606
test("cast TimestampNTZType to DateType") {
0 commit comments