Skip to content

Commit

Permalink
Fix comet condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiewior committed Jul 26, 2024
1 parent 4e51ad5 commit ea12b1f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ object ExtractRangeJoinKeysWithEquality extends Logging with PredicateHelper {
condition.head match {
case And(And(EqualTo(l3, r3), LessThanOrEqual(l1, g1)), LessThanOrEqual(l2, g2)) =>
val rangeJoinKeys = getKeys(l1, l2, g1, g2, l3, r3, left, right)
Some((joinType, rangeJoinKeys, left, right, condition))
Some((joinType, rangeJoinKeys, left, right, Some(And(LessThanOrEqual(l1, g1), LessThanOrEqual(l2, g2)) ) ) )
case And(And(EqualTo(l3, r3), GreaterThanOrEqual(g1, l1)), LessThanOrEqual(l2, g2)) =>
Some((joinType,
getKeys(l1, l2, g1, g2, l3, r3, left, right),
left, right,condition))
left, right, Some(And(GreaterThanOrEqual(g1, l1), LessThanOrEqual(l2, g2)) ) ) )
case And(And(EqualTo(l3, r3), LessThanOrEqual(l1, g1)), GreaterThanOrEqual(g2, l2)) =>
Some((joinType,
getKeys(l1, l2, g1, g2, l3, r3, left, right),
left, right, condition))
left, right, Some( And( LessThanOrEqual(l1, g1), GreaterThanOrEqual(g2, l2)))))
case And(And(EqualTo(l3, r3), GreaterThanOrEqual(g1, l1)), GreaterThanOrEqual(g2, l2)) =>
Some((joinType,
getKeys(l1, l2, g1, g2, l3, r3, left, right),
left, right, condition))
left, right, Some(And(GreaterThanOrEqual(g1, l1), GreaterThanOrEqual(g2, l2)))))
case _ => None
}
} else {
Expand Down

0 comments on commit ea12b1f

Please sign in to comment.