Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
change the fallback condition for Columnar Like (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo authored Nov 16, 2021
1 parent 98902ef commit 41bb4f2
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 41bb4f2

Please sign in to comment.