Skip to content

Commit

Permalink
rust polars 0.27.x (pola-rs#6789)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Feb 10, 2023
1 parent b5a1e74 commit c6a3df0
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 49 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ members = [
]

[workspace.package]
version = "0.26.1"
version = "0.27.1"

[workspace.dependencies]
rayon = "1.5"
Expand Down
15 changes: 8 additions & 7 deletions polars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polars"
version = "0.26.1"
version.workspace = true
authors = ["ritchie46 <[email protected]>"]
edition = "2021"
keywords = ["dataframe", "query-engine", "arrow"]
Expand Down Expand Up @@ -297,16 +297,17 @@ bench = [
]

[dependencies]
polars-algo = { version = "0.26.1", path = "./polars-algo", optional = true }
polars-core = { version = "0.26.1", path = "./polars-core", features = ["docs", "private"], default-features = false }
polars-io = { version = "0.26.1", path = "./polars-io", features = ["private"], default-features = false, optional = true }
polars-lazy = { version = "0.26.1", path = "./polars-lazy", features = ["private"], default-features = false, optional = true }
polars-ops = { version = "0.26.1", path = "./polars-ops" }
polars-algo = { version = "0.27.1", path = "./polars-algo", optional = true }
polars-core = { version = "0.27.1", path = "./polars-core", features = ["docs", "private"], default-features = false }
polars-io = { version = "0.27.1", path = "./polars-io", features = ["private"], default-features = false, optional = true }
polars-lazy = { version = "0.27.1", path = "./polars-lazy", features = ["private"], default-features = false, optional = true }
polars-ops = { version = "0.27.1", path = "./polars-ops" }
polars-sql = { version = "0.2", path = "./polars-sql", default-features = false, optional = true }
polars-time = { version = "0.26.1", path = "./polars-time", default-features = false, optional = true }
polars-time = { version = "0.27.1", path = "./polars-time", default-features = false, optional = true }

# enable js feature for getrandom to work in wasm
[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions polars/polars-algo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ description = "Algorithms built upon Polars primitives"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
polars-core = { version = "0.26.1", path = "../polars-core", features = ["private", "dtype-categorical", "asof_join"], default-features = false }
polars-lazy = { version = "0.26.1", path = "../polars-lazy", features = ["asof_join", "concat_str", "strings"] }
polars-ops = { version = "0.26.1", path = "../polars-ops", features = ["dtype-categorical", "asof_join"], default-features = false }
polars-core = { version = "0.27.1", path = "../polars-core", features = ["private", "dtype-categorical", "asof_join"], default-features = false }
polars-lazy = { version = "0.27.1", path = "../polars-lazy", features = ["asof_join", "concat_str", "strings"] }
polars-ops = { version = "0.27.1", path = "../polars-ops", features = ["dtype-categorical", "asof_join"], default-features = false }

[package.metadata.docs.rs]
all-features = true
Expand Down
4 changes: 2 additions & 2 deletions polars/polars-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ ndarray = { version = "0.15", optional = true, default_features = false }
num.workspace = true
object_store = { version = "0.5.3", default-features = false, optional = true }
once_cell.workspace = true
polars-arrow = { version = "0.26.1", path = "../polars-arrow", features = ["compute"] }
polars-utils = { version = "0.26.1", path = "../polars-utils" }
polars-arrow = { version = "0.27.1", path = "../polars-arrow", features = ["compute"] }
polars-utils = { version = "0.27.1", path = "../polars-utils" }
rand = { version = "0.8", optional = true, features = ["small_rng", "std"] }
rand_distr = { version = "0.4", optional = true }
rayon.workspace = true
Expand Down
4 changes: 4 additions & 0 deletions polars/polars-core/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use std::sync::atomic::{AtomicU8, Ordering};
feature = "dtype-time"
))]
use arrow::temporal_conversions::*;
#[cfg(feature = "dtype-datetime")]
use chrono::NaiveDateTime;
#[cfg(feature = "timezones")]
use chrono::TimeZone;
Expand Down Expand Up @@ -781,16 +782,19 @@ impl Display for AnyValue<'_> {

/// Utility struct to format a timezone aware datetime.
#[allow(dead_code)]
#[cfg(feature = "dtype-datetime")]
pub struct PlTzAware<'a> {
ndt: NaiveDateTime,
tz: &'a str,
}
#[cfg(feature = "dtype-datetime")]
impl<'a> PlTzAware<'a> {
pub fn new(ndt: NaiveDateTime, tz: &'a str) -> Self {
Self { ndt, tz }
}
}

#[cfg(feature = "dtype-datetime")]
impl Display for PlTzAware<'_> {
#[allow(unused_variables)]
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
Expand Down
8 changes: 4 additions & 4 deletions polars/polars-io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ memmap = { package = "memmap2", version = "0.5.2", optional = true }
num.workspace = true
object_store = { version = "0.5.3", default-features = false, optional = true }
once_cell = "1"
polars-arrow = { version = "0.26.1", path = "../polars-arrow" }
polars-core = { version = "0.26.1", path = "../polars-core", features = ["private"], default-features = false }
polars-time = { version = "0.26.1", path = "../polars-time", features = ["private"], default-features = false, optional = true }
polars-utils = { version = "0.26.1", path = "../polars-utils" }
polars-arrow = { version = "0.27.1", path = "../polars-arrow" }
polars-core = { version = "0.27.1", path = "../polars-core", features = ["private"], default-features = false }
polars-time = { version = "0.27.1", path = "../polars-time", features = ["private"], default-features = false, optional = true }
polars-utils = { version = "0.27.1", path = "../polars-utils" }
rayon.workspace = true
regex = "1.6"
serde = { version = "1", features = ["derive"], optional = true }
Expand Down
16 changes: 8 additions & 8 deletions polars/polars-lazy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ serde_json = "1"
ahash.workspace = true
bitflags.workspace = true
glob = "0.3"
polars-arrow = { version = "0.26.1", path = "../polars-arrow" }
polars-core = { version = "0.26.1", path = "../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.26.1", path = "../polars-io", features = ["lazy", "csv-file", "private"], default-features = false }
polars-ops = { version = "0.26.1", path = "../polars-ops", default-features = false }
polars-pipe = { version = "0.26.1", path = "./polars-pipe", optional = true }
polars-plan = { version = "0.26.1", path = "./polars-plan" }
polars-time = { version = "0.26.1", path = "../polars-time", optional = true }
polars-utils = { version = "0.26.1", path = "../polars-utils" }
polars-arrow = { version = "0.27.1", path = "../polars-arrow" }
polars-core = { version = "0.27.1", path = "../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.27.1", path = "../polars-io", features = ["lazy", "csv-file", "private"], default-features = false }
polars-ops = { version = "0.27.1", path = "../polars-ops", default-features = false }
polars-pipe = { version = "0.27.1", path = "./polars-pipe", optional = true }
polars-plan = { version = "0.27.1", path = "./polars-plan" }
polars-time = { version = "0.27.1", path = "../polars-time", optional = true }
polars-utils = { version = "0.27.1", path = "../polars-utils" }
pyo3 = { version = "0.18", optional = true }
rayon.workspace = true

Expand Down
12 changes: 6 additions & 6 deletions polars/polars-lazy/polars-pipe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ crossbeam-channel = "0.5"
enum_dispatch = "0.3"
hashbrown.workspace = true
num.workspace = true
polars-arrow = { version = "0.26.1", path = "../../polars-arrow", default-features = false }
polars-core = { version = "0.26.1", path = "../../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.26.1", path = "../../polars-io", default-features = false, features = ["ipc"] }
polars-ops = { version = "0.26.1", path = "../../polars-ops", features = ["search_sorted"] }
polars-plan = { version = "0.26.1", path = "../polars-plan", default-features = false, features = ["compile"] }
polars-utils = { version = "0.26.1", path = "../../polars-utils", features = ["sysinfo"] }
polars-arrow = { version = "0.27.1", path = "../../polars-arrow", default-features = false }
polars-core = { version = "0.27.1", path = "../../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.27.1", path = "../../polars-io", default-features = false, features = ["ipc"] }
polars-ops = { version = "0.27.1", path = "../../polars-ops", features = ["search_sorted"] }
polars-plan = { version = "0.27.1", path = "../polars-plan", default-features = false, features = ["compile"] }
polars-utils = { version = "0.27.1", path = "../../polars-utils", features = ["sysinfo"] }
rayon.workspace = true
smartstring = { version = "1" }

Expand Down
12 changes: 6 additions & 6 deletions polars/polars-lazy/polars-plan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ description = "Lazy query engine for the Polars DataFrame library"
ahash.workspace = true
futures = { version = "0.3.25", optional = true }
once_cell.workspace = true
polars-arrow = { version = "0.26.1", path = "../../polars-arrow" }
polars-core = { version = "0.26.1", path = "../../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.26.1", path = "../../polars-io", features = ["lazy", "csv-file", "private"], default-features = false }
polars-ops = { version = "0.26.1", path = "../../polars-ops", default-features = false }
polars-time = { version = "0.26.1", path = "../../polars-time", optional = true }
polars-utils = { version = "0.26.1", path = "../../polars-utils" }
polars-arrow = { version = "0.27.1", path = "../../polars-arrow" }
polars-core = { version = "0.27.1", path = "../../polars-core", features = ["lazy", "private", "zip_with", "random"], default-features = false }
polars-io = { version = "0.27.1", path = "../../polars-io", features = ["lazy", "csv-file", "private"], default-features = false }
polars-ops = { version = "0.27.1", path = "../../polars-ops", default-features = false }
polars-time = { version = "0.27.1", path = "../../polars-time", optional = true }
polars-utils = { version = "0.27.1", path = "../../polars-utils" }
pyo3 = { version = "0.18", optional = true }
rayon.workspace = true
regex = { version = "1.6", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions polars/polars-ops/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ base64 = { version = "0.21", optional = true }
hex = { version = "0.4", optional = true }
jsonpath_lib = { version = "0.3.0", optional = true, git = "https://github.com/ritchie46/jsonpath", branch = "improve_compiled" }
memchr = { version = "2", optional = true }
polars-arrow = { version = "0.26.1", path = "../polars-arrow", default-features = false }
polars-core = { version = "0.26.1", path = "../polars-core", features = ["private"], default-features = false }
polars-utils = { version = "0.26.1", path = "../polars-utils", default-features = false }
polars-arrow = { version = "0.27.1", path = "../polars-arrow", default-features = false }
polars-core = { version = "0.27.1", path = "../polars-core", features = ["private"], default-features = false }
polars-utils = { version = "0.27.1", path = "../polars-utils", default-features = false }
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }

Expand Down
10 changes: 5 additions & 5 deletions polars/polars-sql/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polars-sql"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
license = "MIT"
repository = "https://github.com/pola-rs/polars"
Expand All @@ -16,10 +16,10 @@ ipc = ["polars-lazy/ipc"]

[dependencies]
atty = { version = "0.2", optional = true }
polars-arrow = { version = "0.26.1", path = "../polars-arrow", features = ["like"] }
polars-core = { version = "0.26.1", path = "../polars-core", features = [] }
polars-lazy = { version = "0.26.1", path = "../polars-lazy", features = ["compile", "strings", "cross_join"] }
polars-plan = { version = "0.26.1", path = "../polars-lazy/polars-plan", features = ["compile"] }
polars-arrow = { version = "0.27.1", path = "../polars-arrow", features = ["like"] }
polars-core = { version = "0.27.1", path = "../polars-core", features = [] }
polars-lazy = { version = "0.27.1", path = "../polars-lazy", features = ["compile", "strings", "cross_join"] }
polars-plan = { version = "0.27.1", path = "../polars-lazy/polars-plan", features = ["compile"] }
rustyline = { version = "10.0.0", optional = true }
serde = "1"
serde_json = { version = "1" }
Expand Down
8 changes: 4 additions & 4 deletions polars/polars-time/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ chrono-tz = { version = "0.8", optional = true }
lexical = { version = "6", default-features = false, features = ["std", "parse-floats", "parse-integers"] }
now = "0.1"
once_cell.workspace = true
polars-arrow = { version = "0.26.1", path = "../polars-arrow", features = ["compute", "temporal"] }
polars-core = { version = "0.26.1", path = "../polars-core", default-features = false, features = ["private", "dtype-datetime", "dtype-duration", "dtype-time", "dtype-date"] }
polars-ops = { version = "0.26.1", path = "../polars-ops" }
polars-utils = { version = "0.26.1", path = "../polars-utils" }
polars-arrow = { version = "0.27.1", path = "../polars-arrow", features = ["compute", "temporal"] }
polars-core = { version = "0.27.1", path = "../polars-core", default-features = false, features = ["private", "dtype-datetime", "dtype-duration", "dtype-time", "dtype-date"] }
polars-ops = { version = "0.27.1", path = "../polars-ops" }
polars-utils = { version = "0.27.1", path = "../polars-utils" }
regex = "1.7.1"
serde = { version = "1", features = ["derive"], optional = true }

Expand Down

0 comments on commit c6a3df0

Please sign in to comment.