Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37935 Migrate onto error classes
  3. SPARK-40702

Confusing partition specs in PartitionsAlreadyExistException

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      The code below demonstrates the issue:
      ```
      > CREATE TABLE t (id bigint, data string) USING _ PARTITIONED BY (id);
      > ALTER TABLE t ADD PARTITION (id=2) LOCATION 'loc1';
      > ALTER TABLE t ADD PARTITION (id=1) LOCATION 'loc' PARTITION (id=2) LOCATION 'loc1';
      The following partitions already exists in table t:2 -> id
      ```

      Attachments

        Activity

          People

            maxgekk Max Gekk
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: