Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19305

Index alive after drop indexed column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0
    • sql

    Description

      In documentation I see: "If the column was indexed, the index has to be dropped manually in advance by using the 'DROP INDEX' command." But it seems like an alpha version limitation.

      Unable to create index with the same name after dropping indexed column:

      create table tindex(
      id int primary key,
      v1 int, 
      v2 int);
      create index titest on tindex(v1, v2)
      alter table tindex drop column v1;
      create index titest on tindex(v2);

      error:

      [Code: 0, SQL State: 50000]  Exception while executing query [query=create index titest on tindex(v2)]. Error message:IGN-SQL-17 TraceId:5f61df67-cc61-4eb1-98be-3bbaa25a7c44 IGN-SQL-17 TraceId:5f61df67-cc61-4eb1-98be-3bbaa25a7c44 Index already exists [name="PUBLIC"."TITEST"]

      Expected behaviour:

      1) index titest drop while dropping v1 columnd

      2) index titest successfully created on the last DDL operation.

      Attachments

        Issue Links

          Activity

            People

              xtern Pavel Pereslegin
              Berkov Alexander Belyak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m