From 9861cfc4bcd685fd374fb3cd7c45062a2027feef Mon Sep 17 00:00:00 2001 From: Qi Chen Date: Tue, 12 Dec 2023 14:17:26 +0800 Subject: [PATCH] [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 8ac435886d..957b7d3051 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; + } } }