From 8251a7294721d0d4b0911f9030bb8c015a6e0b51 Mon Sep 17 00:00:00 2001 From: eitsupi Date: Mon, 11 Mar 2024 11:19:34 +0000 Subject: [PATCH] feat: bump polars to 0.38.2 --- DESCRIPTION | 2 +- NEWS.md | 2 + src/rust/Cargo.lock | 70 +++++++++++++++++----------------- src/rust/Cargo.toml | 10 ++--- src/rust/src/lazy/dataframe.rs | 1 + tools/lib-sums.tsv | 6 --- 6 files changed, 44 insertions(+), 47 deletions(-) delete mode 100644 tools/lib-sums.tsv diff --git a/DESCRIPTION b/DESCRIPTION index d81c5e02d..40cc3fa01 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -117,5 +117,5 @@ Collate: 'zzz.R' Config/rextendr/version: 0.3.1 VignetteBuilder: knitr -Config/polars/LibVersion: 0.38.0 +Config/polars/LibVersion: 0.38.1 Config/polars/RustToolchainVersion: nightly-2024-02-23 diff --git a/NEWS.md b/NEWS.md index 28ec121ff..23bc75390 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.7. - `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 deafbc56d..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", @@ -1769,7 +1769,7 @@ dependencies = [ [[package]] name = "r-polars" -version = "0.38.0" +version = "0.38.1" dependencies = [ "either", "extendr-api", diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml index a78c7a8f5..e2db246a1 100644 --- a/src/rust/Cargo.toml +++ b/src/rust/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "r-polars" -version = "0.38.0" +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!( diff --git a/tools/lib-sums.tsv b/tools/lib-sums.tsv deleted file mode 100644 index 00b18a01f..000000000 --- a/tools/lib-sums.tsv +++ /dev/null @@ -1,6 +0,0 @@ -url sha256sum -https://github.com/pola-rs/r-polars/releases/download/lib-v0.38.0/libr_polars-0.38.0-aarch64-apple-darwin.tar.gz 1d6d38839fdc7cf2fb392a24593f31b40f9183fb82e919c934ec0bbf34ee8393 -https://github.com/pola-rs/r-polars/releases/download/lib-v0.38.0/libr_polars-0.38.0-aarch64-unknown-linux-gnu.tar.gz 11b1fb80103c8f44a7e79555143f0d9ceaaf6e0ca40810ac0970df3fe9b1ecee -https://github.com/pola-rs/r-polars/releases/download/lib-v0.38.0/libr_polars-0.38.0-x86_64-apple-darwin.tar.gz 38b330b2e81f6865ba7cdbded18c61f1b6099dceafb21ce2ed2bd20cf786c64f -https://github.com/pola-rs/r-polars/releases/download/lib-v0.38.0/libr_polars-0.38.0-x86_64-pc-windows-gnu.tar.gz 95dee2c213e3c98c12e7d8a549d5dc6a69936afc98ba909970bcbb87cce89344 -https://github.com/pola-rs/r-polars/releases/download/lib-v0.38.0/libr_polars-0.38.0-x86_64-unknown-linux-gnu.tar.gz 0b94a820b0959237313de2a92250b7d6527e54860e22a2579b4938b0badf0998