Uploaded image for project: 'Apache HAWQ (Retired)'
  1. Apache HAWQ (Retired)
  2. HAWQ-361

Data loss when alter partition table by add two column in one time.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • None
    • 2.0.0.0-incubating
    • DDL
    • None

    Description

      CREATE TABLE part_1 (a int, b int, c int)
      WITH (appendonly=true, compresslevel=5)
      partition by range (a)
      (
           partition b start (1) end (50) every (1)
      );
      insert into part_1 values(1,1,1);
      
      select * from part_1;
       a | b | c
      ---+---+---
       1 | 1 | 1
      (1 row)
      
      alter table part_1 add column p int default 3,add column q int default 4;
      
      select * from part_1;
       a | b | c | p | q
      ---+---+---+---+---
      (0 rows)
      

      When I check hdfs file, I find the size of new hdfs files is 0, which means the data loss when alter the table and create new file for it.

      Attachments

        Issue Links

          Activity

            People

              lei_chang Lei Chang
              doli Dong Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: