GitHub user Indhumathi27 opened a pull request:

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

    [CARBONDATA-2606][Complex DataType Enhancements]Fix Null result if First 
two Projection column have same parent and third column has different Parent 
Struct

    
    Problem:
     When multiple columns are there,then the first child elements is only 
going to make parent Object Array. For all other cases it should be null.
     For e.g. a : <b,c,d>. here as 'a' is the parent column and b, c, d are 
child columns during traversal when we encounter the first element in list i.e. 
column 'b','a' will be completely filled. In case when column 'c' and 'd' 
encountered then only place null in the output.
    Hence, as Null is placed in the output, Select result is Null if First two 
Projection column have same parent and third column has different parent Struct 
column.
    Solution: Place null in the end of output
    
     - [ ] Any interfaces changed?
     
     - [ ] Any backward compatibility impacted?
     
     - [ ] Document update required?
    
     - [x] Testing done
           Test cases added
     - [ ] 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/Indhumathi27/carbondata project2struct

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

    https://github.com/apache/carbondata/pull/2489.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 #2489
    
----
commit be3008224f100d6e046987ab4c56792976d6c3a4
Author: Indhumathi27 <indhumathim27@...>
Date:   2018-07-11T10:24:55Z

    [CARBONDATA-2606][Complex DataType Enhancements]Fix Null result when there 
are two Struct Column

----


---

Reply via email to