Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Dec 25, 2024
1 parent 29e3367 commit 2d17491
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/mito2/src/sst/index/bloom_filter/applier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ pub struct BloomFilterIndexApplier {
puffin_manager_factory: PuffinManagerFactory,
puffin_metadata_cache: Option<PuffinMetadataCacheRef>,
bloom_filter_index_cache: Option<BloomFilterIndexCacheRef>,
// filter_applier: Box<BloomFilterApplier>,
filters: HashMap<ColumnId, Vec<Predicate>>,
}

Expand All @@ -69,7 +68,6 @@ impl BloomFilterIndexApplier {
region_dir: String,
region_id: RegionId,
object_store: ObjectStore,
// filter_applier: Box<BloomFilterApplier>,
puffin_manager_factory: PuffinManagerFactory,
filters: HashMap<ColumnId, Vec<Predicate>>,
) -> Self {
Expand All @@ -81,7 +79,6 @@ impl BloomFilterIndexApplier {
puffin_manager_factory,
puffin_metadata_cache: None,
bloom_filter_index_cache: None,
// filter_applier,
filters,
}
}
Expand Down Expand Up @@ -306,20 +303,10 @@ impl<'a> BloomFilterIndexApplierBuilder<'a> {
return Ok(None);
}

// let predicates = self
// .output
// .into_iter()
// .map(|(column_id, predicates)| (column_id.to_string(), predicates))
// .collect();

// let filter_applier =
// BloomFilterApplier::try_from(predicates).context(BuildBloomFilterIndexApplierSnafu)?;

let applier = BloomFilterIndexApplier::new(
self.region_dir,
self.metadata.region_id,
self.object_store,
// Box::new(filter_applier),
self.puffin_manager_factory,
self.output,
)
Expand Down

0 comments on commit 2d17491

Please sign in to comment.