-
- Downloads
[SPARK-19331][SQL][TESTS] Improve the test coverage of SQLViewSuite
Move `SQLViewSuite` from `sql/hive` to `sql/core`, so we can test the view supports without hive metastore. Also moved the test cases that specified to hive to `HiveSQLViewSuite`. Improve the test coverage of SQLViewSuite, cover the following cases: 1. view resolution(possibly a referenced table/view have changed after the view creation); 2. handle a view with user specified column names; 3. improve the test cases for a nested view. Also added a test case for cyclic view reference, which is a known issue that is not fixed yet. N/A Author: jiangxingbo <jiangxb1987@gmail.com> Closes #16674 from jiangxb1987/view-test.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala 8 additions, 3 deletions...ala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/NoSuchItemException.scala 1 addition, 1 deletion...che/spark/sql/catalyst/analysis/NoSuchItemException.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewSuite.scala 149 additions, 291 deletions...t/scala/org/apache/spark/sql/execution/SQLViewSuite.scala
- sql/core/src/test/scala/org/apache/spark/sql/test/SharedSQLContext.scala 4 additions, 7 deletions...st/scala/org/apache/spark/sql/test/SharedSQLContext.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveSQLViewSuite.scala 140 additions, 0 deletions...rg/apache/spark/sql/hive/execution/HiveSQLViewSuite.scala
Loading
Please register or sign in to comment