[ 
https://issues.apache.org/jira/browse/CARBONDATA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16604297#comment-16604297
 ] 

Ajantha Bhat commented on CARBONDATA-2918:
------------------------------------------

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

> 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
>            Priority: Major
>
> 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)

Reply via email to