From 226d0f88bc39ebe792fc6bbd4a595d2f2b665000 Mon Sep 17 00:00:00 2001 From: PSeitz Date: Fri, 20 Jan 2023 18:47:10 +0800 Subject: [PATCH] add columnar to workspace (#1808) --- Cargo.toml | 3 ++- columnar/Cargo.toml | 4 ---- columnar/src/column_index/optional_index/set_block/tests.rs | 5 +++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d871aeae6..b485c0a4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,7 @@ measure_time = "0.8.2" async-trait = "0.1.53" arc-swap = "1.5.0" +columnar = { version="0.1", path="./columnar", package ="tantivy-columnar" } sstable = { version="0.1", path="./sstable", package ="tantivy-sstable", optional = true } stacker = { version="0.1", path="./stacker", package ="tantivy-stacker" } tantivy-query-grammar = { version= "0.19.0", path="./query-grammar" } @@ -107,7 +108,7 @@ unstable = [] # useful for benches. quickwit = ["sstable"] [workspace] -members = ["query-grammar", "bitpacker", "common", "fastfield_codecs", "ownedbytes", "stacker", "sstable", "tokenizer-api"] +members = ["query-grammar", "bitpacker", "common", "fastfield_codecs", "ownedbytes", "stacker", "sstable", "tokenizer-api", "columnar"] # Following the "fail" crate best practises, we isolate # tests that define specific behavior in fail check points diff --git a/columnar/Cargo.toml b/columnar/Cargo.toml index fedb252f6..527c45dcf 100644 --- a/columnar/Cargo.toml +++ b/columnar/Cargo.toml @@ -24,9 +24,5 @@ proptest = "1" more-asserts = "0.3.0" rand = "0.8.3" -# temporary -[workspace] -members = [] - [features] unstable = [] diff --git a/columnar/src/column_index/optional_index/set_block/tests.rs b/columnar/src/column_index/optional_index/set_block/tests.rs index 55e36b73a..de3d5962e 100644 --- a/columnar/src/column_index/optional_index/set_block/tests.rs +++ b/columnar/src/column_index/optional_index/set_block/tests.rs @@ -1,7 +1,8 @@ use std::collections::HashMap; -use crate::column_index::optional_index::set_block::dense::DENSE_BLOCK_NUM_BYTES; -use crate::column_index::optional_index::set_block::{DenseBlockCodec, SparseBlockCodec}; +use crate::column_index::optional_index::set_block::{ + DenseBlockCodec, SparseBlockCodec, DENSE_BLOCK_NUM_BYTES, +}; use crate::column_index::optional_index::{Set, SetCodec}; fn test_set_helper>(vals: &[u16]) -> usize {