mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-03 10:35:35 +00:00
* fix(json): upgrade jsonb to fix unterminated JSONPath panic Signed-off-by: luofucong <luofc@foxmail.com> * fix(json): align integer extraction with JSON2 conversions Signed-off-by: luofucong <luofc@foxmail.com> * style: format jsonb dependency declaration Signed-off-by: luofucong <luofc@foxmail.com> * fix(otlp): report concrete unsupported JSONB type names Signed-off-by: luofucong <luofc@foxmail.com> --------- Signed-off-by: luofucong <luofc@foxmail.com>
8 lines
384 B
SQL
8 lines
384 B
SQL
CREATE TABLE jsonb_upgrade (ts TIMESTAMP TIME INDEX, j JSON);
|
|
|
|
INSERT INTO jsonb_upgrade VALUES
|
|
(1, parse_json('{"a.b":{"name":"旧数据","items":[1,2,3]},"n":-42,"f":1.5,"big":18446744073709551615,"flag":true,"nil":null}')),
|
|
(2, parse_json('{"a.b":{"name":"escaped \"quote\"","items":[]},"n":0,"f":0.125,"big":0,"flag":false,"nil":null}'));
|
|
|
|
ADMIN FLUSH_TABLE('jsonb_upgrade');
|