nextdreamblue commented on code in PR #29067:
URL: https://github.com/apache/doris/pull/29067#discussion_r1440070337


##########
be/src/vec/data_types/serde/data_type_jsonb_serde.cpp:
##########
@@ -83,7 +83,10 @@ Status DataTypeJsonbSerDe::serialize_one_cell_to_json(const 
IColumn& column, int
 
     const StringRef& s = assert_cast<const 
ColumnString&>(*ptr).get_data_at(row_num);
     if (s.size > 0) {
-        bw.write(s.data, s.size);
+        std::string str = JsonbToJson::jsonb_to_json_string(s.data, s.size);
+        bw.write(str.c_str(), str.size());
+    } else {
+        bw.write("\\N", 2);

Review Comment:
   done



-- 
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