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

Handle "return" statement within function templates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      Currently if the function template contains a return statement, we would simply use it as is in the runtime generated code. Since we can possibly combine multiply function templates' code into one runtime generated class we might hit compilation errors of the form "Unreachable code" due to a "return" in the middle of the function.

      This patch will replace the return with suitable break statements before we use it in the runtime generated code.

      Attachments

        1. DRILL-1054.patch
          4 kB
          Mehant Baid

        Activity

          People

            mehant Mehant Baid
            mehant Mehant Baid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: