update_dataset_sql
Update the SQL query for a QuickSight dataset in place. Creates a backup by default to protect against unintended changes.
Instructions
Update the SQL query for a QuickSight dataset.
WARNING: This modifies the dataset in place. A backup is created by default.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset_id": "<dataset_id>",
"new_sql": "<new_sql>"
},
"name": "update_dataset_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_sql | Yes | The new SQL query to set. Must be valid SQL for the dataset's data source (e.g., Snowflake, Redshift). | |
| dataset_id | Yes | The QuickSight dataset ID. | |
| backup_first | No | Create a backup before updating (default True). Strongly recommended -- set to False only if you already have a manual backup. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||