From c9b38e6de90f5bad250f08dcf9813a0902a81d3d Mon Sep 17 00:00:00 2001 From: CookiePieWw Date: Thu, 19 Sep 2024 13:39:14 +0800 Subject: [PATCH] docs: fix some errors qaq --- docs/rfcs/2024-08-06-json-datatype.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/rfcs/2024-08-06-json-datatype.md b/docs/rfcs/2024-08-06-json-datatype.md index a241d0db067..e621ce7ce00 100644 --- a/docs/rfcs/2024-08-06-json-datatype.md +++ b/docs/rfcs/2024-08-06-json-datatype.md @@ -139,10 +139,10 @@ Query directly through client: 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) + 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 | +---------------------+