Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 26, 2021 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1ambda/2c0d6c80da0c7cc50c14c5ceb34728aa to your computer and use it in GitHub Desktop.
Save 1ambda/2c0d6c80da0c7cc50c14c5ceb34728aa to your computer and use it in GitHub Desktop.
spark.sql("""
ALTER TABLE airbnb.listing_meta ADD IF NOT EXISTS PARTITION (
dt = '20211101'
)
LOCATION 's3://airbnb-data-lake/db/listing_meta/dt=20211101';
""")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment