[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:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user