File tree Expand file tree Collapse file tree
sql/core/src/test/scala/org/apache/spark/sql Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments