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

Implement function to get updated partitions #24

Merged
merged 4 commits into from
Feb 5, 2024

Conversation

huynguyent
Copy link
Contributor

Address issue #23

The logic for exclude_optimize_operations mentioned in the issue is more complicated than I expected. I'll implement it in another PR

I also had to regenerate the lock file because of this error when running poetry install

Installing dependencies from lock file
Warning: poetry.lock is not consistent with pyproject.toml. You may be getting improper dependencies. Run `poetry lock [--no-update]` to fix it.

Because levi depends on deltalake (^0.9) which doesn't match any versions, version solving failed.

@MrPowers MrPowers self-requested a review February 5, 2024 12:55
Copy link
Collaborator

@MrPowers MrPowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MrPowers MrPowers merged commit 180f88c into mrpowers-io:main Feb 5, 2024
@huynguyent huynguyent deleted the get-updated-partitions branch February 5, 2024 13:15
@@ -96,3 +99,13 @@ def boundary_parser(boundary):
else:
raise ValueError(
f"{boundary} cannot be parsed. Valid prefixes are <, <=, >, and >=. Two values can be delimited with a dash. Valid examples include <10kb and 10kb-5gb.")

def updated_partitions(delta_table: DeltaTable, start_time: Optional[datetime.datetime] = None, end_time: Optional[datetime.datetime] = None) -> dict[str, str]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type might be wrong here. I think this should have been List[dict[str, str]]

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.

3 participants