Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-2918

NPE If SDK sort column is not same case as schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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.

       

      Attachments

        Activity

          People

            Ajantha_Bhat Ajantha Bhat
            Ajantha_Bhat Ajantha Bhat
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: