Skip to content

Commit 82f7c9e

Browse files
authored
feat: improve runtime filter [Part 2] (#18955)
* init * fmt * update * make lint * update * update * rm unused dep
1 parent 3b854d7 commit 82f7c9e

File tree

21 files changed

+519
-69
lines changed

21 files changed

+519
-69
lines changed

Cargo.lock

Lines changed: 1 addition & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,6 @@ walkdir = "2.3.2"
535535
watcher = { version = "0.4.2" }
536536
wiremock = "0.6"
537537
wkt = "0.11.1"
538-
xorf = { version = "0.11.0", default-features = false, features = ["binary-fuse"] }
539538
xorfilter-rs = { version = "0.5", features = ["cbordata"] }
540539
zerocopy = { version = "0.8.26", features = ["derive"] }
541540
zip = "3.0.0"

src/query/catalog/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ serde = { workspace = true }
3939
serde_json = { workspace = true }
4040
sha2 = { workspace = true }
4141
thrift = { workspace = true }
42+
twox-hash = { workspace = true }
4243
typetag = { workspace = true }
43-
xorf = { workspace = true }
4444

4545
[dev-dependencies]
4646
goldenfile = { workspace = true }

src/query/catalog/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub mod partition_columns;
2525
pub mod plan;
2626
pub mod query_kind;
2727
pub mod runtime_filter_info;
28+
pub mod sbbf;
2829
pub mod session_type;
2930
pub mod statistics;
3031
pub mod table;

src/query/catalog/src/runtime_filter_info.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ use databend_common_base::base::tokio::sync::watch;
2222
use databend_common_base::base::tokio::sync::watch::Receiver;
2323
use databend_common_base::base::tokio::sync::watch::Sender;
2424
use databend_common_expression::Expr;
25-
use xorf::BinaryFuse16;
25+
26+
use crate::sbbf::Sbbf;
27+
28+
pub type RuntimeBloomFilter = Sbbf;
2629

2730
#[derive(Clone, Default)]
2831
pub struct RuntimeFilterInfo {
@@ -69,7 +72,7 @@ pub struct RuntimeFilterEntry {
6972
#[derive(Clone)]
7073
pub struct RuntimeFilterBloom {
7174
pub column_name: String,
72-
pub filter: BinaryFuse16,
75+
pub filter: RuntimeBloomFilter,
7376
}
7477

7578
#[derive(Default)]

0 commit comments

Comments
 (0)