Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Code snippet for demonstrating Delta Lake
# Create a temparory dataset
data = spark.range(0, 50)
# Read the data
df ="delta").load("/tmp/myfirst-delta-table")
# Updating the dataset
data = spark.range(51, 100)
# Read the data
df ="delta").load("/tmp/myfirst-delta-table")
# Read the older version of data
df ="delta").option("versionAsOf", 0).load("/tmp/myfirst-delta-table")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.