Skip to content

Commit

Permalink
[SQL][MINOR] DESC should use 'Catalog' as partition provider
Browse files Browse the repository at this point in the history
## 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 apache#16035 from cloud-fan/minor.
  • Loading branch information
cloud-fan authored and rxin committed Nov 28, 2016
1 parent eba7277 commit 1856428
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
}
}

Expand Down

0 comments on commit 1856428

Please sign in to comment.