[Fix](Transactional-Hive) Fix transactional hive core dump when TransactionalHiveReader::init_row_filters(). (#28238)

Fix transactional hive core dump when TransactionalHiveReader::init_row_filters().
This commit is contained in:
Qi Chen
2023-12-12 14:17:26 +08:00
committed by GitHub
parent cd8885f63e
commit 9861cfc4bc

View File

@ -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;
}
}
}