Skip to content

Commit

Permalink
Use BuildSide enum
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed May 30, 2024
1 parent 82d8d13 commit d41a68e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/execution/datafusion/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ use crate::{
agg_expr::ExprStruct as AggExprStruct, expr::ExprStruct, literal::Value, AggExpr, Expr,
ScalarFunc,
},
spark_operator::{operator::OpStruct, JoinType, Operator},
spark_operator::{operator::OpStruct, BuildSide, JoinType, Operator},
spark_partitioning::{partitioning::PartitioningStruct, Partitioning as SparkPartitioning},
},
};
Expand Down Expand Up @@ -981,7 +981,7 @@ impl PhysicalPlanner {
)?);

// If the hash join is build right, we need to swap the left and right
let hash_join = if join.build_side == 0 {
let hash_join = if join.build_side == BuildSide::BuildLeft {
hash_join
} else {
swap_hash_join(hash_join.as_ref(), PartitionMode::Partitioned)?
Expand Down

0 comments on commit d41a68e

Please sign in to comment.