chore(expression): update tests
@@ -35,6 +35,8 @@ use common_expression::Value;
use common_functions::scalars::BUILTIN_FUNCTIONS;
use common_storages_index::BlockFilter;
use common_storages_index::FilterEvalResult;
+use common_storages_table_meta::meta::BlockFilter as LatestBloom;
+use common_storages_table_meta::meta::Versioned;
#[test]
fn test_bloom_filter() -> Result<()> {
@@ -63,7 +65,12 @@ fn test_bloom_filter() -> Result<()> {
];
let chunks_ref = chunks.iter().collect::<Vec<_>>();
- let index = BlockFilter::try_create(FunctionContext::default(), schema, 3, &chunks_ref)?;
+ let index = BlockFilter::try_create(
+ FunctionContext::default(),
+ schema,
+ LatestBloom::VERSION,
+ &chunks_ref,
+ )?;
assert_eq!(
FilterEvalResult::MustFalse,
