Created
December 19, 2017 01:51
-
-
Save hadoopsters/861a0fef40f9ba5bc8e21f099c3d5059 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 | |
) | |
PARTITIONED BY | |
( | |
year int, | |
month smallint, | |
day smallint, | |
hour smallint | |
) | |
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