Skip to content

Commit

Permalink
change the fallback condition for Columnar Like (oap-project#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo committed Nov 26, 2021
1 parent e19fe19 commit 9902d24
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,11 @@ class ColumnarLike(left: Expression, right: Expression, original: Expression)

def buildCheck(): Unit = {
if (original.asInstanceOf[Like].escapeChar.toString.nonEmpty) {
throw new UnsupportedOperationException(
s"escapeChar is not supported in ColumnarLike")
val escapeChar = original.asInstanceOf[Like].escapeChar.toString
if (escapeChar != "\\") {
throw new UnsupportedOperationException(
s"escapeChar $escapeChar is not supported in ColumnarLike")
}
}
if (!right.isInstanceOf[Literal]) {
throw new UnsupportedOperationException(
Expand Down

0 comments on commit 9902d24

Please sign in to comment.