Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4153511EAB for ; Sun, 22 Jun 2014 00:41:46 +0000 (UTC) Received: (qmail 76250 invoked by uid 500); 22 Jun 2014 00:41:46 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 76225 invoked by uid 500); 22 Jun 2014 00:41:46 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 76212 invoked by uid 99); 22 Jun 2014 00:41:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jun 2014 00:41:45 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 22 Jun 2014 00:41:44 +0000 Received: (qmail 75750 invoked by uid 99); 22 Jun 2014 00:41:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jun 2014 00:41:24 +0000 Date: Sun, 22 Jun 2014 00:41:24 +0000 (UTC) From: "Mehant Baid (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-1054) Handle "return" statement within function templates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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)