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

Implement size-aware result set loader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Future
    • Future
    • None
    • None

    Description

      A recent extension to Drill's set of test tools created a "row set" abstraction to allow us to create, and verify, record batches with very few lines of code. Part of this work involved creating a set of "column accessors" in the vector subsystem. Column readers provide a uniform API to obtain data from columns (vectors), while column writers provide a uniform writing interface.

      DRILL-5211 discusses a set of changes to limit value vectors to 16 MB in size (to avoid memory fragmentation due to Drill's two memory allocators.) The column accessors have proven to be so useful that they will be the basis for the new, size-aware writers used by Drill's record readers.

      A step in that direction is to retrofit the column writers to use the size-aware setScalar() and setArray() methods introduced in DRILL-5517.

      Since the test framework row set classes are (at present) the only consumer of the accessors, those classes must also be updated with the changes.

      This then allows us to add a new "row mutator" class that handles size-aware vector writing, including the case in which a vector fills in the middle of a row.

      Attachments

        Issue Links

          Activity

            People

              Paul.Rogers Paul Rogers
              paul-rogers Paul Rogers
              Karthikeyan Manivannan Karthikeyan Manivannan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: