incubator-doris Parse json data for JsonDoc failed

vof42yt1  于 2022-04-22  发布在  Java
关注(0)|答案(1)|浏览(496)

Describe the bug

Reason: Parse json data for JsonDoc failed. code = 10, error-info:Invalid escape character in string..

In our system, it can be turned into JSON.
put json to doris is error.

To Reproduce

1.create table t_prod_type
2.import json to t_prod_type

json and table download url: http://mz.bizgo.com.cn/j.zip

brtdzjyr

brtdzjyr1#

I find

[{
    "ownerId": "29440",
    "id": "97006",
    "name": "代子洋\套扫",
    "parentId": "0",
    "createBy": "13980905060",
    "createDate": "2018-12-26 14:06:27.0",
    "lastUpdateBy": "13980905060",
    "lastUpdateDate": "2018-12-29 16:30:11.0",
    "isDel": true,
    "delDate": "2018-12-29 16:30:11.0",
    "version": 2,
    "parentIdsNav": "0",
    "level": 1,
    "isLeaf": true,
    "namePinYin": "daiziyangtaosao",
    "namePY": "d",
    "defaultFlag": false,
    "branchId": "29440"
}]

In your data. Are you surce 代子洋\套扫 is what you want?
It seems that it is a valid json somehow, but rapidjson does not support parsing it.

相关问题