ClickHouse/tests/queries/0_stateless/02920_fix_json_merge_patch.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

2 lines
172 B
MySQL
Raw Normal View History

2023-11-30 04:14:42 +00:00
select '{"id":1,"foo":["bar"]}' as a, jsonMergePatch(a,toJSONString(map('foo',arrayPushBack(arrayMap(x->JSONExtractString(x),JSONExtractArrayRaw(a, 'foo')),'baz')))) as b;