diff --git a/Cargo.lock b/Cargo.lock index 41c0aa3..8547336 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -272,7 +272,7 @@ dependencies = [ "flate2", "indexmap", "liblzma", - "rand 0.9.2", + "rand 0.9.5", "serde", "serde_json", "snap", @@ -1269,7 +1269,7 @@ dependencies = [ "log", "object_store", "parking_lot", - "rand 0.9.2", + "rand 0.9.5", "tokio", "tokio-util", "url", @@ -1419,7 +1419,7 @@ dependencies = [ "log", "object_store", "parking_lot", - "rand 0.9.2", + "rand 0.9.5", "tempfile", "url", ] @@ -1485,7 +1485,7 @@ dependencies = [ "md-5 0.11.0", "memchr", "num-traits", - "rand 0.9.2", + "rand 0.9.5", "regex", "sha2", "uuid", @@ -1646,7 +1646,7 @@ dependencies = [ "datafusion", "env_logger", "libm", - "rand 0.9.2", + "rand 0.10.0", "sqllogictest", "tokio", ] @@ -3551,9 +3551,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.9.2" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" dependencies = [ "rand_chacha 0.9.0", "rand_core 0.9.3", diff --git a/datafusion-pg-functions/Cargo.toml b/datafusion-pg-functions/Cargo.toml index d16a0c8..0d0eba2 100644 --- a/datafusion-pg-functions/Cargo.toml +++ b/datafusion-pg-functions/Cargo.toml @@ -88,7 +88,7 @@ row = [] [dependencies] datafusion = { workspace = true, features = ["nested_expressions"] } libm = { version = "0.2", optional = true } -rand = { version = "0.9", optional = true } +rand = { version = "0.10", optional = true } [dev-dependencies] async-trait = "0.1" diff --git a/datafusion-pg-functions/src/numeric/random_normal.rs b/datafusion-pg-functions/src/numeric/random_normal.rs index 3a5ac74..f4cdf06 100644 --- a/datafusion-pg-functions/src/numeric/random_normal.rs +++ b/datafusion-pg-functions/src/numeric/random_normal.rs @@ -29,7 +29,7 @@ use datafusion::common::{Result, exec_err}; use datafusion::logical_expr::{ ColumnarValue, ScalarFunctionArgs, ScalarUDF, ScalarUDFImpl, Signature, Volatility, }; -use rand::{Rng, rng}; +use rand::{RngExt, rng}; /// Create the PostgreSQL `random_normal()` UDF. pub fn create_random_normal_udf() -> ScalarUDF {