From 22c201211b0ffbca1fed65ec4c39a37d4d27df3e Mon Sep 17 00:00:00 2001 From: CookiePieWw Date: Thu, 19 Sep 2024 13:39:47 +0800 Subject: [PATCH] docs: fix some errors qaq --- docs/rfcs/2024-08-06-json-datatype.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/rfcs/2024-08-06-json-datatype.md b/docs/rfcs/2024-08-06-json-datatype.md index a241d0db0674..8a617a170909 100644 --- a/docs/rfcs/2024-08-06-json-datatype.md +++ b/docs/rfcs/2024-08-06-json-datatype.md @@ -138,11 +138,11 @@ Query directly through client: (Server identifies JSON type and performs auto-conversion based on column metadata) Query through json_to_string function: - Scan & Decode - String(Serialized JSON)┌──────────┐Arrow Binary(JSONB)┌──────────────┐Arrow Binary(JSONB) - Client <----------------------│ Server │<------------------│ Query Engine │<----- Storage - └──────────┘ └──────────────┘ - (Conversion is performed by UDF inside Query Engine) + Scan & Decode + String(Serialized JSON)┌──────────┐String(Serialized JSON)┌──────────────┐Arrow Binary(JSONB) + Client <----------------------│ Server │<----------------------│ Query Engine │<----------------- Storage + └──────────┘ └──────────────┘ + (Conversion is performed by UDF inside Query Engine) ``` @@ -169,7 +169,7 @@ INSERT INTO test VALUES( }' ); -SELECT json_get_int(b, 'name') FROM test; +SELECT json_get_string(b, 'name') FROM test; +---------------------+ | b.name | +---------------------+