[ https://issues.apache.org/jira/browse/CARBONDATA-663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anurag Srivastava updated CARBONDATA-663: ----------------------------------------- Description: I have set property *carbon.major.compaction.size= 3* and load data which is the size of 5 MB and when I perform compaction it compacted, but initially it shouldn't be perform. Here is the queries : *create table :* create table test_major_compaction(id Int,name string)stored by 'carbondata'; *Load Data :* Load two segments. LOAD DATA inpath 'hdfs://localhost:54310/sample_str_more1.csv' INTO table test_major_compaction options('DELIMITER'=',', 'FILEHEADER'='id, name','QUOTECHAR'='"'); *Show segments :* show segments for table test_major_compaction; !https://issues.apache.org/jira/secure/attachment/12848287/show_segment.png! *Alter Table :* ALTER TABLE test_major_compaction COMPACT 'MAJOR'; *Show segments :* Again see the segments : show segments for table test_major_compaction; !https://issues.apache.org/jira/secure/attachment/12848286/show_segments_after_compaction.png! I have attached all the data with the it. was: I have set property *carbon.major.compaction.size= 3* and load data which is the size of 5 MB and when I perform compaction it compacted, but initially it shouldn't be perform. Here is the queries : *create table :* create table test_major_compaction(id Int,name string)stored by 'carbondata'; *Load Data :* Load two segments. LOAD DATA inpath 'hdfs://localhost:54310/sample_str_more1.csv' INTO table test_major_compaction options('DELIMITER'=',', 'FILEHEADER'='id, name','QUOTECHAR'='"'); *Show segments :* show segments for table test_major_compaction; *Alter Table :* ALTER TABLE test_major_compaction COMPACT 'MAJOR'; *Show segments :* Again see the segments : show segments for table test_major_compaction; I have attached all the data with the it. > Major compaction is not woking properly > --------------------------------------- > > Key: CARBONDATA-663 > URL: https://issues.apache.org/jira/browse/CARBONDATA-663 > Project: CarbonData > Issue Type: Bug > Components: data-query > Affects Versions: 1.0.0-incubating > Environment: Spark - 2.1 > Reporter: Anurag Srivastava > Attachments: logs, sample_str_more1.csv, show_segment.png, show_segments_after_compaction.png > > > I have set property *carbon.major.compaction.size= 3* and load data which is the size of 5 MB and when I perform compaction it compacted, but initially it shouldn't be perform. Here is the queries : > *create table :* create table test_major_compaction(id Int,name string)stored by 'carbondata'; > *Load Data :* Load two segments. > LOAD DATA inpath 'hdfs://localhost:54310/sample_str_more1.csv' INTO table test_major_compaction options('DELIMITER'=',', 'FILEHEADER'='id, name','QUOTECHAR'='"'); > *Show segments :* show segments for table test_major_compaction; > !https://issues.apache.org/jira/secure/attachment/12848287/show_segment.png! > *Alter Table :* ALTER TABLE test_major_compaction COMPACT 'MAJOR'; > *Show segments :* Again see the segments : > show segments for table test_major_compaction; > !https://issues.apache.org/jira/secure/attachment/12848286/show_segments_after_compaction.png! > I have attached all the data with the it. -- This message was sent by Atlassian JIRA (v6.3.4#6332) |
Free forum by Nabble | Edit this page |