关注 spark技术分享,
撸spark源码 玩spark最佳实践

HiveClient

HiveClient — Contract for Retrieving Metadata from Hive Metastore

HiveClient is the contract for…​FIXME

Note
HiveClientImpl is the only available HiveClient in Spark SQL.

HiveClient offers safe variants of many methods that do not report exceptions when a relational entity is not found in a Hive metastore, e.g. getTableOption for getTable.

Note
HiveClient is a private[hive] contract.
Table 1. (Subset of) HiveClient Contract
Method Description

alterPartitions

getPartitions

Returns the CatalogTablePartition of a table

Used exclusively when HiveExternalCatalog is requested to list the partitions of a table.

getPartitionsByFilter

Used when…​FIXME

getPartitionOption

Used when…​FIXME

getTableOption

Retrieves a table metadata if available

Used exclusively when HiveClient is requested for a table metadata

Note
getTableOption is a safe version of getTable as it does not throw a NoSuchTableException, but simply returns None.

renamePartitions

Used when…​FIXME

Retrieving Table Metadata If Available or Throwing NoSuchTableException — getTable Method

getTable retrieves the metadata of a table in a Hive metastore if available or reports a NoSuchTableException.

Note

getTable is used when:

赞(0) 打赏
未经允许不得转载:spark技术分享 » HiveClient
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏