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

Drop partition command clean other partition dictionaries

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: sql
    • Labels:
      None

      Description

      1. CREATE TABLE droppartition (id STRING, sales STRING) PARTITIONED BY (dtm STRING)STORED AS carbondata

      2. insert into droppartition values ('01', '0', '20200907'),('03', '0', '20200908'),

      3. insert overwrite table droppartition partition (dtm=20200908) select * from droppartition where dtm = 20200907;
      insert overwrite table droppartition partition (dtm=20200909) select * from droppartition where dtm = 20200907;

      4. alter table droppartition drop partition (dtm=20200909)

      the dirctionary "20200908" was deleted.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              XingjunHao Xingjun Hao
            • 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 - 5h 20m
                5h 20m