[
https://issues.apache.org/jira/browse/DRILL-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mehant Baid updated DRILL-1054:
-------------------------------
Attachment: DRILL-1054.patch
> 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
> 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)