Mryange opened a new pull request, #34591: URL: https://github.com/apache/doris/pull/34591
## Proposed changes Evaluates a (possibly empty) list of key-value pairs and returns a JSON object containing those pairs. An error occurs if any key name is NULL or the number of arguments is odd. ``` mysql [test2]>select * from test; +------+------+ | id | str | +------+------+ | 1 | NULL | +------+------+ 1 row in set (0.06 sec) mysql [test2]>select json_object(str,id) from test; +----------------------------------------------------+ | json_object(str, cast(id as VARCHAR(65533)), '62') | +----------------------------------------------------+ | {"":1} | +----------------------------------------------------+ 1 row in set (0.12 sec) ``` now ``` mysql [test2]>select json_object(str,id) from test; ERROR 1105 (HY000): errCode = 2, detailMessage = (127.0.0.1)[CANCELLED][INTERNAL_ERROR] function json_object can not input null value , JSON documents may not contain NULL member names. ``` <!--Describe your changes.--> ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- 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