-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
executor: use const generics to optimize hash join #762
Conversation
Signed-off-by: MingjiHan <mjhan@bu.edu>
Signed-off-by: MingjiHan <mjhan@bu.edu>
Signed-off-by: MingjiHan <mjhan@bu.edu>
Signed-off-by: MingjiHan <mjhan@bu.edu>
Signed-off-by: Mingji Han <mjhan@bu.edu>
8386f4c
to
92c37c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
if matches!(self.node(op), Expr::Inner) { | ||
hash_join_operator!(self, JoinType::Inner, op, lkeys, rkeys, left, right) | ||
} else if matches!(self.node(op), Expr::LeftOuter) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use match
instead of if matches!
? (It's surprising that there's no clippy warning? 🤔)
BTW just a personal preference not a requirement: I would define the macro just here, and catch local variables directly without passing arguments. 🤪
Generate hash join code in the compilation time to avoid testing join types during the execution for every row.