Closed b41sh closed 3 weeks ago
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
json_object_delete
json_object_pick
for example
MySQL [(none)]> SELECT json_object_delete('{"a":1,"b":2,"d":4}'::variant, 'a', 'c'); +--------------------------------------------------------------+ | json_object_delete('{"a":1,"b":2,"d":4}'::VARIANT, 'a', 'c') | +--------------------------------------------------------------+ | {"b":2,"d":4} | +--------------------------------------------------------------+ 1 row in set (0.167 sec) MySQL [(none)]> SELECT json_object_pick('{"a":1,"b":2,"d":4}'::variant, 'a', 'c'); +------------------------------------------------------------+ | json_object_pick('{"a":1,"b":2,"d":4}'::VARIANT, 'a', 'c') | +------------------------------------------------------------+ | {"a":1} | +------------------------------------------------------------+ 1 row in set (0.046 sec) MySQL [(none)]> select '{"k1":"v1","k2":"v2"}'::Variant a, a::Map(String, String) b, b::Variant = a; +-----------------------+-----------------------+----------------+ | a | b | b::VARIANT = a | +-----------------------+-----------------------+----------------+ | {"k1":"v1","k2":"v2"} | {'k1':'v1','k2':'v2'} | 1 | +-----------------------+-----------------------+----------------+ 1 row in set (0.051 sec)
fixes: #[Link the issue here]
This change isโ
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
json_object_delete
functionjson_object_pick
functionfor example
fixes: #[Link the issue here]
Tests
Type of change
This change isโ