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

Allocate memory for value vectors upfront in flatten operator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 1.13.0
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: