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

Error message for discovered conflicting partition columns is not intuitive

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 1.3.1, 1.4.0
    • Fix Version/s: 1.5.0
    • Component/s: SQL
    • Labels:
      None

      Description

      For data stored as a Hive-style partitioned table, data files should only live in leaf partition directories.

      For example, the following directory layout is illegal:

      .
      ├── _SUCCESS
      ├── b=0
      │   ├── c=0
      │   │   └── part-r-00004.gz.parquet
      │   └── part-r-00004.gz.parquet
      └── b=1
          ├── c=1
          │   └── part-r-00008.gz.parquet
          └── part-r-00008.gz.parquet
      

      For now, we give an unintuitive error message like this:

      Conflicting partition column names detected:
       ArrayBuffer(b, c)
      ArrayBuffer(b)
      

      This should be improved.

        Attachments

          Activity

            People

            • Assignee:
              lian cheng Cheng Lian
              Reporter:
              lian cheng Cheng Lian
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: