From 8bda7297e15c21581cab1395d6e25cdc085c3c48 Mon Sep 17 00:00:00 2001 From: 317brian <53799971+317brian@users.noreply.github.com> Date: Fri, 12 May 2023 13:05:27 -0700 Subject: [PATCH] doc: fix unnest datasource syntax (#14272) --- docs/querying/datasource.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/querying/datasource.md b/docs/querying/datasource.md index fd3984cb536..211f58bd8c1 100644 --- a/docs/querying/datasource.md +++ b/docs/querying/datasource.md @@ -413,7 +413,7 @@ The `unnest` datasource uses the following syntax: "name": "output_column", "expression": "\"column_reference\"" }, - "outputName": "unnested_target_column" + "unnestFilter": "optional_filter" } ``` @@ -421,5 +421,6 @@ The `unnest` datasource uses the following syntax: * `dataSource.base`: Defines the datasource you want to unnest. * `dataSource.base.type`: The type of datasource you want to unnest, such as a table. * `dataSource.virtualColumn`: [Virtual column](virtual-columns.md) that references the nested values. The output name of this column is reused as the name of the column that contains unnested values. You can replace the source column with the unnested column by specifying the source column's name or a new column by specifying a different name. Outputting it to a new column can help you verify that you get the results that you expect but isn't required. +* `unnestFilter`: A filter only on the output column. You can omit this or set it to null if there are no filters. To learn more about how to use the `unnest` datasource, see the [unnest tutorial](../tutorials/tutorial-unnest-arrays.md).