Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 26, 2021 05:54
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/75e1a104e6d5cdef231dde0872ab0d67 to your computer and use it in GitHub Desktop.
Save 1ambda/75e1a104e6d5cdef231dde0872ab0d67 to your computer and use it in GitHub Desktop.
spark.sql("""
CACHE TABLE LISTING_STAT AS (
SELECT *
FROM LISTING_AVAILABILITY
WHERE review_scores_rating IS NOT NULL
)
""")
spark.sql("SHOW TABLES").show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment