You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Paul Rogers (JIRA)" <ji...@apache.org> on 2019/01/27 05:03:00 UTC

[jira] [Created] (DRILL-7006) Support type conversion shims in RowSetWriter

Paul Rogers created DRILL-7006:
----------------------------------

             Summary: Support type conversion shims in RowSetWriter
                 Key: DRILL-7006
                 URL: https://issues.apache.org/jira/browse/DRILL-7006
             Project: Apache Drill
          Issue Type: Improvement
    Affects Versions: 1.15.0
            Reporter: Paul Rogers
            Assignee: Paul Rogers
             Fix For: 1.16.0


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)