Take a random sample of rows
Table-in, table-out — composes downstream of SELECTs.
THEN SAMPLETHEN SAMPLE {{ n }}THEN SAMPLE({{ n }})| name | type | description |
|---|---|---|
| n(optional) | VARCHAR | — |
| _table | TABLE | — |
Returns the requested sample size
SELECT
*
FROM
(
VALUES
(1),
(2),
(3),
(4)
) AS t (x) THEN SAMPLE (2) THEN PYTHON ('result = pd.DataFrame({"row_count":[len(df)]})')Apply theme styling to a chart specification
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
Take a random sample of rows
Table-in, table-out — composes downstream of SELECTs.
THEN SAMPLETHEN SAMPLE {{ n }}THEN SAMPLE({{ n }})| name | type | description |
|---|---|---|
| n(optional) | VARCHAR | — |
| _table | TABLE | — |
Returns the requested sample size
SELECT
*
FROM
(
VALUES
(1),
(2),
(3),
(4)
) AS t (x) THEN SAMPLE (2) THEN PYTHON ('result = pd.DataFrame({"row_count":[len(df)]})')Apply theme styling to a chart specification
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