update doc

This commit is contained in:
frank chen 2021-06-18 15:13:20 +08:00
parent fc5f028c97
commit fa8ffe96d3
2 changed files with 14 additions and 0 deletions

View File

@ -553,6 +553,19 @@ Each entry in the `fields` list can have the following components:
* If `useFieldDiscovery` is enabled, any discovered field with the same name as one already defined in the `fields` list will be skipped, rather than added twice.
* [http://jsonpath.herokuapp.com/](http://jsonpath.herokuapp.com/) is useful for testing `path`-type expressions.
* jackson-jq supports a subset of the full [jq](https://stedolan.github.io/jq/) syntax. Please refer to the [jackson-jq documentation](https://github.com/eiiches/jackson-jq) for details.
* [JsonPath](https://github.com/jayway/JsonPath) supports a bunch of functions, but not all of these functions are supported by Druid now. Following matrix shows the current supported JsonPath functions and corresponding data formats. Please also note the output data type of these functions.
| Function | Description | Output type | json | orc | avro | parquet |
| :----------| :------------------------------------------------------------------ |:----------- |:-----|:----|:-----|:-----|
| min() | Provides the min value of an array of numbers | Double | ✓ | ✓ | ✓ | ✓ |
| max() | Provides the max value of an array of numbers | Double | ✓ | ✓ | ✓ | ✓ |
| avg() | Provides the average value of an array of numbers | Double | ✓ | ✓ | ✓ | ✓ |
| stddev() | Provides the standard deviation value of an array of numbers | Double | ✓ | ✓ | ✓ | ✓ |
| length() | Provides the length of an array | Integer | ✓ | ✓ | ✓ | ✓ |
| sum() | Provides the sum value of an array of numbers | Double | ✓ | ✓ | ✓ | ✓ |
| concat(X) | Provides a concatenated version of the path output with a new item | like input | ✓ | ✗ | ✗ | ✗ |
| append(X) | add an item to the json path output array | like input | ✓ | ✗ | ✗ | ✗ |
## Parser

View File

@ -37,6 +37,7 @@ BCP
Base64
Base64-encoded
ByteBuffer
concat
CIDR
CORS
CNF