Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 23, 2021 23:19
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/8c07815ee6e0092bdf726072c9f19355 to your computer and use it in GitHub Desktop.
Save 1ambda/8c07815ee6e0092bdf726072c9f19355 to your computer and use it in GitHub Desktop.
dfListingSelected\
.repartition(1)\
.write\
.mode("error")\
.format("parquet")\
.option("compression", "snappy")\
.save("airbnb_listings_parquet")
dfListingParquet.rdd.getNumPartitions()
dfListingParquet.printSchema()
dfListingParquet.count()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment