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).
Name of table to alter schema for
Updated schema to be used for the table (must contain existing partition and bucket columns)
A cache of Spark SQL data source tables that have been accessed.
A cache of Spark SQL data source tables that have been accessed.
A Hive client used to interact with the metastore.
A Hive client used to interact with the metastore.
Transform given CatalogTable to final form filling in viewText and other fields using the properties if required.
Transform given CatalogTable to final form filling in viewText and other fields using the properties if required.
Get all the tables in the catalog skipping given schema names.
Get all the tables in the catalog skipping given schema names. By default the inbuilt SYS schema is skipped.
Check for baseTable in both properties and storage.properties (older releases used a mix).
Check for baseTable in both properties and storage.properties (older releases used a mix).
Get all the dependent objects for a given catalog object.
Get all the dependent objects for a given catalog object.
Get all the dependent objects for a given catalog object.
Get all the dependent objects for a given catalog object. Note that this does not check for older releases that may lack appropriate catalog entries for dependent relations. Use getDependents for cases where that might be possible.
Returns the specified partition or None if it does not exist.
Returns the specified partition or None if it does not exist.
Get the list of policies defined for a given table
Get the list of policies defined for a given table
schema name of the table
name of the table
CatalogTable.properties for the table
list of policy CatalogTables
Get RelationInfo for given table with underlying region in embedded mode.
Get RelationInfo for given table with underlying region in embedded mode.
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.
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.
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.
table name
partition-pruning predicates
A cache of SQL data source tables that are missing in catalog.
A cache of SQL data source tables that are missing in catalog.
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
.