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

Allocate memory for value vectors upfront in flatten operator

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13.0
    • Component/s: None
    • Labels:

      Description

      With recent changes to control batch size for flatten operator, we figure out row count in the output batch based on memory. Since we know how many rows we are going to include in the batch, we can also allocate the memory needed upfront instead of starting with initial value (4096) and doubling, copying every time we need more. 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ppenumarthy Padma Penumarthy
                Reporter:
                ppenumarthy Padma Penumarthy
                Reviewer:
                Paul Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: