From 0578b28d54c2ad9c648a567a1079efde1bfc9ef1 Mon Sep 17 00:00:00 2001 From: lw112 <131352377+felixwluo@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:34:48 +0800 Subject: [PATCH] [fix](function) fixed the get_json_string function (#32150) --- be/src/vec/functions/function_json.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/src/vec/functions/function_json.cpp b/be/src/vec/functions/function_json.cpp index cc6b22c7b5..4418561d88 100644 --- a/be/src/vec/functions/function_json.cpp +++ b/be/src/vec/functions/function_json.cpp @@ -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 @@ -516,7 +517,7 @@ struct GetJsonString { rapidjson::Value* root = nullptr; root = get_json_object(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);