Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Jan 27, 2025
1 parent 484a5f8 commit 65d54e1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/stream/src/from_proto/hash_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl<S: StateStore> HashKeyDispatcher for HashJoinExecutorDispatcherArgs<S> {
/// This macro helps to fill the const generic type parameter.
macro_rules! build {
($join_type:ident) => {
Ok(HashJoinExecutor::<K, S, { JoinType::$join_type }>::new(
HashJoinExecutor::<K, S, { JoinType::$join_type }>::new(
self.ctx,
self.info,
self.source_l,
Expand All @@ -219,10 +219,10 @@ impl<S: StateStore> HashKeyDispatcher for HashJoinExecutorDispatcherArgs<S> {
self.chunk_size,
self.high_join_amplification_threshold,
)
.boxed())
.boxed()
};
}
match self.join_type_proto {
let executor = match self.join_type_proto {
JoinTypeProto::AsofInner
| JoinTypeProto::AsofLeftOuter
| JoinTypeProto::Unspecified => unreachable!(),
Expand All @@ -234,7 +234,8 @@ impl<S: StateStore> HashKeyDispatcher for HashJoinExecutorDispatcherArgs<S> {
JoinTypeProto::LeftAnti => build!(LeftAnti),
JoinTypeProto::RightSemi => build!(RightSemi),
JoinTypeProto::RightAnti => build!(RightAnti),
}
};
Ok(executor)
}

fn data_types(&self) -> &[DataType] {
Expand Down

0 comments on commit 65d54e1

Please sign in to comment.