GitHub user paul-rogers opened a pull request:

    https://github.com/apache/drill/pull/832

    DRILL-5504: Vector validator to diagnose offset vector issues

    Validates offset vectors in VarChar and repeated vectors. Validates the
    special case of repeated VarChar vectors (two layers of offsets.)
    
    Provides two new session variables to turn on validation. One enables
    the existing operator (iterator) validation, the other adds vector
    validation. This allows validation to occur in a “production” Drill
    (without restarting Drill with assertions, as previously required.)
    
    Unit tests validate the validator. Another test validates the
    integration, but requires manual steps, so is ignored by default.
    
    This version is first-cut: all work is done within a single class.
    Allows back-porting to an earlier version to solve a specific issues. A
    revision should move some of the work into generated code (or refactor
    vectors to allow outside access), since offset vectors appear for each
    subclass; not on a base class that would allow generic operations.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/paul-rogers/drill DRILL-5504

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/drill/pull/832.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #832
    
----
commit 175e592419ca6bda1fd0259cc42b033616facc3d
Author: Paul Rogers <[email protected]>
Date:   2017-05-11T19:46:15Z

    DRILL-5504: Vector validator to diagnose offset vector issues
    
    Validates offset vectors in VarChar and repeated vectors. Validates the
    special case of repeated VarChar vectors (two layers of offsets.)
    
    Provides two new session variables to turn on validation. One enables
    the existing operator (iterator) validation, the other adds vector
    validation. This allows validation to occur in a “production” Drill
    (without restarting Drill with assertions, as previously required.)
    
    Unit tests validate the validator. Another test validates the
    integration, but requires manual steps, so is ignored by default.
    
    This version is first-cut: all work is done within a single class.
    Allows back-porting to an earlier version to solve a specific issues. A
    revision should move some of the work into generated code (or refactor
    vectors to allow outside access), since offset vectors appear for each
    subclass; not on a base class that would allow generic operations.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to