Repository navigation
Conversation
| BloomVisitor visitor(manifest, row_group, bloom_reader, field_id_to_column_idx_); | ||
| return Visit<bool>(bound_, visitor); | ||
| } catch (const ::parquet::ParquetException& e) { | ||
| return Invalid("Cannot read Parquet Bloom filter: {}", e.what()); |
There was a problem hiding this comment.
Shall we fail on this path? Might it still match?
There was a problem hiding this comment.
The row group may still match, so a Bloom read failure must never be treated as a negative match. This path returns an error and aborts the read, matching Java‘s behavior when an advertised Bloom filter cannot be loaded. Missing Bloom metadata still returns “might match”.
| auto should_read, stats_filter_->ShouldRead(reader_->manifest(), *row_group)); | ||
| if (should_read && bloom_filter_) { | ||
| auto bloom_reader = | ||
| reader_->parquet_reader()->GetBloomFilterReader().RowGroup(row_group_index); |
There was a problem hiding this comment.
Fixed. I've included GetBloomFilterReader().RowGroup(...) in the try/catch and convert ParquetException to an Iceberg error.
|
@zhjwpku Thanks for the PR. I've left some comments inline. BTW, is there a flag to switch on/off this feature? |
Yeah, maybe we should have some handles for these pruning, let me check how the java impl deal with this. |
Evaluate EQ and IN predicates with Arrow's Bloom reader after footer statistics, following Java Iceberg's inclusive filtering rules. Keep other predicates, missing columns and files without usable field IDs or Bloom metadata inclusive. Hash literals using the file's physical representation, including numeric promotions, temporal types, decimal precision and width, binary/fixed and UUID values. Cache each column's Bloom filter per row group and load only Bloom payloads during planning. Preserve split selection, file-relative row positions and inherited row IDs after pruning.
We have a |
cf2cdda to
45db09e
Compare
Evaluate EQ and IN predicates with Arrow's Bloom reader after footer statistics, following Java Iceberg's inclusive filtering rules. Keep other predicates, missing columns and files without usable field IDs or Bloom metadata inclusive.
Hash literals using the file's physical representation, including numeric promotions, temporal types, decimal precision and width, binary/fixed and UUID values. Cache each column's Bloom filter per row group and load only Bloom payloads during planning. Preserve split selection, file-relative row positions and inherited row IDs after pruning.