spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyukjin Kwon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-21337) SQL which has large ‘case when’ expressions may cause code generation beyond 64KB
Date Mon, 10 Jul 2017 01:47:02 GMT

    [ https://issues.apache.org/jira/browse/SPARK-21337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16079795#comment-16079795
] 

Hyukjin Kwon commented on SPARK-21337:
--------------------------------------

Probably, I think it would be nicer to narrow down via executing the query multiple times
after removing apparently unrelated parts. For example, I don't think we need many fields
to reproduce this problem.

> SQL which has large ‘case when’ expressions may cause code generation beyond 64KB
> ---------------------------------------------------------------------------------
>
>                 Key: SPARK-21337
>                 URL: https://issues.apache.org/jira/browse/SPARK-21337
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.1
>         Environment: spark-2.1.1-hadoop-2.6.0-cdh-5.4.2
>            Reporter: fengchaoge
>             Fix For: 2.1.1
>
>         Attachments: test1.JPG, test.JPG
>
>
> when there are large 'case when ' expressions in spark sql,the CodeGenerator failed to
compile it. 
> Error message is followed by a huge dump of generated source code,at last failed.
> java.util.concurrent.ExecutionException: java.lang.Exception: failed to compile: org.codehaus.janino.JaninoRuntimeException:
Code of method &quot;apply_9$(Lorg/apache/spark/sql/catalyst/expressions/GeneratedClass$SpecificUnsafeProjection;Lorg/apache/spark/sql/catalyst/InternalRow;)V&quot;
of class &quot;org.apache.spark.sql.catalyst.expressions.GeneratedClass$SpecificUnsafeProjection&quot;
grows beyond 64 KB.
> It seems that SPARK-13242 has solved this problem in spark-1.6.2,however it  apparence
in spark-2.1.1 again. https://issues.apache.org/jira/browse/SPARK-13242.
> is there something wrong ? 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message