Skip to content

Commit

Permalink
[fix](jsonb) increase noavx2 jsonb parser key length limit from 64 to…
Browse files Browse the repository at this point in the history
… 256 bytes (apache#29866)
  • Loading branch information
xiaokang authored Jan 11, 2024
1 parent 6643e90 commit 29e7524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion be/src/util/jsonb_document.h
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class JsonbKeyValue {
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_; }
Expand Down
2 changes: 1 addition & 1 deletion be/src/util/jsonb_error.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class JsonbErrMsg {
"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",
Expand Down

0 comments on commit 29e7524

Please sign in to comment.