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

[NSE-207] change the fallback condition for Columnar Like #554

Merged
merged 1 commit into from
Nov 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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