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)