mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-09-06 13:38:59 +00:00
* refactor(json2): add JSON2 storage layout settings Signed-off-by: luofucong <luofc@foxmail.com> * resolve PR comments Signed-off-by: luofucong <luofc@foxmail.com> --------- Signed-off-by: luofucong <luofc@foxmail.com>
28 lines
1.7 KiB
Plaintext
28 lines
1.7 KiB
Plaintext
SELECT j.a AS a
|
|
FROM t_json2_storage_layout_settings;
|
|
|
|
+---+
|
|
| a |
|
|
+---+
|
|
| 1 |
|
|
+---+
|
|
|
|
SHOW CREATE TABLE t_json2_storage_layout_settings;
|
|
|
|
+---------------------------------+----------------------------------------------------------------+
|
|
| Table | Create Table |
|
|
+---------------------------------+----------------------------------------------------------------+
|
|
| t_json2_storage_layout_settings | CREATE TABLE IF NOT EXISTS "t_json2_storage_layout_settings" ( |
|
|
| | "ts" TIMESTAMP(3) NOT NULL, |
|
|
| | "j" JSON2( |
|
|
| | max_auto_expanded_paths = 0 |
|
|
| | ) NULL, |
|
|
| | TIME INDEX ("ts") |
|
|
| | ) |
|
|
| | |
|
|
| | ENGINE=mito |
|
|
| | WITH( |
|
|
| | append_mode = 'true' |
|
|
| | ) |
|
|
+---------------------------------+----------------------------------------------------------------+
|