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

Automatically realloc buffers when vector runs out of space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      When reaching the end of a buffer, the current way drill handles this is for setSafe() to return false, and then whatever operator is doing the write will send the batch, and the redo the last record. This creates a lot of difficulty, because it sometimes requires being able to "rewind" the input stream to replay the last record.

      The proposal is to move the handling of buffer sizing and allocation into the value vectors themselves, making it transparent to the user of the value vector. The operators will now no longer have to worry about the possibility that writing into a vector may fail due to lack of space.

      Attachments

        1. DRILL-1960.patch
          188 kB
          Steven Phillips
        2. DRILL-1960.patch
          212 kB
          Steven Phillips
        3. DRILL-1960.patch
          213 kB
          Steven Phillips

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sphillips Steven Phillips
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: