RocMarshal commented on a change in pull request #17508:
URL: https://github.com/apache/flink/pull/17508#discussion_r732557529



##########
File path: docs/data/sql_functions_zh.yml
##########
@@ -707,11 +707,9 @@ json:
   - sql: IS JSON [ { VALUE | SCALAR | ARRAY | OBJECT } ]
     table: STRING.isJson([JsonType type])
     description: |
-      Determine whether a given string is valid JSON.
+      判定给定字符串是否为有效的 JSON。
 
-      Specifying the optional type argument puts a constraint on which type of 
JSON object is
-      allowed. If the string is valid JSON, but not that type, `false` is 
returned. The default is
-      `VALUE`.
+      指定一个可选类型参数将会限制允许哪种类型的 JSON 对象。如果字符串是有效的 JSON,但不是指定的类型,则返回 'false'。默认值为 
'VALUE'。

Review comment:
       I made some test on the json clause base on latest master branck as 
follows:
   
   Flink SQL> select '1' IS JSON SCALAR; // true
   [INFO] Result retrieval cancelled.
   
   Flink SQL> select '1' IS JSON VALUE;//true
   [INFO] Result retrieval cancelled.
   
   
   Flink SQL> select '1' IS JSON ARRAY;//false
   [INFO] Result retrieval cancelled.
   
   Flink SQL> select '1' IS JSON OBJECT;//false
   [INFO] Result retrieval cancelled.
   
   I'm not sure if the original content in this page was coded correctly. But 
we just do the translation work at current pull request, IMO.




-- 
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]


Reply via email to