Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add package deltalake integration #13

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leo-schick
Copy link
Member

@leo-schick leo-schick commented Feb 20, 2023

Adds simple integration support for package deltalake:

It adds a class mara_storage.integrations.deltalake.DeltaTable which creates a deltalake.DeltaTable but supports in addition the following parameters:

  • storage: the mara storage class or alias to be passed
  • path: The path inside the storage.

When storage is used, you can create the table simply with the mara alias. Example:

from mara_storage.integrations.deltalake import DeltaTable

table = DeltaTable('sales/invoices', storage='lakehouse')  # where 'lakehouse' is your storage alias

# returns the parquet files in the delta table of the current version
print(table.files())

Open tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant