hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-14570) Create table with column names ROW__ID, INPUT__FILE__NAME, BLOCK__OFFSET__INSIDE__FILE sucess but query fails
Date Sat, 03 Sep 2016 00:18:20 GMT

    [ https://issues.apache.org/jira/browse/HIVE-14570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15459981#comment-15459981
] 

Ashutosh Chauhan commented on HIVE-14570:
-----------------------------------------

+1

> 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
>             Fix For: 2.2.0
>
>         Attachments: HIVE-14570.patch
>
>
> {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)

Mime
View raw message