[ https://issues.apache.org/jira/browse/SPARK-30350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Takeshi Yamamuro resolved SPARK-30350. -------------------------------------- Fix Version/s: 3.0.0 Assignee: Kengo Seki Resolution: Fixed Resolved by [https://github.com/apache/spark/pull/27005|https://github.com/apache/spark/pull/27005#pullrequestreview-336522702] > Fix ScalaReflection to use an empty array for getting its class object > ---------------------------------------------------------------------- > > Key: SPARK-30350 > URL: https://issues.apache.org/jira/browse/SPARK-30350 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.0.0 > Reporter: Kengo Seki > Assignee: Kengo Seki > Priority: Trivial > Fix For: 3.0.0 > > > {{o.a.s.sql.catalyst.ScalaReflection.arrayClassFor()}} uses > {{java.lang.reflect.Array.newInstance()}} to get the class object of an array > as follows, but a zero-length array is enough for that purpose. > {code} > java.lang.reflect.Array.newInstance(elementType, 1).getClass > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org