carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anubhav100 <...@git.apache.org>
Subject [GitHub] carbondata pull request #1839: [CARBONDATA-2016] Exception displays while ex...
Date Fri, 19 Jan 2018 16:03:08 GMT
GitHub user anubhav100 opened a pull request:

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

    [CARBONDATA-2016] Exception displays while executing compaction with alter query

    **Root Cause**
    When we apply the alter table command to add column with default value it is storing it
as long object,it is wrongly written in restructure util we should get the value as the same
type
    as that of datatype of columnschema in restructure util earlier in master branch in restuctureutil
class if our data type is long or short or int we are always returning back a long object
which is wong due to same reason compaction was failing
    if it was applied after alter table add columns command with default value because in
sortdatarows there was mismatch between data type and its corresponding value
    
    **Testing:**
    1.mvn clean install is passing
    2.added new test case for same

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

    $ git pull https://github.com/anubhav100/incubator-carbondata bugfix/CARBONDATA-2016

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

    https://github.com/apache/carbondata/pull/1839.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 #1839
    
----
commit eee0a2325b410c9d1f9e18b40002446b067ed581
Author: anubhav100 <anubhav.tarar@...>
Date:   2018-01-19T16:01:14Z

    When we apply the alter table command to add column with default value it is storing it
as long object,it is wrongly written in restructure util we should get the value as the same
type

----


---

Mime
View raw message