GitHub user rahulforallp reopened a pull request:

    https://github.com/apache/carbondata/pull/1367

    [CARBONDATA-1398] Support query from specified segments

    **1. **Objective**** : Support Query from specified segments.
    
    **2. **Proposed Solution** :**
    A new property will introduce to set the segment no.
    User will  set property(carbon.input.segments. <database_name> 
.<table_name>) to specify segment no.
    During CarbonScan data will be read from from specified segments only.
    If property is not set, all segments will be caonsidered as default 
behavior.
    **3. Syntax Used :** 
    **To show all the segments.** 
                       It will display one new column at the end that will 
display the new segment-                                    id of compacted 
segment.
    
    > Syntax : SHOW SEGMENTS FOR TABLE <table_name>;
    
                        `e.g. => show segments for table carbon_table;`
    
    **TO set the segment ids.**
    Segment ids to which we need to query, can be set to property 
carbon.input.segments (new) .
    
    Following syntax can be used to set segment ids from client(BEELINE)
    
    > Syntax : SET carbon.input.segments.<databese_name>.<table_name> = <list 
of segment ids>;
    
    `e.g => SET carbon.input.segments.default.carbontable=1,4,5;`
    
    To reset the segment id.
    Above property can be set to default behavior as follow.
    Following syntax can be used to reset segment ids from client(BEELINE)
    
    > Syntax : SET carbon.input.segments.<databese_name>.<table_name> = *;
    
    `e.g => SET carbon.input.segments.default.carbontable=*`
    
    To reset all properties.
    It resets all the properties to default value. So it is recommended to use 
only when you want to reset all the different properties.
    
    > Syntax : RESET;
    
    `e.g => reset;`


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rahulforallp/incubator-carbondata 
CARBONDATA-1398

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/1367.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1367
    
----
commit a630de7de54342c83ee2f294653ca7e285efb7c0
Author: rahulforallp <[email protected]>
Date:   2017-09-14T13:14:09Z

    [CARBONDATA-1398] support query from specified segments

----


---

Reply via email to