Skip to content

Commit

Permalink
cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guoying06 committed Jan 8, 2025
1 parent 5a00013 commit 40c6ff6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
4 changes: 1 addition & 3 deletions native-engine/blaze-serde/src/from_proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1144,9 +1144,7 @@ pub fn parse_protobuf_partitioning(
))
})?;
match plan {
RepartitionType::SingleRepartition(..) => {
Ok(Some(Partitioning::SinglePartitioning()))
}
RepartitionType::SingleRepartition(..) => Ok(Some(Partitioning::SinglePartitioning())),
RepartitionType::HashRepartition(hash_part) => {
// let hash_part = p.hash_repartition;
let expr = hash_part
Expand Down
17 changes: 12 additions & 5 deletions native-engine/datafusion-ext-plans/src/rss_shuffle_writer_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,18 @@ use std::{any::Any, fmt::Debug, sync::Arc};

use async_trait::async_trait;
use blaze_jni_bridge::{jni_call_static, jni_new_global_ref, jni_new_string};
use datafusion::{arrow::datatypes::SchemaRef, error::{DataFusionError, Result}, execution::context::TaskContext, physical_expr::EquivalenceProperties, physical_plan::{
metrics::{ExecutionPlanMetricsSet, MetricsSet},
DisplayAs, DisplayFormatType, ExecutionMode, ExecutionPlan, PlanProperties,
SendableRecordBatchStream, Statistics,
}, physical_plan};
use datafusion::{
arrow::datatypes::SchemaRef,
error::{DataFusionError, Result},
execution::context::TaskContext,
physical_expr::EquivalenceProperties,
physical_plan,
physical_plan::{
metrics::{ExecutionPlanMetricsSet, MetricsSet},
DisplayAs, DisplayFormatType, ExecutionMode, ExecutionPlan, PlanProperties,
SendableRecordBatchStream, Statistics,
},
};
use once_cell::sync::OnceCell;

use crate::{
Expand Down
4 changes: 1 addition & 3 deletions native-engine/datafusion-ext-plans/src/shuffle/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ impl Partitioning {
pub fn partition_count(&self) -> usize {
use Partitioning::*;
match self {
RoundRobinPartitioning(n)
| HashPartitioning(_, n)
| RangePartitioning(_, n, _) => *n,
RoundRobinPartitioning(n) | HashPartitioning(_, n) | RangePartitioning(_, n, _) => *n,
SinglePartitioning() => 1,
}
}
Expand Down
16 changes: 11 additions & 5 deletions native-engine/datafusion-ext-plans/src/shuffle_writer_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ use std::{any::Any, fmt::Debug, sync::Arc};

use arrow::datatypes::SchemaRef;
use async_trait::async_trait;
use datafusion::{error::Result, execution::context::TaskContext, physical_expr::{expressions::Column, EquivalenceProperties, PhysicalSortExpr}, physical_plan::{
metrics::{ExecutionPlanMetricsSet, MetricsSet},
DisplayAs, DisplayFormatType, ExecutionMode, ExecutionPlan, PlanProperties,
SendableRecordBatchStream, Statistics,
}, physical_plan};
use datafusion::{
error::Result,
execution::context::TaskContext,
physical_expr::{expressions::Column, EquivalenceProperties, PhysicalSortExpr},
physical_plan,
physical_plan::{
metrics::{ExecutionPlanMetricsSet, MetricsSet},
DisplayAs, DisplayFormatType, ExecutionMode, ExecutionPlan, PlanProperties,
SendableRecordBatchStream, Statistics,
},
};
use datafusion_ext_commons::df_execution_err;
use once_cell::sync::OnceCell;

Expand Down

0 comments on commit 40c6ff6

Please sign in to comment.