Skip to content

Commit f4cd653

Browse files
committed
Disable ANSI intervals in PostgreSQL test
1 parent 0cdc08e commit f4cd653

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/ThriftServerQueryTestSuite.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ class ThriftServerQueryTestSuite extends SQLQueryTestSuite with SharedThriftServ
107107
}
108108

109109
testCase match {
110-
case _: PgSQLTest | _: AnsiTest =>
110+
case _: PgSQLTest =>
111+
statement.execute(s"SET ${SQLConf.ANSI_ENABLED.key} = true")
112+
statement.execute(s"SET ${SQLConf.LEGACY_INTERVAL_ENABLED.key} = true")
113+
case _: AnsiTest =>
111114
statement.execute(s"SET ${SQLConf.ANSI_ENABLED.key} = true")
112115
case _ =>
113116
statement.execute(s"SET ${SQLConf.ANSI_ENABLED.key} = false")

0 commit comments

Comments
 (0)