Skip to content

Commit

Permalink
add missing columndescriptor check
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpassos committed Jan 10, 2025
1 parent 4faeac0 commit af3e9b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Processors/Formats/Impl/ParquetBlockInputFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,11 @@ void ParquetBlockInputFormat::initializeIfNeeded()
const auto * parquet_column_descriptor
= getColumnDescriptorIfBloomFilterIsPresent(metadata->RowGroup(0), index_mapping, column_idx);

if (!parquet_column_descriptor)
{
return std::nullopt;
}

auto nested_column = column;

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

0 comments on commit af3e9b8

Please sign in to comment.