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 6003510A1D for ; Tue, 23 Apr 2013 21:07:17 +0000 (UTC) Received: (qmail 40514 invoked by uid 500); 23 Apr 2013 21:07:17 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 40314 invoked by uid 500); 23 Apr 2013 21:07:16 -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 40303 invoked by uid 500); 23 Apr 2013 21:07:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 40298 invoked by uid 99); 23 Apr 2013 21:07:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2013 21:07:16 +0000 Date: Tue, 23 Apr 2013 21:07:16 +0000 (UTC) From: "Phabricator (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4350) support AS keyword for table alias 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-4350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Phabricator updated HIVE-4350: ------------------------------ Attachment: HIVE-4350.D10503.1.patch mweaverh requested code review of "HIVE-4350 [jira] support AS keyword for table alias". Reviewers: JIRA HIVE-4350: Support AS keyword for table alias. Add simple test. SQL standard supports AS optional keyword, while creating an table alias. http://savage.net.au/SQL/sql-92.bnf.html#table reference Hive gives a error when the optional keyword is used - select * from tiny as t1; org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: ParseException line 1:19 mismatched input 'as' expecting EOF near 'tiny' TEST PLAN Query test table_alias.q REVISION DETAIL https://reviews.facebook.net/D10503 AFFECTED FILES ql/src/java/org/apache/hadoop/hive/ql/parse/FromClauseParser.g ql/src/test/queries/clientpositive/table_alias.q ql/src/test/results/clientpositive/table_alias.q.out MANAGE HERALD RULES https://reviews.facebook.net/herald/view/differential/ WHY DID I GET THIS EMAIL? https://reviews.facebook.net/herald/transcript/25101/ To: JIRA, mweaverh > support AS keyword for table alias > ---------------------------------- > > Key: HIVE-4350 > URL: https://issues.apache.org/jira/browse/HIVE-4350 > Project: Hive > Issue Type: Bug > Components: SQL > Affects Versions: 0.10.0 > Reporter: Thejas M Nair > Assignee: Matthew Weaver > Attachments: HIVE-4350.D10503.1.patch > > > SQL standard supports AS optional keyword, while creating an table alias. > http://savage.net.au/SQL/sql-92.bnf.html#table reference > Hive gives a error when the optional keyword is used - > select * from tiny as t1; > org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: ParseException line 1:19 mismatched input 'as' expecting EOF near 'tiny' -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira