Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.10.0
-
None
-
None
Description
DRILL-5080 introduced a RecordBatchSizer that estimates the space taken by a record batch and determines batch "density."
Drill provides a large variety of vectors, each with their own internal structure and collections of vectors. For example, fixed vectors use just a data vector. Nullable vectors add an "is set" vector. Variable length vectors add an offset vector. Repeated vectors add a second offset vector.
The original RecordBatchSizer attempted to compute sizes for all these vector types. But, the complexity got to be out of hand. This ticket requests to simply bite the bullet and move the calculations into each vector type so that the RecordBatchSizer can simply use the results of the calculations.