Skip to content

Commit

Permalink
add table changes with use_delta_format=True example (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJin-db authored Dec 18, 2024
1 parent 1ea170e commit 1cd589b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ If the table supports history sharing(`tableConfig.cdfEnabled=true` in the OSS D
# Load table changes from version 0 to version 5, as a Pandas DataFrame.
delta_sharing.load_table_changes_as_pandas(table_url, starting_version=0, ending_version=5)

# Load table changes from version 0 to version 5 as a Pandas DataFrame, explicitly using Delta Format.
delta_sharing.load_table_changes_as_pandas(table_url, starting_version=0, ending_version=5, use_delta_format=True)

# If the code is running with PySpark, you can load table changes as Spark DataFrame.
delta_sharing.load_table_changes_as_spark(table_url, starting_version=0, ending_version=5)
```
Expand Down

0 comments on commit 1cd589b

Please sign in to comment.