Skip to content

Commit

Permalink
[hotfix][table] Added default branches to pattern matching to supress…
Browse files Browse the repository at this point in the history
… warnings
  • Loading branch information
dawidwys committed Oct 29, 2018
1 parent 62ecdb3 commit d23faa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ trait CommonMatchRecognize {
case AfterOption.SKIP_PAST_LAST_ROW => "SKIP PAST LAST ROW"
case AfterOption.SKIP_TO_NEXT_ROW => "SKIP TO NEXT ROW"
}
case _ => throw new IllegalStateException(s"Corrupted query tree. Unexpected $after for " +
s"after match strategy.")
}

private[flink] def matchToString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ private[flink] class PatternVisitor(
AfterMatchSkipStrategy.skipToFirst(getPatternTarget()).throwExceptionOnMiss()
case SqlKind.SKIP_TO_LAST =>
AfterMatchSkipStrategy.skipToLast(getPatternTarget()).throwExceptionOnMiss()
case _ => throw new IllegalStateException(s"Corrupted query tree. Unexpected " +
s"${logicalMatch.after} for after match strategy.")
}
}

Expand Down

0 comments on commit d23faa8

Please sign in to comment.