-
Notifications
You must be signed in to change notification settings - Fork 58
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
added optimize delta tables to support all delta tables #386
base: main
Are you sure you want to change the base?
Conversation
src/sempy_labs/_optimize.py
Outdated
tablePath = r["Location"] | ||
bar.set_description(f"Optimizing the '{tableName}' table...") | ||
deltaTable = DeltaTable.forPath(spark, tablePath) | ||
deltaTable.optimize().executeCompaction() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why would you use the notebook instead of this? https://learn.microsoft.com/en-us/rest/api/fabric/lakehouse/background-jobs/run-on-demand-table-maintenance?tabs=HTTP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this function for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function is still there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
src/sempy_labs/_helper_functions.py
Outdated
|
||
# Extracts the workspace ID, item ID and delta table name from the abfss path. | ||
|
||
workspace_id = path.split("abfss://")[1].split("@")[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in general I'd recommend to https://docs.python.org/3/library/urllib.parse.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/sempy_labs/_optimize.py
Outdated
tablePath = r["Location"] | ||
bar.set_description(f"Optimizing the '{tableName}' table...") | ||
deltaTable = DeltaTable.forPath(spark, tablePath) | ||
deltaTable.optimize().executeCompaction() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function is still there?
No description provided.