Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-1802

Carbon1.3.0 Alter:Alter query fails if a column is dropped and there is no key column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • None
    •   3 Node ant cluster

    Description

      Carbon1.3.0 Alter:Alter query fails if a column is dropped and there is no key column.

      Steps:
      1: create table ttt(c int,d int,e int) stored by 'carbondata';
      2: Alter table ttt drop columns(c);
      3: observe that below error is coming:
      Error: java.lang.RuntimeException: Alter table drop column operation failed: Alter drop operation failed. AtLeast one key column should exist after drop.

      Expected: Since user is able to create a table with all numeric columns, Same should be supported in Alter feature.

      Attachments

        Issue Links

          Activity

            People

              dhatchayani dhatchayani
              a00408367 Ajeet Rai
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 1h 10m
                  1h 10m