You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2016/03/29 03:05:25 UTC

[jira] [Commented] (SPARK-14224) Cannot project all columns from a table with ~1,100 columns

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

Reynold Xin commented on SPARK-14224:
-------------------------------------

The Parquet file used for this query can be found in SPARK-14223 (although this is trivial to reproduce without the data file).


> Cannot project all columns from a table with ~1,100 columns
> -----------------------------------------------------------
>
>                 Key: SPARK-14224
>                 URL: https://issues.apache.org/jira/browse/SPARK-14224
>             Project: Spark
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Hossein Falaki
>
> I created a temporary table from 1000 genomes dataset and cached it. When I try select all columns for even a single row I get following exception. Setting and unsetting {{spark.sql.codegen.wholeStage}} and {{spark.sql.codegen}} has no effect. 
> {code}
> val vcfData = sqlContext.read.format("csv").options(Map(
>   "comment" -> "#", "header" -> "false", "delimiter" -> "\t"
> )).load("/1000genomes/phase1/analysis_results/integrated_call_sets/ALL.chr1.integrated_phase1_v3.20101123.snps_indels_svs.genotypes.vcf")
> vcfData.registerTempTable("genomesTable")
> %sql select * from genomesTable
> Error in SQL statement: RuntimeException: Error while decoding: java.util.concurrent.ExecutionException: java.lang.Exception: failed to compile: org.codehaus.janino.JaninoRuntimeException: Code of method "(Ljava/lang/Object;)Ljava/lang/Object;" of class "org.apache.spark.sql.catalyst.expressions.GeneratedClass$SpecificSafeProjection" grows beyond 64 KB
> /* 001 */ 
> /* 002 */ public java.lang.Object generate(Object[] references) {
> /* 003 */   return new SpecificSafeProjection(references);
> {code}
> cc [~rxin] 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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