xy720 commented on code in PR #13345: URL: https://github.com/apache/doris/pull/13345#discussion_r994278212
########## docs/zh-CN/docs/data-operate/import/import-way/load-json-format.md: ########## @@ -510,6 +510,47 @@ curl --location-trusted -u user:passwd -H "format: json" -H "jsonpaths: [\"$.id\ 105 {"order1":["guangzhou"]} 7 ``` +6. 使用json导入Array类型 +由于Rapidjson处理decimal和largeint数值会导致精度问题,所以我们建议使用json字符串来导入数据到array<decimal(27, 9)> 或 array<largeint>列。 + +```json +{"k1": 39, "k2": ["-818.2173181"]} +``` + +```json +{"k1": 40, "k2": ["10000000000000000000.1111111222222222"]} +``` + +```bash +curl --location-trusted -u root: -H "max_filter_ration:0.01" -H "format:json" -H "timeout:300" -T test_decimal.json http://10.81.85.89:8035/api/example_db/array_test_decimal/_stream_load Review Comment: 处理脱敏一下ip地址 ########## docs/zh-CN/docs/data-operate/import/import-way/load-json-format.md: ########## @@ -510,6 +510,47 @@ curl --location-trusted -u user:passwd -H "format: json" -H "jsonpaths: [\"$.id\ 105 {"order1":["guangzhou"]} 7 ``` +6. 使用json导入Array类型 +由于Rapidjson处理decimal和largeint数值会导致精度问题,所以我们建议使用json字符串来导入数据到array<decimal(27, 9)> 或 array<largeint>列。 Review Comment: ```suggestion 由于Rapidjson处理decimal和largeint数值会导致精度问题,所以我们建议使用json字符串来导入数据到array<decimal> 或 array<largeint>列。 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org