You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/12/13 10:49:27 UTC
(doris) branch branch-2.0 updated: [Fix](Transactional-Hive) Fix transactional hive core dump when `TransactionalHiveReader::init_row_filters()`. (#28238) (#28309)
This is an automated email from the ASF dual-hosted git repository.
morningman 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 cde6847b391 [Fix](Transactional-Hive) Fix transactional hive core dump when `TransactionalHiveReader::init_row_filters()`. (#28238) (#28309)
cde6847b391 is described below
commit cde6847b391b06e25014c0c8bb9be24bb102e5b3
Author: Qi Chen <ka...@gmail.com>
AuthorDate: Wed Dec 13 18:49:19 2023 +0800
[Fix](Transactional-Hive) Fix transactional hive core dump when `TransactionalHiveReader::init_row_filters()`. (#28238) (#28309)
Backports from #28238.
---
be/src/vec/exec/format/orc/vorc_reader.cpp | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/be/src/vec/exec/format/orc/vorc_reader.cpp b/be/src/vec/exec/format/orc/vorc_reader.cpp
index 8ec749712d6..ff8759fd1e7 100644
--- a/be/src/vec/exec/format/orc/vorc_reader.cpp
+++ b/be/src/vec/exec/format/orc/vorc_reader.cpp
@@ -730,11 +730,14 @@ Status OrcReader::set_fill_columns(
}
}
- for (auto& each : _tuple_descriptor->slots()) {
- PrimitiveType column_type = each->col_type();
- if (column_type == TYPE_ARRAY || column_type == TYPE_MAP || column_type == TYPE_STRUCT) {
- _has_complex_type = true;
- break;
+ if (_tuple_descriptor != nullptr) {
+ for (auto& each : _tuple_descriptor->slots()) {
+ PrimitiveType column_type = each->col_type();
+ if (column_type == TYPE_ARRAY || column_type == TYPE_MAP ||
+ column_type == TYPE_STRUCT) {
+ _has_complex_type = true;
+ break;
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org