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

   ### 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.1.4
   
   ### What's Wrong?
   
   1105 - errCode = 2, detailMessage = No matching function with signature: 
json_contains(JSON, VARCHAR(65533)).
   
   ### What You Expected?
   
   查询出结果
   
   ### How to Reproduce?
   
   SELECT count(*)
   from (
   SELECT `ts`,tenant_id,device_identify,get_json_string(e1,'$.code') 
data_code,get_json_string(e1,'$.key') 
property_identify,get_json_string(e1,'$.nd') 
num_data,get_json_string(e1,'$.od') orig_data,get_json_string(e1,'$.sd') 
str_data,get_json_string(e1,'$.vt') value_type
   FROM ods_iot_device_property_post_history_new
   lateral view explode_json_array_json(properties) tmp1 as e1 
   where `ts`>='2024-07-10 12:00:00' and `ts`<'2024-07-10 13:00:00' 
   and JSON_CONTAINS(properties,JSON_OBJECT('key', 'P'))>0
   and JSON_CONTAINS(properties,JSON_OBJECT('code', 'P'))>0
   ) t
   
   这两个条件同时存在时,发出错误,只有任何一个,可以正确查询
   
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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