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

Removing SQLAlchemy from DataChain.compare() #881

Merged
merged 16 commits into from
Feb 5, 2025

Conversation

ilongin
Copy link
Contributor

@ilongin ilongin commented Feb 1, 2025

Removing SQLAlchemy constructs from compare() function.

TODO:

@ilongin ilongin marked this pull request as draft February 1, 2025 02:53
@ilongin ilongin linked an issue Feb 1, 2025 that may be closed by this pull request
Copy link

cloudflare-workers-and-pages bot commented Feb 1, 2025

Deploying datachain-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: edc6696
Status: ✅  Deploy successful!
Preview URL: https://bdee409a.datachain-documentation.pages.dev
Branch Preview URL: https://ilongin-721-compare-remove-s.datachain-documentation.pages.dev

View logs

Copy link

codecov bot commented Feb 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.70%. Comparing base (dd4ae39) to head (edc6696).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #881      +/-   ##
==========================================
- Coverage   87.73%   87.70%   -0.04%     
==========================================
  Files         129      129              
  Lines       11483    11464      -19     
  Branches     1547     1546       -1     
==========================================
- Hits        10075    10054      -21     
- Misses       1020     1021       +1     
- Partials      388      389       +1     
Flag Coverage Δ
datachain 87.62% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ilongin ilongin marked this pull request as ready for review February 4, 2025 11:32
Copy link
Contributor

@dreadatour dreadatour left a comment

Choose a reason for hiding this comment

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

Quite a big change. Code looks good to me 👍 didn’t check if it works though 👀

@@ -44,66 +44,49 @@ def _compare( # noqa: PLR0912, PLR0915, C901
modified: bool = True,
same: bool = True,
status_col: Optional[str] = None,
) -> "DataChain":
):
Copy link
Contributor

Choose a reason for hiding this comment

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

😥

@ilongin ilongin merged commit 2b51c22 into main Feb 5, 2025
37 checks passed
@ilongin ilongin deleted the ilongin/721-compare-remove-sqlalchemy branch February 5, 2025 11:31
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.

Try removing SQLALchemy code in DataChain.compare() with our own API
2 participants