Catalogs
Sync Onehouse tables to external catalogs (Glue, Hive, Unity, OneTable, DataHub, Snowflake, OneLake, BigQuery, Dataproc).
Methods
| Method | Description |
|---|---|
create_catalog | Register an external catalog |
delete_catalog | Delete a catalog |
describe_catalog | Show full configuration for a catalog |
show_catalogs | List all catalogs in the project |
create_catalog
create_catalog(
name: str,
*,
type: str,
credential_type: str | None = None,
options: Mapping[str, str] | None = None,
unsafe_raw: bool = False,
timeout: float | None = None,
poll_interval: float | None = None,
)
| Parameter | Required | Type / values |
|---|---|---|
name | yes | str |
type | yes | "GLUE", "HIVE", "BIGQUERY", "DATAHUB", "ONETABLE", "DATAPROC", "UNITY", "SNOWFLAKE", "ONELAKE" |
credential_type | no | "CREDENTIAL_TYPE_ONEHOUSE", "CREDENTIAL_TYPE_SECRET_MANAGER" |
options | no | Mapping[str, str] — catalog-specific config (e.g. region, account ID) |
Example
client.create_catalog(
"my_glue_catalog",
type="GLUE",
credential_type="CREDENTIAL_TYPE_ONEHOUSE",
options={"region": "us-west-2"},
)
delete_catalog
delete_catalog(name: str, *, unsafe_raw=False, timeout=None, poll_interval=None)
Example
client.delete_catalog("my_glue_catalog")
describe_catalog
describe_catalog(name: str, *, unsafe_raw=False, timeout=None, poll_interval=None)
Example
result = client.describe_catalog("my_glue_catalog")
show_catalogs
show_catalogs(*, timeout=None, poll_interval=None)
Example
result = client.show_catalogs()