This is an automated email from the ASF dual-hosted git repository.
philo-he pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gluten.git
The following commit(s) were added to refs/heads/main by this push:
new 60ce4f880f [VL] Skip escape argument when offloading `Like`
expressions without backslashes (#12152)
60ce4f880f is described below
commit 60ce4f880fd5dee42523b1ec91d9af8dc53516d7
Author: Zhu, Lipeng <[email protected]>
AuthorDate: Thu Jun 4 13:59:31 2026 +0800
[VL] Skip escape argument when offloading `Like` expressions without
backslashes (#12152)
---
.../gluten/backendsapi/velox/VeloxSparkPlanExecApi.scala | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git
a/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxSparkPlanExecApi.scala
b/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxSparkPlanExecApi.scala
index 5f1003689d..ef25171e6d 100644
---
a/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxSparkPlanExecApi.scala
+++
b/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxSparkPlanExecApi.scala
@@ -263,10 +263,15 @@ class VeloxSparkPlanExecApi extends SparkPlanExecApi with
Logging {
left: ExpressionTransformer,
right: ExpressionTransformer,
original: Like): ExpressionTransformer = {
- GenericExpressionTransformer(
- substraitExprName,
- Seq(left, right, LiteralTransformer(original.escapeChar)),
- original)
+ original match {
+ case Like(_, r: Literal, '\\') if !r.value.toString.contains('\\') =>
+ GenericExpressionTransformer(substraitExprName, Seq(left, right),
original)
+ case _ =>
+ GenericExpressionTransformer(
+ substraitExprName,
+ Seq(left, right, LiteralTransformer(original.escapeChar)),
+ original)
+ }
}
/** Transform make_timestamp to Substrait. */
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]