diff --git a/crates/core/src/context.rs b/crates/core/src/context.rs index f3b078d..23e0a05 100644 --- a/crates/core/src/context.rs +++ b/crates/core/src/context.rs @@ -36,7 +36,7 @@ impl Context { &datafusion::common::ScalarValue::Boolean(Some(false)), ); - let _ = config.options_mut().extensions.insert(ext_config); + config.options_mut().extensions.insert(ext_config); config } diff --git a/crates/core/src/datastream.rs b/crates/core/src/datastream.rs index 687f9d6..c6dc690 100644 --- a/crates/core/src/datastream.rs +++ b/crates/core/src/datastream.rs @@ -2,7 +2,6 @@ use datafusion::common::runtime::SpawnedTask; use datafusion::logical_expr::LogicalPlan; use datafusion::physical_plan::ExecutionPlanProperties; use futures::StreamExt; -use log::debug; use log::info; use std::{sync::Arc, time::Duration}; use tokio::signal; @@ -229,7 +228,7 @@ impl DataStream { pub async fn print_physical_plan(self) -> Result { let (session_state, plan) = self.df.as_ref().clone().into_parts(); let physical_plan = self.df.as_ref().clone().create_physical_plan().await?; - let node_id = physical_plan.node_id(); + // let node_id = physical_plan.node_id(); let displayable_plan = DisplayableExecutionPlan::new(physical_plan.as_ref()); println!("{}", displayable_plan.indent(true)); diff --git a/crates/core/src/utils/serialization.rs b/crates/core/src/utils/serialization.rs index 2156f1c..4cfc411 100644 --- a/crates/core/src/utils/serialization.rs +++ b/crates/core/src/utils/serialization.rs @@ -296,8 +296,7 @@ mod tests { }; use arrow_schema::{Field, Fields}; use datafusion::{ - functions_aggregate::average::AvgAccumulator, logical_expr::Accumulator, - physical_expr::GroupsAccumulatorAdapter, scalar::ScalarValue, + functions_aggregate::average::AvgAccumulator, logical_expr::Accumulator, scalar::ScalarValue, }; use std::sync::Arc; diff --git a/py-denormalized/src/context.rs b/py-denormalized/src/context.rs index 78eccee..b9a2a8c 100644 --- a/py-denormalized/src/context.rs +++ b/py-denormalized/src/context.rs @@ -54,7 +54,7 @@ impl PyContext { pub fn new(py: Python) -> PyResult { let rt = &get_tokio_runtime(py).0; let fut: JoinHandle> = - rt.spawn(async move { Ok(Context::new()?) }); + rt.spawn(async move { Context::new() }); let context = wait_for_future(py, fut).map_err(py_denormalized_err)??;