diff options
author | Wenchen Fan <wenchen@databricks.com> | 2016-11-28 10:57:17 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-11-28 10:57:17 -0800 |
commit | 185642846e25fa812f9c7f398ab20bffc1e25273 (patch) | |
tree | a6aea9ef1d2e4c48bfd54ae141d724bd528b8cdb /sql/core/src/main | |
parent | eba727757ed5dc23c635e1926795aea62ec0fc66 (diff) | |
download | spark-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.
Diffstat (limited to 'sql/core/src/main')
-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 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", "") } } |