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

Strange Behavior for UDFs with ComplexWriter Output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 1.17.0
    • 1.17.0
    • None
    • None

    Description

      I wrote some UDFs recently and noticed some strange behavior when debugging them.
      This behavior only occurs when there is ComplexWriter as output.

      Basically, if the input to the UDF is nullable, Drill doesn't recognize the UDF at all. I've found that the only way to get Drill to recognize UDFs that have ComplexWriters as output is:

      • Use a non-nullable holder as input
      • Remove the null setting completely from the function parameters.

      This approach has a drawback in that if the function receives a null value, it will throw an error and halt execution. My preference would be to allow null handling, but I've not figured out how to make that happen.

      Note: This behavior ONLY occurs when using a ComplexWriter as output.

      Attachments

        Activity

          People

            volodymyr Vova Vysotskyi
            cgivre Charles Givre
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: