Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. staging (no date column and not partitioned)
  2. main (date column present and is partitioned by date)
  3.  
  4. INSERT OVERWRITE TABLE main
  5. PARTITION (dt='2019-04-30')
  6. SELECT col_a,
  7. col_b,
  8. col_c,
  9. col_d,
  10. col_e,
  11. '2019-04-30' FROM staging
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement