Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6899

Type mismatch when using codegen

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • SQL
    • None

    Description

      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
      

      Attachments

        Activity

          People

            viirya L. C. Hsieh
            smacat Chen Song
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: