Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4CDA5200B78 for ; Thu, 18 Aug 2016 11:23:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4B8DD160AB7; Thu, 18 Aug 2016 09:23:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 95DA6160AAE for ; Thu, 18 Aug 2016 11:23:21 +0200 (CEST) Received: (qmail 73707 invoked by uid 500); 18 Aug 2016 09:23:20 -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 73674 invoked by uid 99); 18 Aug 2016 09:23:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 09:23:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 786B82C0032 for ; Thu, 18 Aug 2016 09:23:20 +0000 (UTC) Date: Thu, 18 Aug 2016 09:23:20 +0000 (UTC) From: "Niklaus Xiao (JIRA)" To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-14570) Create table with column names ROW__ID, INPUT__FILE__NAME, BLOCK__OFFSET__INSIDE__FILE sucess but query fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 Aug 2016 09:23:22 -0000 Niklaus Xiao created HIVE-14570: ----------------------------------- Summary: Create table with column names ROW__ID, INPUT__FILE__NAME, BLOCK__OFFSET__INSIDE__FILE sucess but query fails Key: HIVE-14570 URL: https://issues.apache.org/jira/browse/HIVE-14570 Project: Hive Issue Type: Bug Components: HiveServer2 Affects Versions: 1.3.0, 2.2.0 Reporter: Niklaus Xiao Assignee: Niklaus Xiao {code} 0: jdbc:hive2://189.39.151.74:21066/> create table foo1(ROW__ID string); No rows affected (0.281 seconds) 0: jdbc:hive2://189.39.151.74:21066/> create table foo2(BLOCK__OFFSET__INSIDE__FILE string); No rows affected (0.323 seconds) 0: jdbc:hive2://189.39.151.74:21066/> create table foo3(INPUT__FILE__NAME string); No rows affected (0.307 seconds) 0: jdbc:hive2://189.39.151.74:21066/> select * from foo1; Error: Error while compiling statement: FAILED: SemanticException Line 0:-1 Invalid column reference 'TOK_ALLCOLREF' (state=42000,code=40000) 0: jdbc:hive2://189.39.151.74:21066/> select * from foo2; Error: Error while compiling statement: FAILED: SemanticException Line 0:-1 Invalid column reference 'TOK_ALLCOLREF' (state=42000,code=40000) 0: jdbc:hive2://189.39.151.74:21066/> select * from foo3; Error: Error while compiling statement: FAILED: SemanticException Line 0:-1 Invalid column reference 'TOK_ALLCOLREF' (state=42000,code=40000) {code} We should prevent user from creating table with column names the same as Virtual Column names -- This message was sent by Atlassian JIRA (v6.3.4#6332)