Created
February 6, 2018 06:13
-
-
Save robert8138/2c4e051a857a293e9a7504f38f684448 to your computer and use it in GitHub Desktop.
Dynamic Partition Example 2
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
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