mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-06 21:48:58 +00:00
* test: add legacy json2 non-append compat case Signed-off-by: discord9 <discord9@163.com> * Apply suggestions from code review Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Signed-off-by: discord9 <discord9@163.com> Co-authored-by: dennis zhuang <killme2008@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
11 lines
342 B
SQL
11 lines
342 B
SQL
CREATE TABLE t_legacy_json2_non_append_table (
|
|
ts TIMESTAMP TIME INDEX,
|
|
j JSON2
|
|
);
|
|
|
|
INSERT INTO t_legacy_json2_non_append_table (ts, j) VALUES
|
|
('2026-07-08 00:00:00+0000', '{"a": 1, "nested": {"s": "old-1"}}'),
|
|
('2026-07-08 00:01:00+0000', '{"a": 2, "nested": {"s": "old-2"}}');
|
|
|
|
ADMIN FLUSH_TABLE('t_legacy_json2_non_append_table');
|