-
- Downloads
[SPARK-21150][SQL] Persistent view stored in Hive metastore should be case preserving
## What changes were proposed in this pull request? This is a regression in Spark 2.2. In Spark 2.2, we introduced a new way to resolve persisted view: https://issues.apache.org/jira/browse/SPARK-18209 , but this makes the persisted view non case-preserving because we store the schema in hive metastore directly. We should follow data source table and store schema in table properties. ## How was this patch tested? new regression test Author: Wenchen Fan <wenchen@databricks.com> Closes #18360 from cloud-fan/view.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala 3 additions, 1 deletion.../scala/org/apache/spark/sql/execution/command/views.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/SQLViewSuite.scala 10 additions, 0 deletions...t/scala/org/apache/spark/sql/execution/SQLViewSuite.scala
- sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala 43 additions, 41 deletions...scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala
Please register or sign in to comment