Created
February 1, 2018 22:53
-
-
Save andr83/ab839afcf0b85e05ed88c11bd9c90dbd to your computer and use it in GitHub Desktop.
How to work with Hive tables with a lot of partitions from Spark
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 events ( | |
created TIMESTAMP, | |
user STRING, | |
time STRING, | |
request STRING, | |
status STRING, | |
size STRING, | |
referer STRING | |
) PARTITION BY ( | |
year INT, | |
month INT, | |
day INT, | |
hour INT, | |
country STRING | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment