Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/19664#discussion_r149565144
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
---
@@ -214,11 +215,13 @@ case class Invoke(
override def eval(input: InternalRow): Any =
throw new UnsupportedOperationException("Only code-generated
evaluation is supported.")
+ private lazy val encodedFunctionName =
TermName(functionName).encodedName.toString
--- End diff --
Since we use `Invoke` to access field(s) in object, this can be an issue. I
didn't found `StaticInvoke` used similarly. So it should be fine.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]