GitHub user ravipesala opened a pull request:

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

    [CARBONDATA-1980][PARTITION]Fix adding partition information while doing 
refresh(restore) table.And fix the case sensitivity issue of partition column

    Problem 
    While restoring the table the partitions are not added to the hive.  And 
also if any uppercase letters are present in partition column then filter 
queries on that column gives error.
    
    Solution 
    Read all partitionmap files of all segments to add back the partition 
information to the hive metatstore. 
    And always update the partition filter columns to lower case before 
querying partition information.
    
    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [X] Any interfaces changed? NO
     
     - [X] Any backward compatibility impacted? NO
     
     - [X] Document update required? NO
    
     - [X] Testing done
           Tests added
           
     - [X] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA. 
    


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

    $ git pull https://github.com/ravipesala/incubator-carbondata 
restore-partition

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

    https://github.com/apache/carbondata/pull/1759.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 #1759
    
----
commit 20e411487a11c2219e08e966ff83c6cc0e718678
Author: ravipesala <ravi.pesala@...>
Date:   2018-01-03T19:04:33Z

    Fix adding partition information while doing refresh(restore) table. And 
fix the case sensitivity issue of partition column

----


---

Reply via email to