[jira] [Created] (CARBONDATA-2918) NPE If SDK sort column is not same case as schema

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (CARBONDATA-2918) NPE If SDK sort column is not same case as schema

Akash R Nilugal (Jira)
Ajantha Bhat created CARBONDATA-2918:
----------------------------------------

             Summary: NPE If SDK sort column is not same case as schema
                 Key: CARBONDATA-2918
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2918
             Project: CarbonData
          Issue Type: Bug
            Reporter: Ajantha Bhat
            Assignee: Ajantha Bhat


problem:
Currently in CarbonWriterBuilder,  
sortColumnsList.indexOf(field.getFieldName()) return null due to case issue. so, one of the sortcolumns in array will be null. so one of the column schema becomes null,
hence when column schema is accessed, we get NPE

solution: Make sort columns as case insensitive..

Change pareant column (as sort column is supported only foro parent columns) name to lower case when schema received by the user
and change sort columns also to lower case when received by the user.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)