Skip to content

Commit 513d006

Browse files
arthurpassosEnmk
authored andcommitted
add missing columndescriptor check
1 parent 72cf102 commit 513d006

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Processors/Formats/Impl/ParquetBlockInputFormat.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,11 @@ void ParquetBlockInputFormat::initializeIfNeeded()
685685
const auto * parquet_column_descriptor
686686
= getColumnDescriptorIfBloomFilterIsPresent(metadata->RowGroup(0), index_mapping, column_idx);
687687

688+
if (!parquet_column_descriptor)
689+
{
690+
return std::nullopt;
691+
}
692+
688693
auto nested_column = column;
689694

690695
if (const auto & nullable_column = checkAndGetColumn<ColumnNullable>(column.get()))

0 commit comments

Comments
 (0)