is "following" a reserved keyword in Hive?

593 Views Asked by At

Hive command - create table table_name (accountId string,name string,following string); throws following exception,

[main] ERROR org.apache.hadoop.hive.ql.Driver - FAILED: ParseException line 2:198 cannot recognize input near 'following' 'string' ',' in column specification org.apache.hadoop.hive.ql.parse.ParseException: line 2:198 cannot recognize input near 'following' 'string' ',' in column specification

In the below link,"following" is not mentioned in the reserved keywords list, http://docs.treasuredata.com/articles/faq

1

There are 1 best solutions below

1
On

I think it might be in the reserved key word list. However you can use the below query to create the column name following.

create table test (accountId string,name string,`following` string);