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

Support type conversion shims in RowSetWriter

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.15.0
    • Fix Version/s: 1.16.0
    • Component/s: None
    • Labels:

      Description

      The RowSet tools include a RowSetWriter for populating a batch of vectors. A set of "column writers" exist: one for each kind of vector. These classes provide methods to write a value into a vector. For example, the VarcharColumnWriter provides a setString()) method to set the value.

      The current writers provide only "natural" conversions: from Java String to Varchar, from Java Double to FLOAT8 and so on. That is, the methods implemented for each type are those that provide s single, unambiguous conversion.

      This ticket asks to add a translation layer: to allow, say, writing an Int column using a String (parsed according to some rules). Or, to convert from a string to a Date using some format.

      The goal is not to provide the type conversions themselves, rather it is to provide a way to insert the type conversion "shim" on top of the "native" column writer in a way that is transparent to code using the row set writer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Paul.Rogers Paul Rogers
                Reporter:
                Paul.Rogers Paul Rogers
                Reviewer:
                Arina Ielchiieva
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: