diff --git a/Cargo.toml b/Cargo.toml index d0e95870f145..9da586a7d6cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ exclude = [ ] [workspace.package] -version = "0.34.1" +version = "0.34.2" authors = ["Ritchie Vink "] edition = "2021" homepage = "https://www.pola.rs/" @@ -64,21 +64,21 @@ ryu = "1.0.13" lexical-core = "0.8.5" percent-encoding = "2.3" xxhash-rust = { version = "0.8.6", features = ["xxh3"] } -polars-core = { version = "0.34.1", path = "crates/polars-core", default-features = false } -polars-plan = { version = "0.34.1", path = "crates/polars-plan", default-features = false } -polars-lazy = { version = "0.34.1", path = "crates/polars-lazy", default-features = false } -polars-pipe = { version = "0.34.1", path = "crates/polars-pipe", default-features = false } -polars-row = { version = "0.34.1", path = "crates/polars-row", default-features = false } -polars-ffi = { version = "0.34.1", path = "crates/polars-ffi", default-features = false } -polars-ops = { version = "0.34.1", path = "crates/polars-ops", default-features = false } -polars-sql = { version = "0.34.1", path = "crates/polars-sql", default-features = false } -polars-algo = { version = "0.34.1", path = "crates/polars-algo", default-features = false } -polars-time = { version = "0.34.1", path = "crates/polars-time", default-features = false } -polars-utils = { version = "0.34.1", path = "crates/polars-utils", default-features = false } -polars-io = { version = "0.34.1", path = "crates/polars-io", default-features = false } -polars-error = { version = "0.34.1", path = "crates/polars-error", default-features = false } -polars-json = { version = "0.34.1", path = "crates/polars-json", default-features = false } -polars = { version = "0.34.1", path = "crates/polars", default-features = false } +polars-core = { version = "0.34.2", path = "crates/polars-core", default-features = false } +polars-plan = { version = "0.34.2", path = "crates/polars-plan", default-features = false } +polars-lazy = { version = "0.34.2", path = "crates/polars-lazy", default-features = false } +polars-pipe = { version = "0.34.2", path = "crates/polars-pipe", default-features = false } +polars-row = { version = "0.34.2", path = "crates/polars-row", default-features = false } +polars-ffi = { version = "0.34.2", path = "crates/polars-ffi", default-features = false } +polars-ops = { version = "0.34.2", path = "crates/polars-ops", default-features = false } +polars-sql = { version = "0.34.2", path = "crates/polars-sql", default-features = false } +polars-algo = { version = "0.34.2", path = "crates/polars-algo", default-features = false } +polars-time = { version = "0.34.2", path = "crates/polars-time", default-features = false } +polars-utils = { version = "0.34.2", path = "crates/polars-utils", default-features = false } +polars-io = { version = "0.34.2", path = "crates/polars-io", default-features = false } +polars-error = { version = "0.34.2", path = "crates/polars-error", default-features = false } +polars-json = { version = "0.34.2", path = "crates/polars-json", default-features = false } +polars = { version = "0.34.2", path = "crates/polars", default-features = false } rand_distr = "0.4" reqwest = { version = "0.11", default-features = false } arrow-array = { version = ">=41", default-features = false } @@ -90,7 +90,7 @@ avro-schema = { version = "0.3" } [workspace.dependencies.arrow] package = "polars-arrow" -version = "0.34.1" +version = "0.34.2" path = "crates/polars-arrow" default-features = false features = [ diff --git a/crates/polars-sql/Cargo.toml b/crates/polars-sql/Cargo.toml index b03757ec4435..6a91e24dcd3b 100644 --- a/crates/polars-sql/Cargo.toml +++ b/crates/polars-sql/Cargo.toml @@ -29,3 +29,4 @@ ipc = ["polars-lazy/ipc"] parquet = ["polars-lazy/parquet"] semi_anti_join = ["polars-lazy/semi_anti_join"] diagonal_concat = ["polars-lazy/diagonal_concat"] +nightly = [] diff --git a/crates/polars-sql/src/functions.rs b/crates/polars-sql/src/functions.rs index 84f6987c3e0b..6222c57766b3 100644 --- a/crates/polars-sql/src/functions.rs +++ b/crates/polars-sql/src/functions.rs @@ -242,6 +242,7 @@ pub(crate) enum PolarsSqlFunctions { /// ```sql /// SELECT INITCAP(column_1) from df; /// ``` + #[cfg(feature = "nightly")] InitCap, /// SQL 'left' function /// Returns the `length` first characters @@ -579,6 +580,7 @@ impl PolarsSqlFunctions { // String functions // ---- "ends_with" => Self::EndsWith, + #[cfg(feature = "nightly")] "initcap" => Self::InitCap, "length" => Self::Length, "left" => Self::Left, @@ -697,6 +699,7 @@ impl SqlFunctionVisitor<'_> { // String functions // ---- EndsWith => self.visit_binary(|e, s| e.str().ends_with(s)), + #[cfg(feature = "nightly")] InitCap => self.visit_unary(|e| e.str().to_titlecase()), Left => self.try_visit_binary(|e, length| { Ok(e.str().slice(0, match length { diff --git a/crates/polars/Cargo.toml b/crates/polars/Cargo.toml index 62455cda2c5e..acb7e1a827a4 100644 --- a/crates/polars/Cargo.toml +++ b/crates/polars/Cargo.toml @@ -35,7 +35,7 @@ sql = ["polars-sql"] rows = ["polars-core/rows"] simd = ["polars-core/simd", "polars-io/simd", "polars-ops/simd"] avx512 = ["polars-core/avx512"] -nightly = ["polars-core/nightly", "polars-ops/nightly", "simd", "polars-lazy?/nightly"] +nightly = ["polars-core/nightly", "polars-ops/nightly", "simd", "polars-lazy?/nightly", "polars-sql/nightly"] docs = ["polars-core/docs"] temporal = ["polars-core/temporal", "polars-lazy?/temporal", "polars-io/temporal", "polars-time"] random = ["polars-core/random", "polars-lazy?/random", "polars-ops/random"] diff --git a/py-polars/Cargo.lock b/py-polars/Cargo.lock index 92d5ab8a62db..5514892a096d 100644 --- a/py-polars/Cargo.lock +++ b/py-polars/Cargo.lock @@ -1576,7 +1576,7 @@ dependencies = [ [[package]] name = "polars" -version = "0.34.1" +version = "0.34.2" dependencies = [ "getrandom", "polars-core", @@ -1590,7 +1590,7 @@ dependencies = [ [[package]] name = "polars-algo" -version = "0.34.1" +version = "0.34.2" dependencies = [ "polars-core", "polars-lazy", @@ -1599,7 +1599,7 @@ dependencies = [ [[package]] name = "polars-arrow" -version = "0.34.1" +version = "0.34.2" dependencies = [ "ahash", "arrow-format", @@ -1633,7 +1633,7 @@ dependencies = [ [[package]] name = "polars-core" -version = "0.34.1" +version = "0.34.2" dependencies = [ "ahash", "bitflags 2.4.0", @@ -1666,7 +1666,7 @@ dependencies = [ [[package]] name = "polars-error" -version = "0.34.1" +version = "0.34.2" dependencies = [ "arrow-format", "avro-schema", @@ -1679,7 +1679,7 @@ dependencies = [ [[package]] name = "polars-ffi" -version = "0.34.1" +version = "0.34.2" dependencies = [ "polars-arrow", "polars-core", @@ -1687,7 +1687,7 @@ dependencies = [ [[package]] name = "polars-io" -version = "0.34.1" +version = "0.34.2" dependencies = [ "ahash", "async-trait", @@ -1729,7 +1729,7 @@ dependencies = [ [[package]] name = "polars-json" -version = "0.34.1" +version = "0.34.2" dependencies = [ "ahash", "chrono", @@ -1748,7 +1748,7 @@ dependencies = [ [[package]] name = "polars-lazy" -version = "0.34.1" +version = "0.34.2" dependencies = [ "ahash", "bitflags 2.4.0", @@ -1773,7 +1773,7 @@ dependencies = [ [[package]] name = "polars-ops" -version = "0.34.1" +version = "0.34.2" dependencies = [ "ahash", "argminmax", @@ -1805,7 +1805,7 @@ dependencies = [ [[package]] name = "polars-pipe" -version = "0.34.1" +version = "0.34.2" dependencies = [ "crossbeam-channel", "crossbeam-queue", @@ -1827,7 +1827,7 @@ dependencies = [ [[package]] name = "polars-plan" -version = "0.34.1" +version = "0.34.2" dependencies = [ "ahash", "bytemuck", @@ -1855,7 +1855,7 @@ dependencies = [ [[package]] name = "polars-row" -version = "0.34.1" +version = "0.34.2" dependencies = [ "polars-arrow", "polars-error", @@ -1864,7 +1864,7 @@ dependencies = [ [[package]] name = "polars-sql" -version = "0.34.1" +version = "0.34.2" dependencies = [ "polars-arrow", "polars-core", @@ -1879,7 +1879,7 @@ dependencies = [ [[package]] name = "polars-time" -version = "0.34.1" +version = "0.34.2" dependencies = [ "atoi", "chrono", @@ -1898,7 +1898,7 @@ dependencies = [ [[package]] name = "polars-utils" -version = "0.34.1" +version = "0.34.2" dependencies = [ "ahash", "bytemuck",