yiguolei commented on code in PR #58656:
URL: https://github.com/apache/doris/pull/58656#discussion_r2595881538


##########
be/src/util/jsonb_document.h:
##########
@@ -1042,6 +1042,19 @@ struct ArrayVal : public ContainerVal {
 inline Status JsonbDocument::checkAndCreateDocument(const char* pb, size_t 
size,
                                                     JsonbDocument** doc) {
     *doc = nullptr;
+    // Fix Issue #58523: Tolerate empty data from legacy versions.
+    // If size is 0, we return a static valid "Null" document.
+    if (size == 0) {
+        // 手动构造一个合法的 Null 文档二进制数据

Review Comment:
   所有的注释都得使用英文。



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