remove schema in aggs (#1888)

* switch to ColumnType, move tests

* remove Schema dependency in agg
This commit is contained in:
PSeitz
2023-02-22 11:50:28 +08:00
committed by GitHub
parent 6b403e3281
commit c7278b3258
14 changed files with 1262 additions and 1253 deletions

View File

@@ -17,6 +17,7 @@ stacker = { path = "../stacker", package="tantivy-stacker"}
sstable = { path = "../sstable", package = "tantivy-sstable" }
common = { path = "../common", package = "tantivy-common" }
tantivy-bitpacker = { version= "0.3", path = "../bitpacker/" }
serde = "1.0.152"
[dev-dependencies]
proptest = "1"

View File

@@ -1,12 +1,14 @@
use std::fmt::Debug;
use std::net::Ipv6Addr;
use serde::{Deserialize, Serialize};
use crate::value::NumericalType;
use crate::InvalidData;
/// The column type represents the column type.
/// Any changes need to be propagated to `COLUMN_TYPES`.
#[derive(Hash, Eq, PartialEq, Debug, Clone, Copy, Ord, PartialOrd)]
#[derive(Hash, Eq, PartialEq, Debug, Clone, Copy, Ord, PartialOrd, Serialize, Deserialize)]
#[repr(u8)]
pub enum ColumnType {
I64 = 0u8,