Hi,

> Question translation:
When Doris' stream load imports data in json format, if the file contains
multiple json objects, it will report an error:
```Reason: Parse json data for JsonDoc failed. code = 2, error-info:The
document root must not be followed by other values```
When Doris writes multiple json data files, the file must be a json array
and specify -H "strip_outer_array: true" at the same time? I tried to write
in this way and it can be written.

Yes, if you want to import multiple pieces of json data at once, you need
to use the json array structure.

Ling Miao

Anonymity🐜 <313304...@qq.com> 于2021年3月15日周一 下午3:35写道:

> 请教一下各位大佬,doris的stream load写入json文件时,文件只有一条数据时,可以正常写入,当文件包含多条json
> object时,写入时收到如下异常:
> Reason: Parse json data for JsonDoc failed. code = 2, error-info:The
> document root must not be followed by other values..
> doris写入多条json数据的文件时,必须文件必须是json array,同时指定-H "strip_outer_array: true"吗?
> 我试了一下这样写入是能写入的。

Reply via email to