You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by "A.M.Chan" <ka...@163.com> on 2015/04/14 13:34:44 UTC

SQL: Type mismatch when using codegen

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


JIRA: https://issues.apache.org/jira/browse/SPARK-6899





--

A.M.Chan