Shanmugavel-J opened a new issue, #57005:
URL: https://github.com/apache/doris/issues/57005
Fail to correctly convert valid JSON string values to the expected types.
When values like "1111" (a valid integer string) or "false" (a valid boolean
string) are present in the JSON, the functions return NULL instead of parsing
them.
```
-- Fails: expected to return 1111 as BIGINT
SELECT JSON_EXTRACT_BIGINT('{"id": "1111"}', '$.id');
-- Fails: expected to return 1111 as INT
SELECT JSON_EXTRACT_INT('{"id": "1111"}', '$.id');
-- Fails: expected to return false as BOOLEAN
SELECT JSON_EXTRACT_BOOL('{"id": "false"}', '$.id');
```
**Doris version:** 3.1.1
--
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]