mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-06 13:38:59 +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>
17 lines
500 B
SQL
17 lines
500 B
SQL
SELECT ts, j.a AS a, j.nested.s AS nested_s
|
|
FROM t_legacy_json2_non_append_table
|
|
ORDER BY ts;
|
|
|
|
SHOW CREATE TABLE t_legacy_json2_non_append_table;
|
|
|
|
ALTER TABLE t_legacy_json2_non_append_table SET 'append_mode' = 'true';
|
|
|
|
SHOW CREATE TABLE t_legacy_json2_non_append_table;
|
|
|
|
INSERT INTO t_legacy_json2_non_append_table (ts, j) VALUES
|
|
('2026-07-08 00:02:00+0000', '{"a": 3, "nested": {"s": "current-3"}}');
|
|
|
|
SELECT ts, j.a AS a, j.nested.s AS nested_s
|
|
FROM t_legacy_json2_non_append_table
|
|
ORDER BY ts;
|