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

Changhiskhan/datadiff #380

Merged
merged 3 commits into from
Dec 18, 2022
Merged

Changhiskhan/datadiff #380

merged 3 commits into from
Dec 18, 2022

Conversation

changhiskhan
Copy link
Contributor

This is on top of #379

Ignore the "compute_metric" stuff in this PR just look at the data diff changes

@changhiskhan changhiskhan requested a review from eddyxu December 17, 2022 01:47
Copy link
Contributor

@eddyxu eddyxu left a comment

Choose a reason for hiding this comment

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

lgtm overall . small qq.

@@ -18,7 +18,7 @@
import pytz

import lance
from lance.util.versioning import get_version_asof
from lance.util.versioning import get_version_asof, compute_metric, diff, LanceDiff, RowDiff, ColumnDiff
Copy link
Contributor

Choose a reason for hiding this comment

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

isort.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

return pd.concat(results)


def diff(uri, start_version: int, end_version: int) -> LanceDiff:
Copy link
Contributor

Choose a reason for hiding this comment

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

should we change the parameters to v1 and v2?

start/end makes me think this is find all versions from v1 to v2. like git log v1..v2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure. changed

@changhiskhan changhiskhan merged commit 8997527 into main Dec 18, 2022
@changhiskhan changhiskhan deleted the changhiskhan/datadiff branch December 18, 2022 19:56
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.

2 participants