[ https://issues.apache.org/jira/browse/SPARK-43099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-43099. --------------------------------- Fix Version/s: 3.5.0 Resolution: Fixed Issue resolved by pull request 40747 [https://github.com/apache/spark/pull/40747] > `Class.getCanonicalName` return null for anonymous class on JDK15+, impacting > function registry > ----------------------------------------------------------------------------------------------- > > Key: SPARK-43099 > URL: https://issues.apache.org/jira/browse/SPARK-43099 > Project: Spark > Issue Type: Bug > Components: Spark Core > Affects Versions: 3.4.0 > Reporter: Alex Jing > Priority: Major > Fix For: 3.5.0 > > > On JDK15+, lambda and method references are implemented using hidden classes > ([https://openjdk.org/jeps/371)] According to the JEP, > {quote}{{Class::getCanonicalName}} returns {{{}null{}}}, indicating the > hidden class has no canonical name. (Note that the {{Class}} object for an > anonymous class in the Java language has the same behavior.) > {quote} > This means > [https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala#L53] > will always be null. > > This can be fixed by replacing `getCanonicalName` with `getName` > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org