zhztheplayer commented on a change in pull request #1013: [CALCITE-2791]Add the JSON_TYPE function URL: https://github.com/apache/calcite/pull/1013#discussion_r257631359
########## File path: site/_docs/reference.md ########## @@ -1992,6 +1993,24 @@ Note: | value IS JSON ARRAY | Whether *value* is a json array, *value* is in character string type | value IS NOT JSON ARRAY | Whether *value* is not a json array, *value* is in character string type +#### MySQL Specific Operators + +| Operator syntax | Description +|:------------------------------------------------- |:----------- +| JSON_TYPE(value) | Returns a string indicating the type of a JSON **value**. This can be an object, an array, or a scalar type + +Example Data: + +```JSON +{"a": [10, true]} +``` + +Comparison: + +|Operator |{"a": [10, true]}|$.a |$.a[0] |$.a[1] Review comment: Could a single `$` better than `{"a": [10, true]}` here? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services