Skip to content

Instantly share code, notes, and snippets.

@senvey
Created June 30, 2016 18:37
Show Gist options
  • Save senvey/6b05bc587830aa0291384a49b7874f1a to your computer and use it in GitHub Desktop.
Save senvey/6b05bc587830aa0291384a49b7874f1a to your computer and use it in GitHub Desktop.
Hive table index
CREATE INDEX
example_by_business_id
ON TABLE
example_table (businessID)
AS 'COMPACT' WITH DEFERRED REBUILD;
ALTER INDEX example_by_business_id ON example_table REBUILD;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment