Skip to content

Instantly share code, notes, and snippets.

@robert8138
Created February 6, 2018 06:13
Show Gist options
  • Save robert8138/2c4e051a857a293e9a7504f38f684448 to your computer and use it in GitHub Desktop.
Save robert8138/2c4e051a857a293e9a7504f38f684448 to your computer and use it in GitHub Desktop.
Dynamic Partition Example 2
INSERT OVERWRITE TABLE fct_bookings PARTITION (ds='{{ latest_ds }}')
SELECT
id_listing
, m_bookings
FROM
some_up_stream_booking_tables
WHERE
ds = '{{ latest_ds }}'
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment