Skip to content

Commit 48637a9

Browse files
ulysses-youyaooqinn
authored andcommitted
[SPARK-34766][SQL] Do not capture maven config for views
### What changes were proposed in this pull request? Skip capture maven repo config for views. ### Why are the changes needed? Due to the bad network, we always use the thirdparty maven repo to run test. e.g., ``` build/sbt "test:testOnly *SQLQueryTestSuite" -Dspark.sql.maven.additionalRemoteRepositories=xxxxx ``` It's failed with such error msg ``` [info] - show-tblproperties.sql *** FAILED *** (128 milliseconds) [info] show-tblproperties.sql [info] Expected "...rredTempViewNames [][]", but got "...rredTempViewNames [][ [info] view.sqlConfig.spark.sql.maven.additionalRemoteRepositories xxxxx]" Result did not match for query #6 [info] SHOW TBLPROPERTIES view (SQLQueryTestSuite.scala:464) ``` It's not necessary to capture the maven config to view since it's a session level config.   ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? manual test pass ``` build/sbt "test:testOnly *SQLQueryTestSuite" -Dspark.sql.maven.additionalRemoteRepositories=xxx ``` Closes apache#31856 from ulysses-you/skip-maven-config. Authored-by: ulysses-you <ulyssesyou18@gmail.com> Signed-off-by: Kent Yao <yao@apache.org>
1 parent 385f1e8 commit 48637a9

File tree

1 file changed

+2
-1
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/execution/command

1 file changed

+2
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ object ViewHelper extends SQLConfHelper with Logging {
327327
"spark.sql.codegen.",
328328
"spark.sql.execution.",
329329
"spark.sql.shuffle.",
330-
"spark.sql.adaptive.")
330+
"spark.sql.adaptive.",
331+
SQLConf.ADDITIONAL_REMOTE_REPOSITORIES.key)
331332

332333
private val configAllowList = Seq(
333334
SQLConf.DISABLE_HINTS.key

0 commit comments

Comments
 (0)