CatalogTablePartition¶
CatalogTablePartition
is the partition specification of a table, i.e. the metadata of the partitions of a table.
CatalogTablePartition
is <
HiveClientImpl
is requested to hive/HiveClientImpl.md#fromHivePartition[retrieve a table partition metadata]
CatalogTablePartition
can hold the <
[[simpleString]] The readable text representation of a CatalogTablePartition
(aka simpleString
) is...FIXME
NOTE: simpleString
is used exclusively when ShowTablesCommand
is executed (with a partition specification).
[[toString]] CatalogTablePartition
uses the following text representation (i.e. toString
)...FIXME
Creating Instance¶
CatalogTablePartition
takes the following when created:
- [[spec]] Partition specification
- [[storage]] CatalogStorageFormat
- [[parameters]] Parameters (default: an empty collection)
- [[stats]] Table statistics (default:
None
)
=== [[toLinkedHashMap]] Converting Partition Specification to LinkedHashMap -- toLinkedHashMap
Method
[source, scala]¶
toLinkedHashMap: mutable.LinkedHashMap[String, String]¶
toLinkedHashMap
converts the partition specification to a collection of pairs (LinkedHashMap[String, String]
) with the following fields and their values:
- Partition Values with the <
> - Storage specification (of the given CatalogStorageFormat)
- Partition Parameters with the <
> (if not empty) - Partition Statistics with the <
> (if available)
[NOTE]¶
toLinkedHashMap
is used when:
DescribeTableCommand
logical command is <> (with the DescribeTableCommand.md#isExtended[isExtended] flag on and a non-empty DescribeTableCommand.md#partitionSpec[partitionSpec]).
* CatalogTablePartition
is requested for either a <> or a <> text representation¶
=== [[location]] location
Method
[source, scala]¶
location: URI¶
location
simply returns the location URI of the CatalogStorageFormat or throws an AnalysisException
:
Partition [[specString]] did not specify locationUri
NOTE: location
is used when...FIXME