Skip to content

Commit

Permalink
Merge pull request #10 from evgenii-kuznetcov/inline2
Browse files Browse the repository at this point in the history
Inline tdigest library
  • Loading branch information
thobai authored Nov 26, 2024
2 parents c7c0dd0 + 76b3e6a commit 6f22632
Show file tree
Hide file tree
Showing 5 changed files with 708 additions and 24 deletions.
23 changes: 1 addition & 22 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ crate-type= ["cdylib"]

serde = { version = "1", features = ["derive"] }
polars = { version = "0.40.0", features=["dtype-struct", "fmt"], default-features = false }
tdigest = { version = "0.2.3", features=["use_serde"] }
ordered-float = { version = "4.2.0", features=["serde"] }
polars-arrow = "0.40.0"
serde_json = "1.0.117"
Expand Down
2 changes: 1 addition & 1 deletion src/expressions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![allow(clippy::unused_unit)]
use polars::prelude::*;

use crate::tdigest::TDigest;
use polars_core::export::rayon::prelude::*;
use polars_core::utils::arrow::array::Array;
use polars_core::utils::arrow::array::{Float32Array, Float64Array};
Expand All @@ -11,7 +12,6 @@ use serde::Deserialize;
use std::io::BufWriter;
use std::io::Cursor;
use std::num::NonZeroUsize;
use tdigest::TDigest;

#[derive(Debug, Deserialize)]
struct TDigestCol {
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
mod expressions;
pub mod tdigest;
mod utils;

#[cfg(target_os = "linux")]
Expand Down
Loading

0 comments on commit 6f22632

Please sign in to comment.