ClickHouse/tests/queries/0_stateless/02920_fix_json_merge_patch.sql
Nikolay Degterinsky 9ee43082f3
Fix test
2023-11-30 08:34:23 +01:00

4 lines
194 B
SQL

-- Tags: no-fasttest
select '{"id":1,"foo":["bar"]}' as a, jsonMergePatch(a,toJSONString(map('foo',arrayPushBack(arrayMap(x->JSONExtractString(x),JSONExtractArrayRaw(a, 'foo')),'baz')))) as b;