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

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • Functions - Drill
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: