Skip to content

Commit 2e7183f

Browse files
committed
[SPARK-29981][SQL][FOLLOWUP] Fix failing to run SQLQueryTestSuite
1 parent a8d907c commit 2e7183f

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,30 @@ import org.apache.spark.tags.ExtendedSQLTest
4343
*
4444
* To run the entire test suite:
4545
* {{{
46-
* build/sbt "sql/test-only *SQLQueryTestSuite"
46+
* build/sbt -Phive-1.2 "sql/test-only *SQLQueryTestSuite"
4747
* }}}
4848
*
4949
* To run a single test file upon change:
5050
* {{{
51-
* build/sbt "~sql/test-only *SQLQueryTestSuite -- -z inline-table.sql"
51+
* build/sbt -Phive-1.2 "~sql/test-only *SQLQueryTestSuite -- -z inline-table.sql"
5252
* }}}
5353
*
5454
* To re-generate golden files for entire suite, run:
5555
* {{{
56-
* SPARK_GENERATE_GOLDEN_FILES=1 build/sbt "sql/test-only *SQLQueryTestSuite"
56+
* SPARK_GENERATE_GOLDEN_FILES=1 build/sbt -Phive-1.2 "sql/test-only *SQLQueryTestSuite"
5757
* }}}
5858
*
5959
* To re-generate golden file for a single test, run:
6060
* {{{
61-
* SPARK_GENERATE_GOLDEN_FILES=1 build/sbt "sql/test-only *SQLQueryTestSuite -- -z describe.sql"
61+
* SPARK_GENERATE_GOLDEN_FILES=1 build/sbt -Phive-1.2 "sql/test-only *SQLQueryTestSuite --
62+
* -z describe.sql"
6263
* }}}
6364
*
65+
* Change profiles:
66+
* We use `hadoop-2.7` as default now, so the above scripts is equivalent to
67+
* `-Phadoop-2.7 -Phive-1.2`. You can change profiles to `-Phadoop-3.2 -Phive-2.3` to verify higher
68+
* hadoop and hive versions.
69+
*
6470
* The format for input files is simple:
6571
* 1. A list of SQL queries separated by semicolon.
6672
* 2. Lines starting with -- are treated as comments and ignored.

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,19 @@ import org.apache.spark.sql.types._
4141
* To run the entire test suite:
4242
* {{{
4343
* build/sbt "hive-thriftserver/test-only *ThriftServerQueryTestSuite" -Phive-thriftserver
44+
* -Phive-1.2
4445
* }}}
4546
*
4647
* This test suite won't generate golden files. To re-generate golden files for entire suite, run:
4748
* {{{
48-
* SPARK_GENERATE_GOLDEN_FILES=1 build/sbt "sql/test-only *SQLQueryTestSuite"
49+
* SPARK_GENERATE_GOLDEN_FILES=1 build/sbt -Phive-1.2 "sql/test-only *SQLQueryTestSuite"
4950
* }}}
5051
*
52+
* Change profiles:
53+
* We use `hadoop-2.7` as default now, so the above scripts is equivalent to
54+
* `-Phadoop-2.7 -Phive-1.2`. You can change profiles to `-Phadoop-3.2 -Phive-2.3` to verify higher
55+
* hadoop and hive versions.
56+
*
5157
* TODO:
5258
* 1. Support UDF testing.
5359
* 2. Support DESC command.

0 commit comments

Comments
 (0)