当hive表建好后,首行列名称有时会重复,如何去掉首行列名称:
建表时,最后加上以下:
tblproperties('skip.header.line.count'='1');
如果表已建成:
alter table orders set tblproperties('skip.header.line.count'='1');
当hive表建好后,首行列名称有时会重复,如何去掉首行列名称:
建表时,最后加上以下:
tblproperties('skip.header.line.count'='1');
如果表已建成:
alter table orders set tblproperties('skip.header.line.count'='1');