-
- Downloads
[SPARK-19151][SQL] DataFrameWriter.saveAsTable support hive overwrite
## What changes were proposed in this pull request? After [SPARK-19107](https://issues.apache.org/jira/browse/SPARK-19107), we now can treat hive as a data source and create hive tables with DataFrameWriter and Catalog. However, the support is not completed, there are still some cases we do not support. This PR implement: DataFrameWriter.saveAsTable work with hive format with overwrite mode ## How was this patch tested? unit test added Author: windpiger <songjun@outlook.com> Closes #16549 from windpiger/saveAsTableWithHiveOverwrite.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala 10 additions, 5 deletions...src/main/scala/org/apache/spark/sql/DataFrameWriter.scala
- sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveStrategies.scala 4 additions, 5 deletions...main/scala/org/apache/spark/sql/hive/HiveStrategies.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala 20 additions, 4 deletions...la/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala
Please register or sign in to comment