superset_dataset_get_or_create
Get an existing Apache Superset dataset for a table, or create a new physical dataset when none exists. Provide database ID, table name, and optional schema to locate or provision the dataset.
Instructions
Get an existing dataset or create a new one for a table.
If a dataset for the specified table already exists, returns it. If not, creates a new physical dataset.
Args: database_id: Database connection ID (from superset_database_list). table_name: Table name in the database. schema_name: Database schema (e.g. "public", "source"). If omitted, uses the DB default schema.
Returns: JSON string with the dataset details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | ||
| database_id | Yes | ||
| schema_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |