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 33A7610D96 for ; Wed, 30 Oct 2013 19:07:36 +0000 (UTC) Received: (qmail 14405 invoked by uid 500); 30 Oct 2013 19:07:32 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 13735 invoked by uid 500); 30 Oct 2013 19:07:29 -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 13586 invoked by uid 500); 30 Oct 2013 19:07:28 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 13475 invoked by uid 99); 30 Oct 2013 19:07:28 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 19:07:28 +0000 Date: Wed, 30 Oct 2013 19:07:28 +0000 (UTC) From: "Jason Dere (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-3190) allow INTEGER as a type name in a column/cast expression (per ISO-SQL 2011) 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-3190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13809497#comment-13809497 ] Jason Dere commented on HIVE-3190: ---------------------------------- The issue would have been if we had put the folliowing alias rule in the lexer: {noformat} KW_BINARY: 'BINARY' | 'BLOB' {noformat} which would have been bad because the parsing rules would then allow BLOB LARGE OBJECT, in addition to BINARY LARGE OBJECT. So BINARY and BLOB need to stay as separate keywords in the lexer rules. > allow INTEGER as a type name in a column/cast expression (per ISO-SQL 2011) > --------------------------------------------------------------------------- > > Key: HIVE-3190 > URL: https://issues.apache.org/jira/browse/HIVE-3190 > Project: Hive > Issue Type: Improvement > Components: SQL > Affects Versions: 0.8.0 > Reporter: N Campbell > Attachments: HIVE-3190.1.patch, HIVE-3190.2.patch > > > Just extend the parser to allow INTEGER instead of making folks use INT > select cast('10' as integer) from cert.tversion tversion > FAILED: Parse Error: line 1:20 cannot recognize input near 'integer' ')' 'from' in primitive type specification -- This message was sent by Atlassian JIRA (v6.1#6144)