[ https://issues.apache.org/jira/browse/HIVE-14570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashutosh Chauhan updated HIVE-14570: ------------------------------------ Resolution: Fixed Status: Resolved (was: Patch Available) Pushed to master. Thanks, Niklaus! > 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)