Skip to content

Commit

Permalink
fix invalidation logic (apache#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
sungwy authored Jul 12, 2024
1 parent 6488ad8 commit f6d56e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyiceberg/io/pyarrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1876,6 +1876,7 @@ def data_file_statistics_from_parquet_metadata(

col_aggs = {}

invalidate_col: Set[int] = set()
for r in range(parquet_metadata.num_row_groups):
# References:
# https://github.com/apache/iceberg/blob/fc381a81a1fdb8f51a0637ca27cd30673bd7aad3/parquet/src/main/java/org/apache/iceberg/parquet/ParquetUtil.java#L232
Expand All @@ -1891,8 +1892,6 @@ def data_file_statistics_from_parquet_metadata(
else:
split_offsets.append(data_offset)

invalidate_col: Set[int] = set()

for pos in range(parquet_metadata.num_columns):
column = row_group.column(pos)
field_id = parquet_column_mapping[column.path_in_schema]
Expand Down

0 comments on commit f6d56e9

Please sign in to comment.