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