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] [Updated] (DRILL-1054) Handle "return" statement within function templates
Date Sun, 22 Jun 2014 01:04:04 GMT

     [ https://issues.apache.org/jira/browse/DRILL-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mehant Baid updated DRILL-1054:
-------------------------------

    Assignee: Jacques Nadeau  (was: Mehant Baid)

> 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: Jacques Nadeau
>            Priority: Minor
>         Attachments: DRILL-1054.patch
>
>
> 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