Alter a database whose name matches the one specified in dbDefinition
,
assuming the database exists.
Alter a database whose name matches the one specified in dbDefinition
,
assuming the database exists.
Note: As of now, this only supports altering database properties!
Alter one or many table partitions whose specs that match those specified in parts
,
assuming the partitions exist.
Alter one or many table partitions whose specs that match those specified in parts
,
assuming the partitions exist.
Note: If the underlying implementation does not support altering a certain field, this becomes a no-op.
Alter a table whose name that matches the one specified in tableDefinition
,
assuming the table exists.
Alter a table whose name that matches the one specified in tableDefinition
,
assuming the table exists.
Note: As of now, this doesn't support altering table schema, partition column names and bucket specification. We will ignore them even if users do specify different values for these fields.
Alter the schema of a table identified by the provided database and table name.
Alter the schema of a table identified by the provided database and table name. The new schema should still contain the existing bucket columns and partition columns used by the table. This method will also update any Spark SQL-related parameters stored as Hive table properties (such as the schema itself).
Database that table to alter schema for exists in
Name of table to alter schema for
Updated schema to be used for the table (must contain existing partition and bucket columns)
A Hive client used to interact with the metastore.
A Hive client used to interact with the metastore.
Returns the specified partition or None if it does not exist.
Returns the specified partition or None if it does not exist.
Returns the partition names from hive metastore for a given table in a database.
Returns the partition names from hive metastore for a given table in a database.
database name
table name
partition spec
Returns the partitions from hive metastore for a given table in a database.
Returns the partitions from hive metastore for a given table in a database.
database name
table name
partition spec
List the metadata of partitions that belong to the specified table, assuming it exists, that satisfy the given partition-pruning predicate expressions.
List the metadata of partitions that belong to the specified table, assuming it exists, that satisfy the given partition-pruning predicate expressions.
database name
table name
partition-pruning predicates
Override the specs of one or many existing table partitions, assuming they exist.
Override the specs of one or many existing table partitions, assuming they exist.
This assumes index i of specs
corresponds to index i of newSpecs
.