You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/13 08:53:40 UTC

[GitHub] [doris] carlvinhust2012 commented on a diff in pull request #13345: [optimization](array-type) update the docs for import data to array c…

carlvinhust2012 commented on code in PR #13345:
URL: https://github.com/apache/doris/pull/13345#discussion_r994353603


##########
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:
   done



##########
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:
   done



-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org