From 2b3a00170fd2d32e0950f9faa88c8e1bd4b5f37a Mon Sep 17 00:00:00 2001 From: eitsupi <50911393+eitsupi@users.noreply.github.com> Date: Mon, 11 Mar 2024 20:47:16 +0900 Subject: [PATCH] feat: bump polars to 0.38.2 (#907) Co-authored-by: Etienne Bacher <52219252+etiennebacher@users.noreply.github.com> --- NEWS.md | 2 + src/rust/Cargo.lock | 68 +++++++++++++++++----------------- src/rust/Cargo.toml | 8 ++-- src/rust/src/lazy/dataframe.rs | 1 + 4 files changed, 41 insertions(+), 38 deletions(-) diff --git a/NEWS.md b/NEWS.md index e9a6edcb6..8664c5138 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,8 @@ ### New features +- rust-polars is updated to 0.38.2 (#907). + - Minimum supported Rust version (MSRV) is now 1.76.0. - `as_polars_df()` is added (#893). - It is now possible to create an empty `DataFrame` with a specific schema with `pl$DataFrame(schema = my_schema)` (#901). diff --git a/src/rust/Cargo.lock b/src/rust/Cargo.lock index 38f42e2e6..07459948a 100644 --- a/src/rust/Cargo.lock +++ b/src/rust/Cargo.lock @@ -83,9 +83,9 @@ dependencies = [ [[package]] name = "argminmax" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "202108b46429b765ef483f8a24d5c46f48c14acfdacc086dd4ab6dddf6bcdbd2" +checksum = "52424b59d69d69d5056d508b260553afd91c57e21849579cd1f50ee8b8b88eaa" dependencies = [ "num-traits", ] @@ -1354,8 +1354,8 @@ dependencies = [ [[package]] name = "polars" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "getrandom", "polars-arrow", @@ -1374,8 +1374,8 @@ dependencies = [ [[package]] name = "polars-arrow" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "ahash", "atoi", @@ -1421,8 +1421,8 @@ dependencies = [ [[package]] name = "polars-compute" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "bytemuck", "either", @@ -1436,8 +1436,8 @@ dependencies = [ [[package]] name = "polars-core" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "ahash", "bitflags 2.4.2", @@ -1470,8 +1470,8 @@ dependencies = [ [[package]] name = "polars-error" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "avro-schema", "polars-arrow-format", @@ -1482,8 +1482,8 @@ dependencies = [ [[package]] name = "polars-io" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "ahash", "async-trait", @@ -1523,8 +1523,8 @@ dependencies = [ [[package]] name = "polars-json" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "ahash", "chrono", @@ -1543,8 +1543,8 @@ dependencies = [ [[package]] name = "polars-lazy" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "ahash", "bitflags 2.4.2", @@ -1566,8 +1566,8 @@ dependencies = [ [[package]] name = "polars-ops" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "ahash", "aho-corasick", @@ -1602,8 +1602,8 @@ dependencies = [ [[package]] name = "polars-parquet" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "ahash", "async-stream", @@ -1627,8 +1627,8 @@ dependencies = [ [[package]] name = "polars-pipe" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "crossbeam-channel", "crossbeam-queue", @@ -1651,8 +1651,8 @@ dependencies = [ [[package]] name = "polars-plan" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "ahash", "bytemuck", @@ -1678,8 +1678,8 @@ dependencies = [ [[package]] name = "polars-row" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "bytemuck", "polars-arrow", @@ -1689,8 +1689,8 @@ dependencies = [ [[package]] name = "polars-sql" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "hex", "polars-arrow", @@ -1706,8 +1706,8 @@ dependencies = [ [[package]] name = "polars-time" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "atoi", "chrono", @@ -1726,8 +1726,8 @@ dependencies = [ [[package]] name = "polars-utils" -version = "0.38.1" -source = "git+https://github.com/pola-rs/polars.git?rev=a199ed57898343dc033e52132e8dfbc6f5ab09e0#a199ed57898343dc033e52132e8dfbc6f5ab09e0" +version = "0.38.2" +source = "git+https://github.com/pola-rs/polars.git?rev=946fad7a7b56a360e7ec04867aa19f212fcdf5d6#946fad7a7b56a360e7ec04867aa19f212fcdf5d6" dependencies = [ "ahash", "bytemuck", diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml index 0296ab8ce..e2db246a1 100644 --- a/src/rust/Cargo.toml +++ b/src/rust/Cargo.toml @@ -2,7 +2,7 @@ name = "r-polars" version = "0.38.1" edition = "2021" -rust-version = "1.74.1" +rust-version = "1.76.0" publish = false [lib] @@ -52,8 +52,8 @@ serde_json = "*" smartstring = "1.0.1" state = "0.6.0" thiserror = "1.0.57" -polars-core = { git = "https://github.com/pola-rs/polars.git", rev = "a199ed57898343dc033e52132e8dfbc6f5ab09e0", default-features = false } -polars-lazy = { git = "https://github.com/pola-rs/polars.git", rev = "a199ed57898343dc033e52132e8dfbc6f5ab09e0", default-features = false } +polars-core = { git = "https://github.com/pola-rs/polars.git", rev = "946fad7a7b56a360e7ec04867aa19f212fcdf5d6", default-features = false } +polars-lazy = { git = "https://github.com/pola-rs/polars.git", rev = "946fad7a7b56a360e7ec04867aa19f212fcdf5d6", default-features = false } either = "1" #features copied from node-polars @@ -153,4 +153,4 @@ features = [ "zip_with", ] git = "https://github.com/pola-rs/polars.git" -rev = "a199ed57898343dc033e52132e8dfbc6f5ab09e0" +rev = "946fad7a7b56a360e7ec04867aa19f212fcdf5d6" diff --git a/src/rust/src/lazy/dataframe.rs b/src/rust/src/lazy/dataframe.rs index 7cd3d1ec8..dc668c993 100644 --- a/src/rust/src/lazy/dataframe.rs +++ b/src/rust/src/lazy/dataframe.rs @@ -564,6 +564,7 @@ impl RPolarsLazyFrame { comm_subexpr_elim, streaming, fast_projection: _, + row_estimate: _, eager, } = self.0.get_current_optimizations(); list!(