Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-35792][SQL] View should not capture configs used in `RelationC…
…onversions` ### What changes were proposed in this pull request? `RelationConversions` is actually an optimization rule while it's executed in the analysis phase. For view, it's designed to only capture semantic configs, so we should ignore the optimization configs that will be used in the analysis phase. This PR also fixes the issue that view resolution will always use the default value for uncaptured config ### Why are the changes needed? Bugfix ### Does this PR introduce _any_ user-facing change? Yes, after this PR view resolution will respect the values set in the current session for the below configs ``` "spark.sql.hive.convertMetastoreParquet" "spark.sql.hive.convertMetastoreOrc" "spark.sql.hive.convertInsertingPartitionedTable" "spark.sql.hive.convertMetastoreCtas" ``` ### How was this patch tested? By running new UT: ``` $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *HiveSQLViewSuite" ``` Closes #32941 from linhongliu-db/SPARK-35792-ignore-convert-configs. Authored-by: Linhong Liu <linhong.liu@databricks.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit b86a69f) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
- Loading branch information
1 parent
7338ab3
commit 33ee3d9
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters