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

run JavaSQLDataSourceExample failed with Exception in runBasicDataSourceExample().

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.1, 3.1.1
    • 3.0.3, 3.1.2, 3.2.0
    • Examples
    • None

    Description

      run JavaSparkSQLExample failed with Exception in runBasicDataSourceExample().

      when excecute 'peopleDF.write().partitionBy("favorite_color").bucketBy(42,"name").saveAsTable("people_partitioned_bucketed");'

      throws Exception: 'Exception in thread "main" org.apache.spark.sql.AnalysisException: partition column favorite_color is not defined in table people_partitioned_bucketed, defined table columns are: age, name;'

      Attachments

        Issue Links

          Activity

            People

              zengrui zengrui
              zengrui zengrui
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: