eldenmoon commented on code in PR #4170:
URL: https://github.com/apache/doris-website/pull/4170#discussion_r4080093062


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/variant-functions/parse-to-variant.md:
##########
@@ -27,8 +27,11 @@ PARSE_TO_VARIANT(<json_value>)
 返回 `VARIANT` 值。
 
 - 输入为 SQL `NULL` 时返回 SQL `NULL`。
-- 输入为 JSON 字面量 `null` 时返回 Variant/JSON `null`,它与 SQL `NULL` 不同。
-- JSON 非法、对象 key 重复且当前校验设置不允许、嵌套深度超限或发生其他校验错误时,查询失败。
+- 输入为 JSON 字面量 `null` 时返回 VARIANT `null`,它与 SQL `NULL` 不同。
+- 非法 JSON 文本会作为 VARIANT 字符串返回;包含超出 [-2^63, 2^64 - 1] 的整数或超出 `DOUBLE` 范围的数值的 
JSON 也是如此,整段文本变为一个字符串。该行为由 BE 配置 `variant_throw_exeception_on_invalid_json`(默认 
`false`)控制;设置为 `true` 后,这类输入会使查询失败。

Review Comment:
   variant_throw_exeception_on_invalid_json 这个配置是否不应该保留, 有 
try_parse_to_variant/parse_to_variant 本身控制, 比如 try 的不报错,否则报错?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to