Skip to content

CatalogTablePartition -- Partition Specification of Table

CatalogTablePartition is the partition specification of a table, i.e. the metadata of the partitions of a table.

CatalogTablePartition is <> when:

  • HiveClientImpl is requested to hive/HiveClientImpl.md#fromHivePartition[retrieve a table partition metadata]

  • AlterTableAddPartitionCommand and AlterTableRecoverPartitionsCommand logical commands are executed

CatalogTablePartition can hold the <> that...FIXME

[[simpleString]] The readable text representation of a CatalogTablePartition (aka simpleString) is...FIXME

NOTE: simpleString is used exclusively when ShowTablesCommand is <> (with a partition specification).

[[toString]] CatalogTablePartition uses the following text representation (i.e. toString)...FIXME

=== [[creating-instance]] Creating CatalogTablePartition Instance

CatalogTablePartition takes the following when created:

  • [[spec]] Partition specification
  • [[storage]] <>
  • [[parameters]] Parameters (default: an empty collection)
  • [[stats]] <> (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 <>
  • <> (of the given <>)
  • 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 <> of the <> or throws an AnalysisException:

Partition [[specString]] did not specify locationUri

NOTE: location is used when...FIXME


Last update: 2020-11-07