drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mehant Baid (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-1054) Handle "return" statement within function templates
Date Sun, 22 Jun 2014 00:41:24 GMT
Mehant Baid created DRILL-1054:
----------------------------------

             Summary: Handle "return" statement within function templates
                 Key: DRILL-1054
                 URL: https://issues.apache.org/jira/browse/DRILL-1054
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Mehant Baid
            Assignee: Mehant Baid
            Priority: Minor


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message