You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:13:24 UTC

[jira] [Resolved] (SPARK-17565) Janino exception when calculating metrics for large generated class

     [ https://issues.apache.org/jira/browse/SPARK-17565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-17565.
----------------------------------
    Resolution: Incomplete

> Janino exception when calculating metrics for large generated class
> -------------------------------------------------------------------
>
>                 Key: SPARK-17565
>                 URL: https://issues.apache.org/jira/browse/SPARK-17565
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Marcelo Vanzin
>            Priority: Minor
>              Labels: bulk-closed
>         Attachments: generated_code.txt
>
>
> This was found when investigating SPARK-17549:
> {noformat}
> Caused by: java.lang.IndexOutOfBoundsException: Index: 63235, Size: 1
>         at java.util.ArrayList.rangeCheck(ArrayList.java:635)
>         at java.util.ArrayList.get(ArrayList.java:411)
>         at org.codehaus.janino.util.ClassFile.getConstantPoolInfo(ClassFile.java:556)
>         at org.codehaus.janino.util.ClassFile.getConstantUtf8(ClassFile.java:572)
>         at org.codehaus.janino.util.ClassFile.loadAttribute(ClassFile.java:1513)
>         at org.codehaus.janino.util.ClassFile.loadAttributes(ClassFile.java:644)
>         at org.codehaus.janino.util.ClassFile.loadFields(ClassFile.java:623)
>         at org.codehaus.janino.util.ClassFile.<init>(ClassFile.java:280)
>         at org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator$$anonfun$recordCompilationStats$1.apply(CodeGenerator.scala:913)
>         at org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator$$anonfun$recordCompilationStats$1.apply(CodeGenerator.scala:911)
>         at scala.collection.Iterator$class.foreach(Iterator.scala:893)
>         at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
>         at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
>         at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
>         at org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator$.recordCompilationStats(CodeGenerator.scala:911)
>         at org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator$.org$apache$spark$sql$catalyst$expressions$codegen$CodeGenerator$$doCompile(CodeGenerator.scala:883)
>         ... 54 more
> {noformat}
> Attaching file with full driver-side exception, which includes the generated code (which is huge).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org