Skip to content

Instantly share code, notes, and snippets.

@gbraccialli
Last active January 20, 2016 13:12
Show Gist options
  • Save gbraccialli/44fd63738ed616e7c35d to your computer and use it in GitHub Desktop.
Save gbraccialli/44fd63738ed616e7c35d to your computer and use it in GitHub Desktop.
drop table simple_csv;
create external table simple_csv(
field1 string,
field2 string,
field3 string,
field4 string,
field5 string,
field6 string,
field7 string,
field8 string,
field9 string,
field10 string
)
row format delimited fields terminated by ','
stored as textfile
location '/test/simple_csv'
--TBLPROPERTIES('skip.header.line.count'='1');
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment