Skip to main content

query_visualizations_legacy

Creates, updates, deletes, gets or lists a query_visualizations_legacy resource.

Overview

Namequery_visualizations_legacy
TypeResource
Iddatabricks_workspace.sql.query_visualizations_legacy

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
updateinsertid, deployment_nameUpdates visualization in the query.
createinsertdeployment_name, options, query_id, typeCreates visualization in the query.
deletedeleteid, deployment_nameRemoves a visualization from the query.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
idstringWidget ID returned by :method:queryvisualizations/create

INSERT examples

Updates visualization in the query.

INSERT INTO databricks_workspace.sql.query_visualizations_legacy (
created_at,
description,
name,
options,
query,
type,
updated_at,
id,
deployment_name
)
SELECT
'{{ created_at }}',
'{{ description }}',
'{{ name }}',
'{{ options }}',
'{{ query }}',
'{{ type }}',
'{{ updated_at }}',
'{{ id }}',
'{{ deployment_name }}'
RETURNING
id,
name,
created_at,
description,
options,
query,
type,
updated_at
;

DELETE examples

Removes a visualization from the query.

DELETE FROM databricks_workspace.sql.query_visualizations_legacy
WHERE id = '{{ id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
;