Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- staging (no date column and not partitioned)
- main (date column present and is partitioned by date)
- INSERT OVERWRITE TABLE main
- PARTITION (dt='2019-04-30')
- SELECT col_a,
- col_b,
- col_c,
- col_d,
- col_e,
- '2019-04-30' FROM staging
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement