Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 37183 invoked from network); 12 Mar 2008 17:30:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 17:30:19 -0000 Received: (qmail 92571 invoked by uid 500); 12 Mar 2008 17:30:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 92319 invoked by uid 500); 12 Mar 2008 17:30: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 92307 invoked by uid 99); 12 Mar 2008 17:30:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 10:30:15 -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; Wed, 12 Mar 2008 17:29:46 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C0D26234C09B for ; Wed, 12 Mar 2008 10:28:46 -0700 (PDT) Message-ID: <1943404107.1205342926788.JavaMail.jira@brutus> Date: Wed, 12 Mar 2008 10:28:46 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3494) Move the setup of NormalizeResultSetNode into the NormalizeResultSetNode In-Reply-To: <157586403.1204676020824.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-3494: ---------------------------------- Derby Info: [Patch Available] > Move the setup of NormalizeResultSetNode into the NormalizeResultSetNode > ------------------------------------------------------------------------ > > Key: DERBY-3494 > URL: https://issues.apache.org/jira/browse/DERBY-3494 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.4.0.0 > Reporter: Kathey Marsden > Priority: Minor > Attachments: d3494_npe_writeup.html, d3494_npe_writeup.html, decompile.out, derby-3494_remove_genNormalizeResultSetNode_diff.txt, npe.sql > > > In DERBY-3310 Dan suggested ... > Setting up a NormalizeResultSetNode is spread over three locations, the class itself (very little, it's almost acting like a C struct), > the genNormalizeResultSetNode method and then copyLengthsAndTypesToSource. A good O-O implementation would have > the logic to create a NormalizeResultSetNode self-contained in NormalizeResultSetNode. > Since the ResultColumnList of the original ResultSetNode correctly describes the desired outcome, it's not clear to > me why NormalizeResultSetNode can't just refer to the same list and use it for its processing. They may be some chance > that this would cause recursion at some point, where a NormalizeResultSetNode would think it needed to be wrapped > in a NormalizeResultSetNode since the types of its columns and expression don't match (i.e. when it is handled as a regular ResultSetNode). > I think moving the setup of a NormalizeResultSetNode into the class itself, so that its inputs are just the ResultSetNode to wrap > would help clear up the code, especially if comments were added indicating why certain actions were being taken. > I am separating this task out into a separate issue, so that it can be worked on independently of DERBY-3310. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.