Skip to content

Instantly share code, notes, and snippets.

@robert8138
Last active June 8, 2020 23:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robert8138/9e90097f243f30c252f3ee7cb6903280 to your computer and use it in GitHub Desktop.
Save robert8138/9e90097f243f30c252f3ee7cb6903280 to your computer and use it in GitHub Desktop.
# Define the CREATE TABLE statement here
{%- macro create_table() %}
...
{%- endmacro %}
# Main ETL logic, insert the results into a STAGING table
{%- macro main() %}
...
{%- endmacro %}
# A series of simple presto CHECKS on the staging table
{%- macro health_checks() %}
...
{%- endmacro %}
# Finally, EXCHANGE the staging table with the prod table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment