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 293BE200BF5 for ; Sat, 7 Jan 2017 07:31:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 27B0A160B3C; Sat, 7 Jan 2017 06:31:02 +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 706D0160B2F for ; Sat, 7 Jan 2017 07:31:01 +0100 (CET) Received: (qmail 82944 invoked by uid 500); 7 Jan 2017 06:31:00 -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 82931 invoked by uid 99); 7 Jan 2017 06:31:00 -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:31:00 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 489A52C1F54 for ; Sat, 7 Jan 2017 06:31:00 +0000 (UTC) Date: Sat, 7 Jan 2017 06:31:00 +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:31:02 -0000 [ https://issues.apache.org/jira/browse/DRILL-5116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15806932#comment-15806932 ] 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_r95053577 --- Diff: exec/java-exec/src/main/resources/drill-module.conf --- @@ -167,10 +167,12 @@ drill.exec: { debug: true, janino_maxsize: 262144, cache_max_size: 1000, - // Enable to write generated source to disk. See ClassBuilder - save_source: false, // Where to save the generated source. See ClassBuilder code_dir: "/tmp/drill/codegen" --- End diff -- Using Eclipse, the /tmp/drill/codegen directory is very simple: Eclipse prompts for the source location on the first run, remembers it thereafter, and MacOS cleans up any left-over generated files on the next restart. Looks like things are a bit more difficult in IntelliJ. I'll play around a bit to see if I can find a solution that works well for both tools. I'll create a separate JIRA and PR for that work. > 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)