doc: fix unnest datasource syntax (#14272)

This commit is contained in:
317brian 2023-05-12 13:05:27 -07:00 committed by GitHub
parent 9e0708f5e6
commit 8bda7297e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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).