minni31 commented on code in PR #13229:
URL: https://github.com/apache/gluten/pull/13229#discussion_r4598688561
##########
backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxSparkPlanExecApi.scala:
##########
@@ -1442,6 +1474,39 @@ class VeloxSparkPlanExecApi extends SparkPlanExecApi
with Logging {
expr: Expression,
attributeSeq: Seq[Attribute]): Option[ExpressionTransformer] = {
expr match {
+ case SparkRightShape(str, len, original) =>
+ // `substraitExprName` is the outer `if`. If any function in Spark's
replacement or in the
+ // converted expression is blacklisted, keep Spark's replacement,
which Gluten converts or
+ // falls back as usual.
+ val blacklist = GlutenConfig.get.expressionBlacklist
+ val usedFunctions =
+ Seq(
+ substraitExprName,
+ ExpressionNames.RIGHT,
+ ExpressionNames.IS_NULL,
+ ExpressionNames.SUBSTRING)
Review Comment:
Confirmed: the backend shortcut bypassed normal checks for UnaryMinus
(negative) and LessThanOrEqual (lte). Fixed in 64fd38b1b by adding both
blacklist guards and extending the existing regression. Formatting, license
headers, and whitespace checks passed. Compilation and Spark runtime tests were
not run locally; fresh CI is still required.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]