From fedd4a81928ba7eb138330d072fc2b56a7455f7e Mon Sep 17 00:00:00 2001 From: ritchie Date: Tue, 19 Sep 2023 08:07:04 +0200 Subject: [PATCH] prune --- Cargo.toml | 5 ++- py-polars/Cargo.lock | 95 ++++++++++++++++++++------------------------ 2 files changed, 47 insertions(+), 53 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1e88da627578..ba0dcfffae3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,6 +51,9 @@ thiserror = "1" url = "2.3.1" version_check = "0.9.4" simdutf8 = "0.1.4" +hex = "0.4.3" +base64 = "0.21.2" + xxhash-rust = { version = "0.8.6", features = ["xxh3"] } polars-core = { version = "0.33.2", path = "crates/polars-core", default-features = false } @@ -72,7 +75,7 @@ polars = { version = "0.33.2", path = "crates/polars", default-features = false [workspace.dependencies.arrow] package = "nano-arrow" -version = "0.0.0" +version = "0.1.0" path = "crates/nano-arrow" default-features = false features = [ diff --git a/py-polars/Cargo.lock b/py-polars/Cargo.lock index 80af294ee9f7..afc663fa19f4 100644 --- a/py-polars/Cargo.lock +++ b/py-polars/Cargo.lock @@ -96,42 +96,6 @@ dependencies = [ "serde", ] -[[package]] -name = "arrow2" -version = "0.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "963fef509b757bcbbf9e5ffa23bcb345614d99f4f6f531f97417b27b8604d389" -dependencies = [ - "ahash", - "arrow-format", - "avro-schema", - "base64", - "bytemuck", - "chrono", - "chrono-tz", - "dyn-clone", - "either", - "ethnum", - "fallible-streaming-iterator", - "foreign_vec", - "futures", - "getrandom", - "hash_hasher", - "hashbrown 0.14.0", - "lexical-core", - "lz4", - "multiversion", - "num-traits", - "parquet2", - "regex", - "regex-syntax", - "rustc_version", - "simdutf8", - "streaming-iterator", - "strength_reduce", - "zstd", -] - [[package]] name = "async-stream" version = "0.3.5" @@ -718,12 +682,6 @@ dependencies = [ "serde", ] -[[package]] -name = "hash_hasher" -version = "2.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74721d007512d0cb3338cd20f0654ac913920061a4c4d0d8708edb3f2a698c0c" - [[package]] name = "hashbrown" version = "0.13.2" @@ -1168,6 +1126,39 @@ dependencies = [ "target-features", ] +[[package]] +name = "nano-arrow" +version = "0.1.0" +dependencies = [ + "ahash", + "arrow-format", + "avro-schema", + "base64", + "bytemuck", + "chrono", + "chrono-tz", + "dyn-clone", + "either", + "ethnum", + "fallible-streaming-iterator", + "foreign_vec", + "futures", + "getrandom", + "hashbrown 0.14.0", + "lexical-core", + "lz4", + "multiversion", + "num-traits", + "parquet2", + "regex", + "regex-syntax", + "rustc_version", + "simdutf8", + "streaming-iterator", + "strength_reduce", + "zstd", +] + [[package]] name = "ndarray" version = "0.15.6" @@ -1417,13 +1408,13 @@ dependencies = [ name = "polars-arrow" version = "0.33.2" dependencies = [ - "arrow2", "atoi", "chrono", "chrono-tz", "ethnum", "hashbrown 0.14.0", "multiversion", + "nano-arrow", "num-traits", "polars-error", "serde", @@ -1436,7 +1427,6 @@ name = "polars-core" version = "0.33.2" dependencies = [ "ahash", - "arrow2", "bitflags 2.4.0", "chrono", "chrono-tz", @@ -1445,6 +1435,7 @@ dependencies = [ "hashbrown 0.14.0", "indexmap", "itoap", + "nano-arrow", "ndarray", "num-traits", "once_cell", @@ -1468,7 +1459,7 @@ dependencies = [ name = "polars-error" version = "0.33.2" dependencies = [ - "arrow2", + "nano-arrow", "regex", "thiserror", ] @@ -1477,7 +1468,7 @@ dependencies = [ name = "polars-ffi" version = "0.33.2" dependencies = [ - "arrow2", + "nano-arrow", "polars-core", ] @@ -1486,7 +1477,6 @@ name = "polars-io" version = "0.33.2" dependencies = [ "ahash", - "arrow2", "bytes", "chrono", "chrono-tz", @@ -1497,6 +1487,7 @@ dependencies = [ "lexical-core", "memchr", "memmap2", + "nano-arrow", "num-traits", "once_cell", "polars-arrow", @@ -1518,10 +1509,10 @@ name = "polars-json" version = "0.33.2" dependencies = [ "ahash", - "arrow2", "fallible-streaming-iterator", "hashbrown 0.14.0", "indexmap", + "nano-arrow", "num-traits", "polars-arrow", "polars-error", @@ -1557,7 +1548,6 @@ name = "polars-ops" version = "0.33.2" dependencies = [ "argminmax", - "arrow2", "base64", "chrono", "chrono-tz", @@ -1566,6 +1556,7 @@ dependencies = [ "indexmap", "jsonpath_lib", "memchr", + "nano-arrow", "polars-arrow", "polars-core", "polars-json", @@ -1603,11 +1594,11 @@ name = "polars-plan" version = "0.33.2" dependencies = [ "ahash", - "arrow2", "chrono", "chrono-tz", "ciborium", "libloading", + "nano-arrow", "once_cell", "polars-arrow", "polars-core", @@ -1629,7 +1620,7 @@ dependencies = [ name = "polars-row" version = "0.33.2" dependencies = [ - "arrow2", + "nano-arrow", "polars-error", "polars-utils", ] @@ -1651,10 +1642,10 @@ dependencies = [ name = "polars-time" version = "0.33.2" dependencies = [ - "arrow2", "atoi", "chrono", "chrono-tz", + "nano-arrow", "now", "once_cell", "polars-arrow",