Skip to content

Commit

Permalink
[fix](function) fixed the get_json_string function (apache#32150)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixwluo authored Mar 14, 2024
1 parent 6d1080f commit 24e17a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/vec/functions/function_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "common/compiler_util.h" // IWYU pragma: keep
#include "common/status.h"
#include "exprs/json_functions.h"
#include "vec/io/io_helper.h"
#ifdef __AVX2__
#include "util/jsonb_parser_simd.h"
#else
Expand Down Expand Up @@ -516,7 +517,7 @@ struct GetJsonString {
rapidjson::Value* root = nullptr;

root = get_json_object<JSON_FUN_STRING>(json_string, path_string, &document);
const int max_string_len = 65535;
const int max_string_len = DEFAULT_MAX_JSON_SIZE;

if (root == nullptr || root->IsNull()) {
StringOP::push_null_string(index_now, res_data, res_offsets, null_map);
Expand Down

0 comments on commit 24e17a5

Please sign in to comment.