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

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 8580d74b8d48cc150eb3d81687d7a57ad908444d
Author: lihangyu <[email protected]>
AuthorDate: Fri Mar 3 10:31:12 2023 +0800

    [Bug](Block compression) Fix bug if `config::compress_rowbatches=false` 
then the block column values could be empty (#17325)
---
 be/src/vec/core/block.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/be/src/vec/core/block.cpp b/be/src/vec/core/block.cpp
index 5be2b1651a..c9780558ce 100644
--- a/be/src/vec/core/block.cpp
+++ b/be/src/vec/core/block.cpp
@@ -798,6 +798,9 @@ Status Block::serialize(int be_exec_version, PBlock* pblock,
 
         VLOG_ROW << "uncompressed size: " << content_uncompressed_size
                  << ", compressed size: " << compressed_size;
+    } else {
+        pblock->set_column_values(std::move(column_values));
+        *compressed_bytes = content_uncompressed_size;
     }
     if (!allow_transfer_large_data && *compressed_bytes >= 
std::numeric_limits<int32_t>::max()) {
         return Status::InternalError("The block is large than 2GB({}), can not 
send by Protobuf.",


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to