Apply theme styling to a chart specification
Table-in, table-out — composes downstream of SELECTs.
THEN ADD_STYLESTHEN ADD_STYLES({{ theme }})THEN ADD_STYLES({{ theme }}, {{ custom }})| name | type | description |
|---|---|---|
| theme(optional) | VARCHAR | — |
| custom(optional) | VARCHAR | — |
| _table | TABLE | — |
Applies the requested theme to a data-driven Plotly chart
SELECT
*
FROM
(
SELECT
'plotly' AS format,
'{"type":"bar","x":"category","y":"amount"}'::JSON AS config,
'A' AS category,
10 AS amount
UNION ALL
SELECT
'plotly',
'{"type":"bar","x":"category","y":"amount"}'::JSON,
'B',
20
) THEN ADD_STYLES ('paper') THEN PYTHON (
'result = pd.DataFrame({"theme":[df.iloc[0]["theme"]]})'
)Analyze query results with LLM based on a prompt
Remove duplicate rows
Add LLM-computed columns to query results
Filter query results using LLM-based semantic matching
Group by column and aggregate another
Investigative analysis - explores related data to answer questions
Apply theme styling to a chart specification
Table-in, table-out — composes downstream of SELECTs.
THEN ADD_STYLESTHEN ADD_STYLES({{ theme }})THEN ADD_STYLES({{ theme }}, {{ custom }})| name | type | description |
|---|---|---|
| theme(optional) | VARCHAR | — |
| custom(optional) | VARCHAR | — |
| _table | TABLE | — |
Applies the requested theme to a data-driven Plotly chart
SELECT
*
FROM
(
SELECT
'plotly' AS format,
'{"type":"bar","x":"category","y":"amount"}'::JSON AS config,
'A' AS category,
10 AS amount
UNION ALL
SELECT
'plotly',
'{"type":"bar","x":"category","y":"amount"}'::JSON,
'B',
20
) THEN ADD_STYLES ('paper') THEN PYTHON (
'result = pd.DataFrame({"theme":[df.iloc[0]["theme"]]})'
)Analyze query results with LLM based on a prompt
Remove duplicate rows
Add LLM-computed columns to query results
Filter query results using LLM-based semantic matching
Group by column and aggregate another
Investigative analysis - explores related data to answer questions