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

Reynold Xin updated SPARK-6899:
-------------------------------
    Description: 
When I run tests in DataFrameSuite with codegen on, some type mismatched error 
occured.

{code}
test("average") {
    checkAnswer(
      decimalData.agg(avg('a)),
      Row(new java.math.BigDecimal(2.0)))
  }

type mismatch;
 found   : Int(0)
 required: org.apache.spark.sql.types.DecimalType#JvmType
{code}

The original problem I think comes from GenerateMutableProjection.

  was:
When I run tests in DataFrameSuite with codegen on, some type mismatched error 
occured.
test("average") {
    checkAnswer(
      decimalData.agg(avg('a)),
      Row(new java.math.BigDecimal(2.0)))
  }

type mismatch;
 found   : Int(0)
 required: org.apache.spark.sql.types.DecimalType#JvmType


The original problem I think comes from GenerateMutableProjection.


> Type mismatch when using codegen
> --------------------------------
>
>                 Key: SPARK-6899
>                 URL: https://issues.apache.org/jira/browse/SPARK-6899
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.3.0
>            Reporter: Chen Song
>
> When I run tests in DataFrameSuite with codegen on, some type mismatched 
> error occured.
> {code}
> test("average") {
>     checkAnswer(
>       decimalData.agg(avg('a)),
>       Row(new java.math.BigDecimal(2.0)))
>   }
> type mismatch;
>  found   : Int(0)
>  required: org.apache.spark.sql.types.DecimalType#JvmType
> {code}
> The original problem I think comes from GenerateMutableProjection.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to