paything opened a new issue, #29931:
URL: https://github.com/apache/doris/issues/29931

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.0.4
   
   ### What's Wrong?
   
   select 
   json1,
   array_map(x->x,array1) as test1,
   array_map(x->concat('$.',x),array1) as test2,
   get_json_string(json1,concat('$.',1)) as test4,
   array_map(x->get_json_string(json1,concat('$.',x)),array1) as test3,
   array_map(x->x/1=1,array1) as test5
   from (
   
   select 
   ids,
   split_by_string(ids, ',') as array1
   ,json1
   from (select '1,3,6' as ids union all
   select '1,9,11' as ids union all
   select '1' as ids union all
   select '1,12,13' as ids 
   ) temp
   cross join (select 
json_parse(concat("{",group_concat(concat('"',id,'":"',name,'"')),"}")) as 
json1 from (
   select 1 as id,'张三' as name union all
   select 6 as id,'张四' as name union all
   select 9 as id,'王武' as name
   ) tags) t2 ) t1
   
   
   ### What You Expected?
   
   test3输出不为null
   
   ### How to Reproduce?
   
   select 
   json1,
   array_map(x->x,array1) as test1,
   array_map(x->concat('$.',x),array1) as test2,
   get_json_string(json1,concat('$.',1)) as test4,
   array_map(x->get_json_string(json1,concat('$.',x)),array1) as test3,
   array_map(x->x/1=1,array1) as test5
   from (
   
   select 
   ids,
   split_by_string(ids, ',') as array1
   ,json1
   from (select '1,3,6' as ids union all
   select '1,9,11' as ids union all
   select '1' as ids union all
   select '1,12,13' as ids 
   ) temp
   cross join (select 
json_parse(concat("{",group_concat(concat('"',id,'":"',name,'"')),"}")) as 
json1 from (
   select 1 as id,'张三' as name union all
   select 6 as id,'张四' as name union all
   select 9 as id,'王武' as name
   ) tags) t2 ) t1
   
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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

Reply via email to