Last active
September 7, 2017 14:57
-
-
Save iconara/62410f5b7ba59d7205b7293530e4c1fc to your computer and use it in GitHub Desktop.
Redshift Spectrum cheat sheet
This file contains hidden or 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
-- this creates a schema called "name_of_schema_in_redshift" in Redshift, | |
-- that works as an alias for the Athena/Glue database "name_of_database_in_glue". | |
CREATE EXTERNAL SCHEMA name_of_schema_in_redshift | |
FROM DATA CATALOG | |
DATABASE 'name_of_database_in_glue' | |
REGION 'us-east-1' | |
IAM_ROLE 'arn:aws:iam::456064453472:role/xyz'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment