Apache DataFusion SQL Query Engine
ARROW-10710: [Rust] Revert tokio upgrade, go back to 0.2
Andrew Lambf9f9e8390cba
diff --git a/rust/benchmarks/Cargo.toml b/rust/benchmarks/Cargo.tomlindex 762461ee80..7d7b6c9734 100644--- a/rust/benchmarks/Cargo.toml+++ b/rust/benchmarks/Cargo.toml@@ -30,5 +30,5 @@ arrow = { path = "../arrow" }parquet = { path = "../parquet" }datafusion = { path = "../datafusion" }structopt = { version = "0.3", default-features = false }-tokio = { version = "0.3", features = ["macros", "rt", "rt-multi-thread"] }+tokio = { version = "0.2", features = ["macros", "rt-core", "rt-threaded"] }futures = "0.3"diff --git a/rust/datafusion/Cargo.toml b/rust/datafusion/Cargo.tomlindex db72bcace5..52a4ef01cc 100644--- a/rust/datafusion/Cargo.toml+++ b/rust/datafusion/Cargo.toml@@ -57,7 +57,7 @@ chrono = "0.4"async-trait = "0.1.41"futures = "0.3"pin-project-lite= "^0.2.0"-tokio = { version = "0.3", features = ["macros", "rt", "rt-multi-thread"] }+tokio = { version = "0.2", features = ["macros", "rt-core", "rt-threaded"] }[dev-dependencies]rand = "0.7"diff --git a/rust/datafusion/benches/aggregate_query_sql.rs b/rust/datafusion/benches/aggregate_query_sql.rsindex d6957808bd..54741043fd 100644--- a/rust/datafusion/benches/aggregate_query_sql.rs+++ b/rust/datafusion/benches/aggregate_query_sql.rs@@ -41,7 +41,7 @@ use datafusion::error::Result;use datafusion::execution::context::ExecutionContext;fn query(ctx: Arc<Mutex<ExecutionContext>>, sql: &str) {- let rt = Runtime::new().unwrap();+ let mut rt = Runtime::new().unwrap();// execute the querylet df = ctx.lock().unwrap().sql(&sql).unwrap();diff --git a/rust/datafusion/benches/math_query_sql.rs b/rust/datafusion/benches/math_query_sql.rsindex 7e82dff760..65f613b6cd 100644--- a/rust/datafusion/benches/math_query_sql.rs+++ b/rust/datafusion/benches/math_query_sql.rs@@ -37,7 +37,7 @@ use datafusion::datasource::MemTable;use datafusion::execution::context::ExecutionContext;fn query(ctx: Arc<Mutex<ExecutionContext>>, sql: &str) {- let rt = Runtime::new().unwrap();+ let mut rt = Runtime::new().unwrap();// execute the querylet df = ctx.lock().unwrap().sql(&sql).unwrap();diff --git a/rust/datafusion/benches/sort_limit_query_sql.rs b/rust/datafusion/benches/sort_limit_query_sql.rsindex 3c8fa91dd5..f67c1f729f 100644--- a/rust/datafusion/benches/sort_limit_query_sql.rs+++ b/rust/datafusion/benches/sort_limit_query_sql.rs@@ -33,7 +33,7 @@ use datafusion::execution::context::ExecutionContext;use tokio::runtime::Runtime;fn query(ctx: Arc<Mutex<ExecutionContext>>, sql: &str) {- let rt = Runtime::new().unwrap();+ let mut rt = Runtime::new().unwrap();// execute the querylet df = ctx.lock().unwrap().sql(&sql).unwrap();@@ -67,7 +67,7 @@ fn create_context() -> Arc<Mutex<ExecutionContext>> {).unwrap();- let rt = Runtime::new().unwrap();+ let mut rt = Runtime::new().unwrap();let ctx_holder: Arc<Mutex<Vec<Arc<Mutex<ExecutionContext>>>>> =Arc::new(Mutex::new(vec![]));