lucienlgl opened a new issue, #59692: URL: https://github.com/apache/doris/issues/59692
### 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.8.3 ### What's Wrong? When I was using version 2.1.8, I encountered a situation where the json_contains function returned incorrect results. Here is my test cases: 1. SELECT JSON_CONTAINS('{}', '{"key": "key1", "value": "value1"}'); --- return: 1 2. SELECT JSON_CONTAINS('{"2":"2","1":"1","3":"3"}', '{"key": "value"}'); --- return: 1 3. SELECT * FROM table WHERE JSON_CONTAINS('["1","2","3"]', '"1"') and JSON_CONTAINS('["1","2","3"]', '"2"') limit 100; --- return: **[HY000][1105] errCode = 2, detailMessage = Unexpected exception: Not support comparison between JSONB literals** I found a similar issue, but I'm not sure if it's the same problem: https://github.com/apache/doris/pull/53291. I would like to confirm if this is the same problem? If so, is there any plan to fix version 2.1.x ? ### What You Expected? 1. SELECT JSON_CONTAINS('{}', '{"key": "key1", "value": "value1"}'); --- return: 0 2. SELECT JSON_CONTAINS('{"2":"2","1":"1","3":"3"}', '{"key": "value"}'); --- return: 0 3. SELECT * FROM table WHERE JSON_CONTAINS('["1","2","3"]', '"1"') and JSON_CONTAINS('["1","2","3"]', '"2"') limit 100; --- return: successfully executed and returned data ### How to Reproduce? _No response_ ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
