Last active
October 20, 2016 17:33
-
-
Save AkdM/5b7b001c840c45e3df01d1de554fa707 to your computer and use it in GitHub Desktop.
Hive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create names table | |
CREATE TABLE names( | |
name STRING, | |
gender Array<String>, | |
origin Array<String>, | |
version DOUBLE | |
) | |
ROW FORMAT DELIMITED | |
FIELDS TERMINATED BY '\073' | |
COLLECTION ITEMS TERMINATED BY ','; | |
STORED AS ORC; | |
-- Load data to the names table | |
LOAD DATA INPATH '/user/adamota/prenoms.csv' INTO TABLE names; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment