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

inverted index cannot work with adaptive encoding

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      After PR #3638, Inverted index cannot work with adaptive encoding.

      two issues are present

      a) For Byte (Not DirectByteBuffer), Encoded column page has wrong result, as position() is used instead of limit()

      b) For short (DirectByteBuffer), result.array() will fail as it is unsupported for direct byte buffer.

       

      Solution :

      1) for problem a) use limit()

      2) for problem b) write byte by byte. 

       

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m