Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tdigest data structure for statistics #71

Merged
merged 14 commits into from
Feb 24, 2024
71 changes: 68 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ members = [
"optd-datafusion-repr",
"optd-sqlplannertest",
"optd-adaptive-demo",
"gungnir",
]
resolver = "2"
11 changes: 11 additions & 0 deletions gungnir/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "gungnir"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
itertools = "0.11"
rand = "0.8"
crossbeam = "0.8"
17 changes: 17 additions & 0 deletions gungnir/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//----------------------------------------------------//
// This Software is provided to you by... //
// _____ _ //
// / ____| (_) //
// | | __ _ _ _ __ __ _ _ __ _ _ __ //
// | | |_ | | | | '_ \ / _` | '_ \| | '__| //
// | |__| | |_| | | | | (_| | | | | | | //
// \_____|\__,_|_| |_|\__, |_| |_|_|_| //
// __/ | //
// |___/ //
// //
// Author: Alexis Schlomer <[email protected]> //
//----------------------------------------------------//

#![allow(clippy::new_without_default)]

pub mod stats;
15 changes: 15 additions & 0 deletions gungnir/src/stats.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//----------------------------------------------------//
// This Software is provided to you by... //
// _____ _ //
// / ____| (_) //
// | | __ _ _ _ __ __ _ _ __ _ _ __ //
// | | |_ | | | | '_ \ / _` | '_ \| | '__| //
// | |__| | |_| | | | | (_| | | | | | | //
// \_____|\__,_|_| |_|\__, |_| |_|_|_| //
// __/ | //
// |___/ //
// //
// Author: Alexis Schlomer <[email protected]> //
//----------------------------------------------------//

mod tdigest;
Loading