public class HiveTableOperations
extends org.apache.iceberg.BaseMetastoreTableOperations
| Modifier | Constructor and Description |
|---|---|
protected |
HiveTableOperations(org.apache.hadoop.conf.Configuration conf,
org.apache.iceberg.ClientPool metaClients,
org.apache.iceberg.io.FileIO fileIO,
java.lang.String catalogName,
java.lang.String database,
java.lang.String table) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCommit(org.apache.iceberg.TableMetadata base,
org.apache.iceberg.TableMetadata metadata) |
protected void |
doRefresh() |
org.apache.iceberg.io.FileIO |
io() |
protected java.lang.String |
tableName() |
static java.lang.String |
translateToIcebergProp(java.lang.String hmsProp)
Provides key translation where necessary between Iceberg and HMS props.
|
checkCommitStatus, commit, current, currentMetadataLocation, currentVersion, disableRefresh, locationProvider, metadataFileLocation, refresh, refreshFromMetadataLocation, refreshFromMetadataLocation, refreshFromMetadataLocation, refreshFromMetadataLocation, requestRefresh, temp, writeNewMetadata, writeNewMetadataIfRequiredprotected HiveTableOperations(org.apache.hadoop.conf.Configuration conf,
org.apache.iceberg.ClientPool metaClients,
org.apache.iceberg.io.FileIO fileIO,
java.lang.String catalogName,
java.lang.String database,
java.lang.String table)
public static java.lang.String translateToIcebergProp(java.lang.String hmsProp)
Example: Deleting data files upon DROP TABLE is enabled using gc.enabled=true in Iceberg and external.table.purge=true in Hive. Hive and Iceberg users are unaware of each other's control flags, therefore inconsistent behaviour can occur from e.g. a Hive user's point of view if external.table.purge=true is set on the HMS table but gc.enabled=false is set on the Iceberg table, resulting in no data file deletion.
hmsProp - The HMS property that should be translated to Iceberg propertyprotected java.lang.String tableName()
tableName in class org.apache.iceberg.BaseMetastoreTableOperationspublic org.apache.iceberg.io.FileIO io()
protected void doRefresh()
doRefresh in class org.apache.iceberg.BaseMetastoreTableOperationsprotected void doCommit(org.apache.iceberg.TableMetadata base,
org.apache.iceberg.TableMetadata metadata)
doCommit in class org.apache.iceberg.BaseMetastoreTableOperations