[
https://issues.apache.org/jira/browse/SPARK-35886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun resolved SPARK-35886.
-----------------------------------
Fix Version/s: 3.1.3
3.2.0
Assignee: L. C. Hsieh
Resolution: Fixed
> 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.0.3, 3.1.2, 3.2.0
> Reporter: Yuming Wang
> Assignee: L. C. Hsieh
> Priority: Major
> Fix For: 3.2.0, 3.1.3
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]