Repository: spark Updated Branches: refs/heads/branch-2.1 34ad4d520 -> 4d7947856
[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 <[email protected]> Closes #16035 from cloud-fan/minor. (cherry picked from commit 185642846e25fa812f9c7f398ab20bffc1e25273) Signed-off-by: Reynold Xin <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/4d794785 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/4d794785 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/4d794785 Branch: refs/heads/branch-2.1 Commit: 4d7947856be540bb671dc527fecb0881536d5a29 Parents: 34ad4d5 Author: Wenchen Fan <[email protected]> Authored: Mon Nov 28 10:57:17 2016 -0800 Committer: Reynold Xin <[email protected]> Committed: Mon Nov 28 10:57:22 2016 -0800 ---------------------------------------------------------------------- .../main/scala/org/apache/spark/sql/execution/command/tables.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/4d794785/sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala ---------------------------------------------------------------------- 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 ca4d20a..57d66f1 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", "") } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
