Created
December 19, 2017 01:47
-
-
Save hadoopsters/6d824e00bc01f6fab79637f42e4e9eba to your computer and use it in GitHub Desktop.
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 TABLE my_database.my_table | |
( | |
column_1 string, | |
column_2 int, | |
column_3 double | |
) | |
STORED AS ORC | |
TBLPROPERTIES('ORC.COMPRESS'='SNAPPY'); -- ensure SNAPPY is uppercase, lowercase triggers a nasty bug in Hive (fixed in later versions) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment