Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2132

False error dropping a column if it's renamed to the old name of a primary key column in the same alter as the primary key is renamed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0
    • master
    • None

    Description

      We ran into the following situation in the attached randomized alter test log:

      Two columns 'a' and 'b', 'a' is a primary key column. In the same alter table request,
      1. Rename 'a' to 'c'
      2. Rename 'b' to 'a'
      3. Drop 'a'
      In step 3, 'a' is not a primary key column and can be dropped; however, we err and reject the alter saying a primary key column cannot be dropped.

      Attachments

        1. alter_table-randomized-test.txt
          1.45 MB
          Adar Dembo

        Activity

          People

            wdberkeley William Berkeley
            adar Adar Dembo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: