diff --git a/be/src/util/jsonb_parser.h b/be/src/util/jsonb_parser.h index 1591fa563c788a..c90012a4fbef30 100644 --- a/be/src/util/jsonb_parser.h +++ b/be/src/util/jsonb_parser.h @@ -369,8 +369,8 @@ class JsonbParserT { key[key_len++] = ch; } } - - if (!in.good() || in.peek() != '"' || key_len == 0) { + // The JSON key can be an empty string. + if (!in.good() || in.peek() != '"') { if (key_len == JsonbKeyValue::sMaxKeyLen) err_ = JsonbErrType::E_INVALID_KEY_LENGTH; else