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.

4 lines
194 B
MySQL
Raw Normal View History

2023-11-30 07:34:23 +00:00
-- Tags: no-fasttest
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;