Jason Altekruse created DRILL-4451:
--------------------------------------

             Summary: Improve operator unit tests to allow for direct 
inspection of the sequence of result batches
                 Key: DRILL-4451
                 URL: https://issues.apache.org/jira/browse/DRILL-4451
             Project: Apache Drill
          Issue Type: Test
          Components: Tools, Build & Test
            Reporter: Jason Altekruse
            Assignee: Jason Altekruse


The first version of the operator test framework allows for comparison of the 
result set with a baseline, but does not give a way to specify the expected 
batch boundaries. All of the batches are combined together before they are 
compared (sharing code with the existing test infrastructure for complete SQL 
queries).

The framework should also include a way to directly inspect SV2 and SV4 batches 
that are produced by operators like filter and sort. These structures are used 
to store a view into the incoming data (an SV2 is a bitmask for everything that 
matched the filter and an SV4 is used to represent cross-batch pointers to 
reflect the sorted order of a series of batches without rewriting them). 
Currently the test just follows the pointers to iterate over the values as they 
would appear after a rewrite of the data (by the SelectionVectorRemover 
operator).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to