GitHub user ravipesala opened a pull request:

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

    [CARBONDATA-2036] Fix the insert static partition with integer values 
prefix with 0 not working

    When trying to insert overwrite on the static partition with 0 at first on 
int column has an issue.
    Example : 
    create table test(d1 string) partition by (c1 int, c2 int, c3 int)
    And use insert overwrite table partition(01, 02, 03) select "s1"
     
    The above case has a problem as 01 is not converting to an actual integer 
to partition map file.
    Solution : 
    Convert the partition values to corresponding datatype value before adding 
to partition file.
    
    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [X] Any interfaces changed?
     
     - [X] Any backward compatibility impacted?
     
     - [X] Document update required?
    
     - [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 
static-partition-int-issue

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

    https://github.com/apache/carbondata/pull/1833.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 #1833
    
----
commit e9a925e36f8e44f6066853542cef3487dffec63c
Author: ravipesala <ravi.pesala@...>
Date:   2018-01-18T13:21:50Z

    Fix the insert static partition with integer values prefix with 0 not 
working

----


---

Reply via email to