This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit a9ab094614109630d1098a3384b5a9b9949ccad3 Author: HappenLee <[email protected]> AuthorDate: Sun Jan 21 10:54:47 2024 +0800 [Bug](fix) try to fix the coredump of streambyte decode of sse (#30190) --- be/src/vec/core/block.cpp | 3 ++- be/src/vec/data_types/data_type_decimal.cpp | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/be/src/vec/core/block.cpp b/be/src/vec/core/block.cpp index e3ce4885cb0..dc9c90a3397 100644 --- a/be/src/vec/core/block.cpp +++ b/be/src/vec/core/block.cpp @@ -23,6 +23,7 @@ #include <fmt/format.h> #include <gen_cpp/data.pb.h> #include <snappy.h> +#include <streamvbyte.h> #include <sys/types.h> #include <algorithm> @@ -869,7 +870,7 @@ Status Block::serialize(int be_exec_version, PBlock* pblock, *uncompressed_bytes = content_uncompressed_size; const size_t serialize_bytes = buf - column_values.data(); *compressed_bytes = serialize_bytes; - column_values.resize(serialize_bytes); + column_values.resize(serialize_bytes + STREAMVBYTE_PADDING); // compress if (compression_type != segment_v2::NO_COMPRESSION && content_uncompressed_size > 0) { diff --git a/be/src/vec/data_types/data_type_decimal.cpp b/be/src/vec/data_types/data_type_decimal.cpp index 4e4c7ddd819..0573a17729e 100644 --- a/be/src/vec/data_types/data_type_decimal.cpp +++ b/be/src/vec/data_types/data_type_decimal.cpp @@ -25,8 +25,6 @@ #include <streamvbyte.h> #include <string.h> -#include <utility> - #include "runtime/decimalv2_value.h" #include "util/string_parser.hpp" #include "vec/columns/column.h" --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
