This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 9861cfc4bcd [Fix](Transactional-Hive) Fix transactional hive core dump
when `TransactionalHiveReader::init_row_filters()`. (#28238)
9861cfc4bcd is described below
commit 9861cfc4bcd685fd374fb3cd7c45062a2027feef
Author: Qi Chen <[email protected]>
AuthorDate: Tue Dec 12 14:17:26 2023 +0800
[Fix](Transactional-Hive) Fix transactional hive core dump when
`TransactionalHiveReader::init_row_filters()`. (#28238)
Fix transactional hive core dump when
TransactionalHiveReader::init_row_filters().
---
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 8ac435886db..957b7d30514 100644
--- a/be/src/vec/exec/format/orc/vorc_reader.cpp
+++ b/be/src/vec/exec/format/orc/vorc_reader.cpp
@@ -734,11 +734,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: [email protected]
For additional commands, e-mail: [email protected]