jinchengchenghh commented on code in PR #9107:
URL: https://github.com/apache/incubator-gluten/pull/9107#discussion_r2010237697


##########
gluten-substrait/src/main/scala/org/apache/gluten/expression/ExpressionConverter.scala:
##########
@@ -109,6 +109,66 @@ object ExpressionConverter extends SQLConfHelper with 
Logging {
     }
   }
 
+  private def replaceStaticInvokeWithExpressionTransformer(
+      i: StaticInvoke,
+      attributeSeq: Seq[Attribute],
+      expressionsMap: Map[Class[_], String]): ExpressionTransformer = {
+    val objectName = i.staticObject.getName.stripSuffix("$")
+
+    if (objectName.endsWith("UrlCodec")) {

Review Comment:
   Please use this format to simplify the code, and easy to implement others
   ```
   val staticInvokeMap = Map("UrlCodec"-> Map("decode" -> 
ExpressionNames.URL_DECODE, "encode"-> ExpressionNames.URL_ENCODE ))
    val transformer = staticInvokeMap.filter(o => objectName.endsWith(o._1))
   if (transformer.isEmpty) {
         throw
       }
   ```



-- 
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]

Reply via email to