From 81427eaf820093f628a09686b7961109975ab712 Mon Sep 17 00:00:00 2001 From: Yichen Wang <18348405+Aiee@users.noreply.github.com> Date: Tue, 19 Oct 2021 18:09:16 +0800 Subject: [PATCH] Remove unnecessary check (#3112) Co-authored-by: cpw <13495049+CPWstatic@users.noreply.github.com> Co-authored-by: Yee <2520865+yixinglu@users.noreply.github.com> --- src/graph/optimizer/rule/UnionAllIndexScanBaseRule.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/graph/optimizer/rule/UnionAllIndexScanBaseRule.cpp b/src/graph/optimizer/rule/UnionAllIndexScanBaseRule.cpp index 2333ba672f4..ee32b926897 100644 --- a/src/graph/optimizer/rule/UnionAllIndexScanBaseRule.cpp +++ b/src/graph/optimizer/rule/UnionAllIndexScanBaseRule.cpp @@ -32,7 +32,7 @@ namespace nebula { namespace opt { // The matched expression should be either a OR expression or an expression that could be -// rewrote to a OR expression. There are 3 senarios. +// rewrote to a OR expression. There are 3 scenarios. // // 1. OR expr. If OR expr has an IN expr operand that has a valid index, expand it to OR expr. // @@ -162,8 +162,7 @@ StatusOr UnionAllIndexScanBaseRule::transform(OptContext* ctx, break; } - DCHECK(transformedExpr->kind() == ExprKind::kLogicalOr || - transformedExpr->kind() == ExprKind::kRelEQ); + DCHECK(transformedExpr->kind() == ExprKind::kLogicalOr); std::vector idxCtxs; auto logicalExpr = static_cast(transformedExpr); for (auto operand : logicalExpr->operands()) {