This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit bd4b78ca7b740a61875b2f1c63c35ab03b12a176 Author: huanghaibin <[email protected]> AuthorDate: Tue Aug 29 17:24:48 2023 +0800 [fix](compaction) print column name when checking block ColumnPtr is nullptr on get block byte (#23338) --- be/src/vec/core/block.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/be/src/vec/core/block.cpp b/be/src/vec/core/block.cpp index 8ddfe4b410..ec07e7fc17 100644 --- a/be/src/vec/core/block.cpp +++ b/be/src/vec/core/block.cpp @@ -404,6 +404,15 @@ void Block::skip_num_rows(int64_t& length) { size_t Block::bytes() const { size_t res = 0; for (const auto& elem : data) { + if (!elem.column) { + std::stringstream ss; + for (const auto& e : data) { + ss << e.name + " "; + } + LOG(FATAL) << fmt::format( + "Column {} in block is nullptr, in method bytes. All Columns are {}", elem.name, + ss.str()); + } res += elem.column->byte_size(); } @@ -413,6 +422,15 @@ size_t Block::bytes() const { size_t Block::allocated_bytes() const { size_t res = 0; for (const auto& elem : data) { + if (!elem.column) { + std::stringstream ss; + for (const auto& e : data) { + ss << e.name + " "; + } + LOG(FATAL) << fmt::format( + "Column {} in block is nullptr, in method allocated_bytes. All Columns are {}", + elem.name, ss.str()); + } res += elem.column->allocated_bytes(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
