Skip to content

Commit

Permalink
Typo: string -> list
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Monahan authored Sep 27, 2024
1 parent 8163e0d commit 23a3ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-09-27-sql-only-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ At its core, the `pivot_table` function determines the SQL required to generate
Since this SQL statement is a string at the end of the day, we can use a hierarchy of scalar SQL macros rather than a single large macro.
This is a common traditional issue with SQL - it tends to not be very modular or reusable, but we are able to compartmentalize our logic wth DuckDB's syntax.

> Note If a non-optional parameter is not in use, an empty string (`[]`) should be passed in.
> Note If a non-optional parameter is not in use, an empty list (`[]`) should be passed in.

* `table_names`: A list of table or view names to aggregate or pivot. Multiple tables are combined with `UNION ALL BY NAME` prior to any other processing.
* `values`: A list of aggregation metrics in the format `['agg_fn_1(col_1)', 'agg_fn_2(col_2)', ...]`.
Expand Down

0 comments on commit 23a3ebc

Please sign in to comment.