Skip to content

Commit

Permalink
fix the OperatorType
Browse files Browse the repository at this point in the history
fix the OperatorType
  • Loading branch information
RemHero committed Jan 19, 2023
1 parent bd62227 commit 73e0d8d
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,22 @@ public enum OperatorType {
ShowTimeSeries(20),
Migration,

//isNeedBroadcasting[30,39]
Delete(30),
Insert,

// BinaryOperator[40,49]
Join(40),
// BinaryOperator[30,39]
Join(30),
Union,
InnerJoin,
OuterJoin,
CrossJoin,


// isUnaryOperator >= 50
Binary(50),
// isUnaryOperator >= 40
Binary(40),
Unary,
Delete,
Insert,
Multiple,
Project,
Select,
Union,
Sort,
Limit,
Downsample,
Expand Down Expand Up @@ -80,11 +78,11 @@ private static class OperatorTypeCounter
}

public static boolean isBinaryOperator(OperatorType op) {
return 40 < op.value && op.value < 49;
return op.value >= 30 && op.value <= 39;
}

public static boolean isUnaryOperator(OperatorType op) {
return op.value >= 50;
return op.value >= 40;
}

public static boolean isMultipleOperator(OperatorType op) {
Expand Down

0 comments on commit 73e0d8d

Please sign in to comment.