Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5208

Add a test case of "ALTER TABLE DROP COLUMN IF EXISTS" with multiple columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Similar to PHOENIX-1614, ALTER TABLE DROP COLUMN IF EXISTS doesn't work as expected.

      Executing "ALTER TABLE DROP COLUMN IF EXISTS colAlreadyExists, colDoesNotExist", then nothing will be changed in the table because colDoesNotExist doesn't exists.

      The general expectation would be all non-existing columns in the statement will be just ignored.

       

      Unlike ALTER TABLE ADD IF NOT EXISTS (see PHOENIX-1614 for details), ALTER TABLE DROP COLUMN IF EXISTS works as expected. In this Jira, just add UT code for "ALTER TABLE DROP COLUMN IF EXISTS" with multiple columns.

      Attachments

        1. PHOENIX-5208.master.v1.patch
          3 kB
          Toshihiro Suzuki

        Issue Links

          Activity

            People

              brfrn169 Toshihiro Suzuki
              brfrn169 Toshihiro Suzuki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: