mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-13 17:02:15 +00:00
* refactor: json2 v2 storage layout Signed-off-by: luofucong <luofc@foxmail.com> * resolve PR comments Signed-off-by: luofucong <luofc@foxmail.com> * fix ci Signed-off-by: luofucong <luofc@foxmail.com> * rethinking when "needs_remainder" Signed-off-by: luofucong <luofc@foxmail.com> * restore "ReadColumns" Signed-off-by: luofucong <luofc@foxmail.com> * resolve PR comments Signed-off-by: luofucong <luofc@foxmail.com> * fix ci Signed-off-by: luofucong <luofc@foxmail.com> --------- Signed-off-by: luofucong <luofc@foxmail.com>
21 lines
612 B
SQL
21 lines
612 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"}}');
|
|
|
|
ADMIN FLUSH_TABLE('t_legacy_json2_non_append_table');
|
|
|
|
ADMIN compact_table('t_legacy_json2_non_append_table');
|
|
|
|
SELECT ts, j.a AS a, j.nested.s AS nested_s
|
|
FROM t_legacy_json2_non_append_table
|
|
ORDER BY ts;
|