Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 674 invoked from network); 10 Mar 2009 14:41:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2009 14:41:16 -0000 Received: (qmail 69880 invoked by uid 500); 10 Mar 2009 14:41:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 69746 invoked by uid 500); 10 Mar 2009 14:41:15 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 69732 invoked by uid 99); 10 Mar 2009 14:41:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 07:41:14 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Mar 2009 14:41:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 34CD0234C046 for ; Tue, 10 Mar 2009 07:40:51 -0700 (PDT) Message-ID: <1389172488.1236696051215.JavaMail.jira@brutus> Date: Tue, 10 Mar 2009 07:40:51 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4087) Clean up debug printing of the abstract syntax trees after parsing, binding and optimization In-Reply-To: <1750223180.1236622070834.JavaMail.jira@brutus> 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 [ https://issues.apache.org/jira/browse/DERBY-4087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680480#action_12680480 ] Knut Anders Hatlen commented on DERBY-4087: ------------------------------------------- I think truncating already seen subtrees is a good idea as it (a) reduces the size of the printed tree and (b) makes it easier to see that two trees are actually the same one. Doing it always is fine with me. As you mentioned, the current output is often inconsistent, and I find it unlikely that anyone rely on the exact output, so I don't see a need for a knob. It is debug output, after all. If someone does need a stable, parsable output, DERBY-791 sounds like a better fit. > Clean up debug printing of the abstract syntax trees after parsing, binding and optimization > --------------------------------------------------------------------------------------------- > > Key: DERBY-4087 > URL: https://issues.apache.org/jira/browse/DERBY-4087 > Project: Derby > Issue Type: Improvement > Components: Miscellaneous, SQL > Reporter: Dag H. Wanvik > Priority: Trivial > > Currently, the printing is often inconsistent: > - some subtrees not printed > - wrong indentation due to missing newlines, or lacking level increments > - redundant printing of subtrees (AST is really a DAG, would be nice to print only once and then refer back to show aliasing) > - some items printed twice due to inconsistent usage of pattern -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.