Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A23A49F89 for ; Thu, 26 Apr 2012 05:18:07 +0000 (UTC) Received: (qmail 40929 invoked by uid 500); 26 Apr 2012 05:18:07 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 40662 invoked by uid 500); 26 Apr 2012 05:18:04 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 40630 invoked by uid 500); 26 Apr 2012 05:18:03 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 40601 invoked by uid 99); 26 Apr 2012 05:18:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 05:18:02 +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.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 05:18:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 34D6C40FA96 for ; Thu, 26 Apr 2012 05:17:39 +0000 (UTC) Date: Thu, 26 Apr 2012 05:17:39 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <498837289.3935.1335417459243.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-494) Select columns by index instead of name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262381#comment-13262381 ] Navis commented on HIVE-494: ---------------------------- I've completely forgotten this patch and looking into it newly. 1. It seemed not a standard SQL and also could be confusional especially with join/unions. 2. The patch is using RR of input operator but it's clearly not correct. Could it be worth to be implemented? > Select columns by index instead of name > --------------------------------------- > > Key: HIVE-494 > URL: https://issues.apache.org/jira/browse/HIVE-494 > Project: Hive > Issue Type: Wish > Components: Clients, Query Processor > Reporter: Adam Kramer > Assignee: Navis > Priority: Minor > Labels: SQL > Attachments: HIVE-494.D1641.1.patch > > > SELECT mytable[0], mytable[2] FROM some_table_name mytable; > ...should return the first and third columns, respectively, from mytable regardless of their column names. > The need for "names" specifically is kind of silly when they just get translated into numbers anyway. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira