Skip to content

Commit 3192e15

Browse files
committed
comment
1 parent 538a44f commit 3192e15

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ class SQLQueryTestSuite extends QueryTest with SharedSparkSession {
286286
// When we are regenerating the golden files for test cases without '--IMPORT' specified, or
287287
// running test cases against [[ThriftServerQueryTestSuite], we don't need to set any config as
288288
// they all need to return the same result.
289+
// When we use '--SET' and '--IMPORT' together for those import queries, we want to run the
290+
// same queries from the original file but with different settings and save the answers. So the
291+
// `--SET` will be respected in this case.
289292
if ((regenerateGoldenFiles && importedTestCaseName.isEmpty) || !isTestWithConfigSets) {
290293
runQueries(queries, testCase, None)
291294
} else {

0 commit comments

Comments
 (0)