Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 727A2200BF5 for ; Sat, 7 Jan 2017 07:35:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 714FA160B4A; Sat, 7 Jan 2017 06:35:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C1C3D160B2F for ; Sat, 7 Jan 2017 07:34:59 +0100 (CET) Received: (qmail 87585 invoked by uid 500); 7 Jan 2017 06:34:58 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 87557 invoked by uid 99); 7 Jan 2017 06:34:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jan 2017 06:34:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 955972C1F5A for ; Sat, 7 Jan 2017 06:34:58 +0000 (UTC) Date: Sat, 7 Jan 2017 06:34:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5116) Enable generated code debugging in each Drill operator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 07 Jan 2017 06:35:00 -0000 [ https://issues.apache.org/jira/browse/DRILL-5116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15806938#comment-15806938 ] ASF GitHub Bot commented on DRILL-5116: --------------------------------------- Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/716#discussion_r95053621 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/compile/ClassBuilder.java --- @@ -64,36 +67,33 @@ * local variables. Have fun! * *

- * Note: not all generated code is ready to be compiled as plain-old - * Java. Some classes omit from the template the proper throws - * declarations. Other minor problems may also crop up. All are easy - * to fix. Once you've done so, add the following to mark that you've - * done the clean-up:

    - * cg.plainOldJavaCapable(true); // Class supports plain-old Java
+ * Most generated classes have been upgraded to support Plain-old Java --- End diff -- Hard to put that list anywhere but in the operators that have the issues (else we have to keep the comments in sync.) There are two. The old `SortBatch`. Also `OrderedPartitionRecordBatch`, which seems to not be used at present. These are called out in the JIRA. > Enable generated code debugging in each Drill operator > ------------------------------------------------------ > > Key: DRILL-5116 > URL: https://issues.apache.org/jira/browse/DRILL-5116 > Project: Apache Drill > Issue Type: Improvement > Affects Versions: 1.9.0 > Reporter: Paul Rogers > Assignee: Paul Rogers > Priority: Minor > Labels: ready-to-commit > > DRILL-5052 adds the ability to debug generated code. Some of the code generated by Drill's operators has minor problems when compiled directly using the new technique. These issues are ignore by the byte-code-merge technique uses in production. This ticket asks to try the DRILL-5052 feature in each operator, clean up any minor problems, and ensure each operator generates code suitable for debugging. Use the new {{CodeGenerator.plainOldJavaCapable()}} method to mark each generated class as ready for "plain-old Java" code gen. > The advantages of this feature are two: > 1. Ability to step through the generated code to increase understanding of existing operators and to ease development of improvements to existing operators and of any new operators we choose to create. > 2. Open the door to experimenting with how to improve performance of the generated code. -- This message was sent by Atlassian JIRA (v6.3.4#6332)