Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6596

Variable length vectors use unnecessary emptyByteArray to fill empties

    Details

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

      Description

      When writing to an index beyond the last index written to, Variable Length vectors set the 'empties' by writing a zero length byte array to the indexes that were skipped.

      This is, as it turns out, sometimes an expensive operation, and is completely unnecessary as all that needs to be done is to set the offset vector correctly. 

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                parthc Parth Chandra
                Reporter:
                parthc Parth Chandra
                Reviewer:
                Paul Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: