Skip to content

Commit

Permalink
Check and simplify hash-join logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpulver authored and andrewseidl committed Jul 19, 2021
1 parent f4f962e commit 88f2451
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions QueryEngine/JoinHashTable/HashJoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,7 @@ InnerOuter normalize_column_pair(const Analyzer::Expr* lhs,
auto outer_ti = lhs_ti;
auto inner_ti = rhs_ti;
const Analyzer::Expr* outer_expr{lhs};
if ((!lhs_col || (rhs_col && lhs_col->get_rte_idx() < rhs_col->get_rte_idx())) &&
(!rhs_col || (!lhs_col || lhs_col->get_rte_idx() < rhs_col->get_rte_idx()))) {
if (!lhs_col || (rhs_col && lhs_col->get_rte_idx() < rhs_col->get_rte_idx())) {
inner_col = rhs_col;
outer_col = lhs_col;
} else {
Expand Down

0 comments on commit 88f2451

Please sign in to comment.