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

In hyper-batch row set reader, handle disjoint unions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.14.0
    • None
    • None
    • None

    Description

      See exec/java-exec/src/test/java/org/apache/drill/test/rowSet/HyperRowSetImpl.java, in PR #1161 (or after that PR is committed), line 101.

      The code in question implements a mechanism for managing hyper vectors within the row set reader mechanism.

      A very special case occurs in a hyper vector over a union vector, and that union has disjoint types. (Say an INT in batch 1, and a VARCHAR in batch 2.) The desired behavior is that the resulting column metadata holds the union of all types in the component vectors, and that the accessor reports values as null if the union reader asks for a value of a type that is no present.

      This is an obscure case, and unions are not supposed within Drill completely, so this case was not implemented or tested.

      This JIRA serves as a reminder that this case should be handled if Drill decides to fully support the union type.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paul-rogers Paul Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: