yiguolei commented on code in PR #58656:
URL: https://github.com/apache/doris/pull/58656#discussion_r2583893521
##########
be/src/util/jsonb_document.h:
##########
@@ -1042,6 +1042,11 @@ 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, treat as
NULL to avoid errors.
+ if (size == 0) {
+ return Status::OK();
Review Comment:
If two threads are calling checkAndCreateDocument and try to update
s_null_buf, what will happen?
--
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]