Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66A18175F3 for ; Wed, 4 Mar 2015 15:11:39 +0000 (UTC) Received: (qmail 76564 invoked by uid 500); 4 Mar 2015 15:11:29 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 76512 invoked by uid 500); 4 Mar 2015 15:11:29 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 76501 invoked by uid 99); 4 Mar 2015 15:11:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 15:11:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Wed, 04 Mar 2015 15:11:08 +0000 Received: (qmail 76022 invoked by uid 99); 4 Mar 2015 15:11:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 15:11:05 +0000 Date: Wed, 4 Mar 2015 15:11:05 +0000 (UTC) From: "Maryann Xue (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-1696) Selecting column more than once fails 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/PHOENIX-1696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14347005#comment-14347005 ] Maryann Xue commented on PHOENIX-1696: -------------------------------------- Thank you, [~samarthjain], for the test case! Thanks [~jamestaylor] for the information! > Selecting column more than once fails > ------------------------------------- > > Key: PHOENIX-1696 > URL: https://issues.apache.org/jira/browse/PHOENIX-1696 > Project: Phoenix > Issue Type: Bug > Affects Versions: 5.0.0, 4.3 > Reporter: Samarth Jain > Assignee: Maryann Xue > Attachments: 1696.patch, PHOENIX-1696_repro.patch > > > {code} > ResultSet rs = conn.createStatement().executeQuery("SELECT undoub, undoub FROM t1"); > assertTrue(rs.next()); > System.out.println(rs.getObject("undoub")); > Stacktrace: > > org.apache.phoenix.schema.AmbiguousColumnException: ERROR 502 (42702): Column reference ambiguous or duplicate names. columnName=UNDOUB > at org.apache.phoenix.compile.RowProjector.getColumnIndex(RowProjector.java:143) > at org.apache.phoenix.jdbc.PhoenixResultSet.findColumn(PhoenixResultSet.java:167) > at org.apache.phoenix.jdbc.PhoenixResultSet.getObject(PhoenixResultSet.java:513) > {code} > [~maryannxue] - do you mind taking a look? I verified that this issue started happening since this checkin: https://github.com/apache/phoenix/commit/b2b5788d9dd96dc5fa2f0ac0d0b2a792d9bb26b2 -- This message was sent by Atlassian JIRA (v6.3.4#6332)