Skip to content

Commit

Permalink
update detafusion to ver.45
Browse files Browse the repository at this point in the history
  • Loading branch information
milenkovicm committed Feb 8, 2025
1 parent e9e8f9a commit 51bd5bb
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 41 deletions.
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ members = ["ballista-cli", "ballista/client", "ballista/core", "ballista/executo
resolver = "2"

[workspace.dependencies]
arrow = { version = "53", features = ["ipc_compression"] }
arrow-flight = { version = "53", features = ["flight-sql-experimental"] }
arrow = { version = "54", features = ["ipc_compression"] }
arrow-flight = { version = "54", features = ["flight-sql-experimental"] }
clap = { version = "4.5", features = ["derive", "cargo"] }
configure_me = { version = "0.4.0" }
configure_me_codegen = { version = "0.4.4" }
datafusion = "44.0.0"
datafusion-cli = "44.0.0"
datafusion-proto = "44.0.0"
datafusion-proto-common = "44.0.0"
datafusion = "45.0.0"
datafusion-cli = "45.0.0"
datafusion-proto = "45.0.0"
datafusion-proto-common = "45.0.0"
object_store = "0.11"
prost = "0.13"
prost-types = "0.13"
Expand All @@ -45,15 +45,15 @@ ctor = { version = "0.2" }
mimalloc = { version = "0.1" }

tokio = { version = "1" }
uuid = { version = "1.10", features = ["v4", "v7"] }
rand = { version = "0.8" }
uuid = { version = "1.13", features = ["v4", "v7"] }
rand = { version = "0.9" }
env_logger = { version = "0.11" }
futures = { version = "0.3" }
log = { version = "0.4" }
parking_lot = { version = "0.12" }
tempfile = { version = "3" }
tempfile = { version = "3.16" }
dashmap = { version = "6.1" }
async-trait = { version = "0.1.4" }
async-trait = { version = "0.1" }
serde = { version = "1.0" }
tokio-stream = { version = "0.1" }
url = { version = "2.5" }
Expand Down
8 changes: 4 additions & 4 deletions ballista-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
[package]
name = "ballista-cli"
description = "Command Line Client for Ballista distributed query engine."
version = "44.0.0"
version = "45.0.0"
authors = ["Apache DataFusion <[email protected]>"]
edition = "2021"
keywords = ["ballista", "cli"]
Expand All @@ -28,14 +28,14 @@ repository = "https://github.com/apache/arrow-ballista"
readme = "README.md"

[dependencies]
ballista = { path = "../ballista/client", version = "44.0.0", features = ["standalone"] }
ballista = { path = "../ballista/client", version = "45.0.0", features = ["standalone"] }
clap = { workspace = true, features = ["derive", "cargo"] }
datafusion = { workspace = true }
datafusion-cli = { workspace = true }
dirs = "5.0.1"
dirs = "6.0"
env_logger = { workspace = true }
mimalloc = { workspace = true }
rustyline = "14.0.0"
rustyline = "15.0.0"
tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread", "sync", "parking_lot"] }

[features]
Expand Down
12 changes: 6 additions & 6 deletions ballista/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name = "ballista"
description = "Ballista Distributed Compute"
license = "Apache-2.0"
version = "44.0.0"
version = "45.0.0"
homepage = "https://github.com/apache/arrow-ballista"
repository = "https://github.com/apache/arrow-ballista"
readme = "README.md"
Expand All @@ -28,18 +28,18 @@ edition = "2021"

[dependencies]
async-trait = { workspace = true }
ballista-core = { path = "../core", version = "44.0.0" }
ballista-executor = { path = "../executor", version = "44.0.0", optional = true }
ballista-scheduler = { path = "../scheduler", version = "44.0.0", optional = true }
ballista-core = { path = "../core", version = "45.0.0" }
ballista-executor = { path = "../executor", version = "45.0.0", optional = true }
ballista-scheduler = { path = "../scheduler", version = "45.0.0", optional = true }
datafusion = { workspace = true }
log = { workspace = true }

tokio = { workspace = true }
url = { workspace = true }

[dev-dependencies]
ballista-executor = { path = "../executor", version = "44.0.0" }
ballista-scheduler = { path = "../scheduler", version = "44.0.0" }
ballista-executor = { path = "../executor", version = "45.0.0" }
ballista-scheduler = { path = "../scheduler", version = "45.0.0" }
ctor = { workspace = true }
datafusion-proto = { workspace = true }
env_logger = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion ballista/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name = "ballista-core"
description = "Ballista Distributed Compute"
license = "Apache-2.0"
version = "44.0.0"
version = "45.0.0"
homepage = "https://github.com/apache/arrow-ballista"
repository = "https://github.com/apache/arrow-ballista"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions ballista/core/src/execution_plans/shuffle_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ use datafusion::physical_plan::stream::RecordBatchStreamAdapter;
use itertools::Itertools;
use log::{error, info};
use rand::prelude::SliceRandom;
use rand::thread_rng;
use rand::rng;
use tokio::sync::{mpsc, Semaphore};
use tokio_stream::wrappers::ReceiverStream;

Expand Down Expand Up @@ -163,7 +163,7 @@ impl ExecutionPlan for ShuffleReaderExec {
.map(|(_, p)| p)
.collect();
// Shuffle partitions for evenly send fetching partition requests to avoid hot executors within multiple tasks
partition_locations.shuffle(&mut thread_rng());
partition_locations.shuffle(&mut rng());

let response_receiver =
send_fetch_partitions(partition_locations, max_request_num);
Expand Down
4 changes: 2 additions & 2 deletions ballista/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name = "ballista-executor"
description = "Ballista Distributed Compute - Executor"
license = "Apache-2.0"
version = "44.0.0"
version = "45.0.0"
homepage = "https://github.com/apache/arrow-ballista"
repository = "https://github.com/apache/arrow-ballista"
readme = "README.md"
Expand All @@ -42,7 +42,7 @@ default = ["build-binary", "mimalloc"]
arrow = { workspace = true }
arrow-flight = { workspace = true }
async-trait = { workspace = true }
ballista-core = { path = "../core", version = "44.0.0" }
ballista-core = { path = "../core", version = "45.0.0" }
configure_me = { workspace = true, optional = true }
dashmap = { workspace = true }
datafusion = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions ballista/scheduler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name = "ballista-scheduler"
description = "Ballista Distributed Compute - Scheduler"
license = "Apache-2.0"
version = "44.0.0"
version = "45.0.0"
homepage = "https://github.com/apache/arrow-ballista"
repository = "https://github.com/apache/arrow-ballista"
readme = "README.md"
Expand All @@ -46,7 +46,7 @@ rest-api = ["graphviz-rust"]
arrow-flight = { workspace = true }
async-trait = { workspace = true }
axum = "0.7.7"
ballista-core = { path = "../core", version = "44.0.0" }
ballista-core = { path = "../core", version = "45.0.0" }
base64 = { version = "0.22", optional = true }
clap = { workspace = true, optional = true }
configure_me = { workspace = true, optional = true }
Expand Down
4 changes: 2 additions & 2 deletions ballista/scheduler/src/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ order by

let join = coalesce_batches.children()[0].clone();
let join = downcast_exec!(join, HashJoinExec);
assert!(join.contain_projection());
assert!(join.contains_projection());

let join_input_1 = join.children()[0].clone();
// skip CoalesceBatches
Expand Down Expand Up @@ -687,7 +687,7 @@ order by
assert_eq!(Some(&Column::new("l_shipmode", 1)), partition_by);
assert_eq!(InputOrderMode::Sorted, window.input_order_mode);
let sort = downcast_exec!(window.children()[0], SortExec);
match &sort.expr().inner[..] {
match &sort.expr().iter().collect::<Vec<_>>()[..] {
[expr1, expr2] => {
assert_eq!(
SortOptions {
Expand Down
6 changes: 3 additions & 3 deletions ballista/scheduler/src/state/task_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use ballista_core::error::BallistaError;
use ballista_core::error::Result;
use ballista_core::extension::SessionConfigHelperExt;
use datafusion::prelude::SessionConfig;
use rand::distr::Alphanumeric;

use crate::cluster::JobState;
use ballista_core::serde::protobuf::{
Expand All @@ -39,8 +40,7 @@ use datafusion::physical_plan::ExecutionPlan;
use datafusion_proto::logical_plan::AsLogicalPlan;
use datafusion_proto::physical_plan::AsExecutionPlan;
use log::{debug, error, info, trace, warn};
use rand::distributions::Alphanumeric;
use rand::{thread_rng, Rng};
use rand::{rng, Rng};
use std::collections::{HashMap, HashSet};
use std::ops::Deref;
use std::sync::Arc;
Expand Down Expand Up @@ -644,7 +644,7 @@ impl<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan> TaskManager<T, U>

/// Generate a new random Job ID
pub fn generate_job_id(&self) -> String {
let mut rng = thread_rng();
let mut rng = rng();
std::iter::repeat(())
.map(|()| rng.sample(Alphanumeric))
.map(char::from)
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
[package]
name = "ballista-benchmarks"
description = "Ballista Benchmarks"
version = "44.0.0"
version = "45.0.0"
edition = "2021"
authors = ["Apache DataFusion <[email protected]>"]
homepage = "https://github.com/apache/arrow-ballista"
Expand All @@ -32,7 +32,7 @@ default = ["mimalloc"]
snmalloc = ["snmalloc-rs"]

[dependencies]
ballista = { path = "../ballista/client", version = "44.0.0" }
ballista = { path = "../ballista/client", version = "45.0.0" }
datafusion = { workspace = true }
datafusion-proto = { workspace = true }
env_logger = { workspace = true }
Expand All @@ -51,4 +51,4 @@ tokio = { version = "^1.0", features = [
] }

[dev-dependencies]
ballista-core = { path = "../ballista/core", version = "44.0.0" }
ballista-core = { path = "../ballista/core", version = "45.0.0" }
2 changes: 1 addition & 1 deletion benchmarks/src/bin/tpch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ async fn loadtest_ballista(opt: BallistaLoadtestOpt) -> Result<()> {
let query_id = query_list_clone
.get(
(0..query_list_clone.len())
.choose(&mut rand::thread_rng())
.choose(&mut rand::rng())
.unwrap(),
)
.unwrap();
Expand Down
10 changes: 5 additions & 5 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
[package]
name = "ballista-examples"
description = "Ballista usage examples"
version = "44.0.0"
version = "45.0.0"
homepage = "https://github.com/apache/arrow-ballista"
repository = "https://github.com/apache/arrow-ballista"
authors = ["Apache DataFusion <[email protected]>"]
Expand All @@ -33,10 +33,10 @@ path = "examples/standalone-sql.rs"
required-features = ["ballista/standalone"]

[dependencies]
ballista = { path = "../ballista/client", version = "44.0.0" }
ballista-core = { path = "../ballista/core", version = "44.0.0" }
ballista-executor = { path = "../ballista/executor", version = "44.0.0", default-features = false }
ballista-scheduler = { path = "../ballista/scheduler", version = "44.0.0", default-features = false }
ballista = { path = "../ballista/client", version = "45.0.0" }
ballista-core = { path = "../ballista/core", version = "45.0.0" }
ballista-executor = { path = "../ballista/executor", version = "45.0.0", default-features = false }
ballista-scheduler = { path = "../ballista/scheduler", version = "45.0.0", default-features = false }
datafusion = { workspace = true }
env_logger = { workspace = true }
log = { workspace = true }
Expand Down

0 comments on commit 51bd5bb

Please sign in to comment.