[Doc][Json Load] Improve json data format load documents (#4337)

And some detail explaination of JsonPath and Columns parameter
This commit is contained in:
Mingyu Chen
2020-08-13 23:39:57 +08:00
committed by GitHub
parent 1d9b3aeee7
commit 05fa55047e
2 changed files with 6 additions and 2 deletions

View File

@ -185,7 +185,9 @@ Doris supports extracting the data specified in Json through Json Path.
## Json Path and Columns
Json Path is used to specify how to extract data in JSON format, and Columns specify the mapping and conversion relationship of columns. The two can be used together, for example as follows.
Json Path is used to specify how to extract data in JSON format, and Columns specify the mapping and conversion relationship of columns. The two can be used together.
In other words, it is equivalent to using Json Path to rearrange the data in a Json format according to the column order specified in Json Path. After that, you can use Columns to map the rearranged source data to the columns of the table. Examples are as follows:
Data content:

View File

@ -187,7 +187,9 @@ Doris 支持通过 Json Path 抽取 Json 中指定的数据。
## Json Path 和 Columns
Json Path 用于指定如何对 JSON 格式中的数据进行抽取,而 Columns 指定列的映射和转换关系。两者可以配合使用,举例如下
Json Path 用于指定如何对 JSON 格式中的数据进行抽取,而 Columns 指定列的映射和转换关系。两者可以配合使用。
换句话说,相当于通过 Json Path,将一个 Json 格式的数据,按照 Json Path 中指定的列顺序进行了列的重排。之后,可以通过 Columns,将这个重排后的源数据和表的列进行映射。举例如下:
数据内容: