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

lide 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 0ffe24379e3 [fix](function) fixed the get_json_string function (#32151)
0ffe24379e3 is described below

commit 0ffe24379e375cde5f4ce0ab32132c7a6cf78188
Author: lw112 <131352377+felixw...@users.noreply.github.com>
AuthorDate: Thu Mar 14 14:07:04 2024 +0800

    [fix](function) fixed the get_json_string function (#32151)
---
 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 6f11921b6b3..8bfb8b35f22 100644
--- a/be/src/vec/functions/function_json.cpp
+++ b/be/src/vec/functions/function_json.cpp
@@ -42,6 +42,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_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);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to