eldenmoon commented on code in PR #47627:
URL: https://github.com/apache/doris/pull/47627#discussion_r1947528505


##########
be/src/vec/functions/function_json.cpp:
##########
@@ -612,6 +612,18 @@ struct JsonParser<'5'> {
     }
 };
 
+template <>
+struct JsonParser<'7'> {
+    // json string
+    static void update_value(StringParser::ParseResult& result, 
rapidjson::Value& value,
+                             StringRef data, 
rapidjson::Document::AllocatorType& allocator) {
+        rapidjson::Document document;
+        JsonbValue* json_val = JsonbDocument::createValue(data.data, 
data.size);
+        convert_jsonb_to_rapidjson(*json_val, document, allocator);

Review Comment:
   directly parse to `rapidjson::Value`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to