mirror of
https://github.com/apache/druid.git
synced 2025-02-25 12:35:33 +00:00
doc: fix unnest datasource syntax (#14272)
This commit is contained in:
parent
9e0708f5e6
commit
8bda7297e1
@ -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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user