You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "TracebaK (via GitHub)" <gi...@apache.org> on 2025/04/09 08:08:36 UTC
Re: [I] [Bug] JSON_ARRAY Casts JSON_OBJECT as String, Causing JSON_EXTRACT to Fail [doris]
TracebaK commented on issue #44565:
URL: https://github.com/apache/doris/issues/44565#issuecomment-2788722512
Hi @ixzc , is there anyone still working on a fix of this issue? I met a similar problem when I want to build a json string of a nested json object and pass the json string to my UDF. I used `json_object()` to build the json object and the array created using `json_array()` is converted to a string, which is not expected, like in the following example:
```
my_udf(json_object('text', json_array('this is sentence 1', 'this is sentence2')))
```
What I got from my udf is:
```
{"text":"[\"this is sentence 1\",\"this is sentence2\"]"}
```
What I expected is something like:
```
{"text":["this is sentence 1","this is sentence2"]}
```
--
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