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

Run-time code generation support when a function parameter is complex nested type.

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: Functions - Drill
    • Labels:
      None

      Description

      In this JIRA, we will enhance the run-time code generation component, in the following ways:

      1. Allow generate the run-time code for function whose parameter is FieldReader. A parameter FieldReader could match an argument of Repeated List, Repeated Map, or an element in Repeated List/map, or any nested complex type.

      2. In addition, FieldReader will also match any singular value, such as int, float4, varchar.

      With this support enabled, one could implement a function with parameter FieldReader to match any simple or complex nested type.

      As an example of how to leverage this new code generation logic, we add a new function "convert_toJson", which will convert any simple or complex type into a string in json format.

      @Param FieldReader input;
      @Output VarBinaryHolder out;

        Attachments

        1. DRILL-927.2.patch
          97 kB
          Jinfeng Ni

          Activity

            People

            • Assignee:
              DrillCommitter DrillCommitter
              Reporter:
              jni Jinfeng Ni
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: