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

Apache Spark reassigned SPARK-35886:
------------------------------------

    Assignee:     (was: Apache Spark)

> Codegen issue for decimal type
> ------------------------------
>
>                 Key: SPARK-35886
>                 URL: https://issues.apache.org/jira/browse/SPARK-35886
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> How to reproduce this issue:
> {code:scala}
> spark.sql(
>   """
>     |CREATE TABLE t1 (
>     |  c1 DECIMAL(18,6),
>     |  c2 DECIMAL(18,6),
>     |  c3 DECIMAL(18,6))
>     |USING parquet;
>     |""".stripMargin)
> spark.sql("SELECT sum(c1 * c3) + sum(c2 * c3) FROM t1").show
> {code}
> {noformat}
> 20:23:36.272 ERROR 
> org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator: failed to 
> compile: org.codehaus.commons.compiler.CompileException: File 
> 'generated.java', Line 56, Column 6: Expression "agg_exprIsNull_2_0" is not 
> an rvalue
> org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 
> 56, Column 6: Expression "agg_exprIsNull_2_0" is not an rvalue
>       at 
> org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:12675)
>       at 
> org.codehaus.janino.UnitCompiler.toRvalueOrCompileException(UnitCompiler.java:7676)
> {noformat}



--
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

Reply via email to