This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-1.1-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.1-lts by this push:
new a626695449 [Bug][Vectorized] rapidjson should reset writer when output
json (#13801)
a626695449 is described below
commit a6266954496564273b8ed447b672d6d5868ccd5a
Author: ChPi <[email protected]>
AuthorDate: Tue Nov 1 14:18:17 2022 +0800
[Bug][Vectorized] rapidjson should reset writer when output json (#13801)
Co-authored-by: chenjie <[email protected]>
---
be/src/vec/functions/function_json.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/be/src/vec/functions/function_json.cpp
b/be/src/vec/functions/function_json.cpp
index 1c88ecc902..8bc0712b0f 100644
--- a/be/src/vec/functions/function_json.cpp
+++ b/be/src/vec/functions/function_json.cpp
@@ -557,6 +557,7 @@ public:
for (int i = 0; i < input_rows_count; i++) {
buf.Clear();
+ writer.Reset(buf);
objects[i].Accept(writer);
result_column.insert_data(buf.GetString(), buf.GetSize());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]