This commit is contained in:
avogar 2024-08-21 21:45:26 +00:00
parent 38f9ef6bc9
commit bff252ea73
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
2 {"foo2":"bar"} 1
3 {"foo2":"bar"} 1
3 {"foo2":"bar"} 1
2 {"foo2":"baz"} 2
3 {"foo2":"bar"} 1

View File

@ -8,11 +8,11 @@ INSERT INTO test_new_json_type format JSONEachRow
{"id":3,"data":{"foo2":"bar"},"version":1}
;
SELECT * FROM test_new_json_type FINAL WHERE data.foo2 is not null;
SELECT * FROM test_new_json_type FINAL WHERE data.foo2 is not null ORDER BY id;
INSERT INTO test_new_json_type SELECT id, '{"foo2":"baz"}' AS _data, version+1 AS _version FROM test_new_json_type where id=2;
SELECT * FROM test_new_json_type FINAL WHERE data.foo2 is not null;
SELECT * FROM test_new_json_type FINAL WHERE data.foo2 is not null ORDER BY id;
DROP TABLE test_new_json_type;