Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
xudong963 committed Jun 1, 2022
1 parent 5811807 commit d9a47a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions query/src/sql/planner/binder/join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ impl<'a> Binder {
left_child: SExpr,
right_child: SExpr,
) -> Result<SExpr> {
if join_type == JoinType::CrossJoin {
if !left_conditions.is_empty() || !right_conditions.is_empty() {
return Err(ErrorCode::SemanticError(
"Join conditions should be empty in cross join",
));
}
if join_type == JoinType::CrossJoin
&& (!left_conditions.is_empty() || !right_conditions.is_empty())
{
return Err(ErrorCode::SemanticError(
"Join conditions should be empty in cross join",
));
}
let inner_join = LogicalJoin {
left_conditions,
Expand Down

0 comments on commit d9a47a3

Please sign in to comment.