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

run JavaSparkSQLExample failed with Exception.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 3.0.1, 3.1.1
    • None
    • Examples
    • None

    Description

      run JavaSparkSQLExample failed with Exception.

      The Exception is thrown  in function runDatasetCreationExample, when execute ‘spark.read().json(path).as(personEncoder)’.

      The exception is  'Exception in thread "main" org.apache.spark.sql.AnalysisException: Cannot up cast `age` from bigint to int.'

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zengrui zengrui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: