diff options
author | gatorsmile <gatorsmile@gmail.com> | 2016-11-09 00:11:48 -0800 |
---|---|---|
committer | gatorsmile <gatorsmile@gmail.com> | 2016-11-09 00:11:48 -0800 |
commit | e256392a128c8fffa8abb86ab99224ae09b0e1ff (patch) | |
tree | 835e4344b65e5a4288768e4f31e2d0d53f9b70bc /sql/core | |
parent | b9192bb3ffc319ebee7dbd15c24656795e454749 (diff) | |
download | spark-e256392a128c8fffa8abb86ab99224ae09b0e1ff.tar.gz spark-e256392a128c8fffa8abb86ab99224ae09b0e1ff.tar.bz2 spark-e256392a128c8fffa8abb86ab99224ae09b0e1ff.zip |
[SPARK-17659][SQL] Partitioned View is Not Supported By SHOW CREATE TABLE
### What changes were proposed in this pull request?
`Partitioned View` is not supported by SPARK SQL. For Hive partitioned view, SHOW CREATE TABLE is unable to generate the right DDL. Thus, SHOW CREATE TABLE should not support it like the other Hive-only features. This PR is to issue an exception when detecting the view is a partitioned view.
### How was this patch tested?
Added a test case
Author: gatorsmile <gatorsmile@gmail.com>
Closes #15233 from gatorsmile/partitionedView.
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala index 3a856fa0f5..e49a1f5acd 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala @@ -780,7 +780,7 @@ case class ShowCreateTableCommand(table: TableIdentifier) extends RunnableComman private def showCreateHiveTable(metadata: CatalogTable): String = { def reportUnsupportedError(features: Seq[String]): Unit = { throw new AnalysisException( - s"Failed to execute SHOW CREATE TABLE against table ${metadata.identifier.quotedString}, " + + s"Failed to execute SHOW CREATE TABLE against table/view ${metadata.identifier}, " + "which is created by Hive and uses the following unsupported feature(s)\n" + features.map(" - " + _).mkString("\n") ) |