aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWenchen Fan <wenchen@databricks.com>2016-11-28 10:57:17 -0800
committerReynold Xin <rxin@databricks.com>2016-11-28 10:57:17 -0800
commit185642846e25fa812f9c7f398ab20bffc1e25273 (patch)
treea6aea9ef1d2e4c48bfd54ae141d724bd528b8cdb
parenteba727757ed5dc23c635e1926795aea62ec0fc66 (diff)
downloadspark-185642846e25fa812f9c7f398ab20bffc1e25273.tar.gz
spark-185642846e25fa812f9c7f398ab20bffc1e25273.tar.bz2
spark-185642846e25fa812f9c7f398ab20bffc1e25273.zip
[SQL][MINOR] DESC should use 'Catalog' as partition provider
## What changes were proposed in this pull request? `CatalogTable` has a parameter named `tracksPartitionsInCatalog`, and in `CatalogTable.toString` we use `"Partition Provider: Catalog"` to represent it. This PR fixes `DESC TABLE` to make it consistent with `CatalogTable.toString`. ## How was this patch tested? N/A Author: Wenchen Fan <wenchen@databricks.com> Closes #16035 from cloud-fan/minor.
-rw-r--r--sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala2
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 ca4d20a99c..57d66f1f14 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
@@ -489,7 +489,7 @@ case class DescribeTableCommand(
if (table.tableType == CatalogTableType.VIEW) describeViewInfo(table, buffer)
if (DDLUtils.isDatasourceTable(table) && table.tracksPartitionsInCatalog) {
- append(buffer, "Partition Provider:", "Hive", "")
+ append(buffer, "Partition Provider:", "Catalog", "")
}
}