Monday, 27 July 2015

Hyphen sign in column names in hive

While dealing with struct, some times you need to give the same as the column name in the schema. And the schema might have hyphen sign and hive doesnot support it.  So to mitigate you can use back tick around your column name  For example create table x( `my-name` string)

No comments:

Post a Comment