This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 29e75241f99 [fix](jsonb) increase noavx2 jsonb parser key length limit 
from 64 to 256 bytes (#29866)
29e75241f99 is described below

commit 29e75241f991b3a77c02d4443f752218bbfec93f
Author: Kang <[email protected]>
AuthorDate: Thu Jan 11 21:52:51 2024 +0800

    [fix](jsonb) increase noavx2 jsonb parser key length limit from 64 to 256 
bytes (#29866)
---
 be/src/util/jsonb_document.h | 2 +-
 be/src/util/jsonb_error.h    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/util/jsonb_document.h b/be/src/util/jsonb_document.h
index 3780bf69405..ba9c8300343 100644
--- a/be/src/util/jsonb_document.h
+++ b/be/src/util/jsonb_document.h
@@ -451,7 +451,7 @@ public:
     static const int sMaxKeyId = 65535;
     typedef uint16_t keyid_type;
 
-    static const uint8_t sMaxKeyLen = 64;
+    static const uint16_t sMaxKeyLen = 256;
 
     // size of the key. 0 indicates it is stored as id
     uint8_t klen() const { return size_; }
diff --git a/be/src/util/jsonb_error.h b/be/src/util/jsonb_error.h
index 49c061a32f9..ad62ffbe716 100644
--- a/be/src/util/jsonb_error.h
+++ b/be/src/util/jsonb_error.h
@@ -85,7 +85,7 @@ private:
             "Invalid json value type",
             "Invalid scalar value",
             "Invalid key string",
-            "Key length exceeds maximum size allowed (64 bytes)",
+            "Key length exceeds maximum size allowed (256 bytes)",
             "Invalid string value",
             "Invalid JSON object",
             "Invalid JSON array",


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

Reply via email to