Repository navigation
refactor: Simplify codebase - #437
Open
Oliver Borchert (borchero) wants to merge 1 commit into
Open
Oliver Borchert (borchero) wants to merge 1 commit into
Oliver Borchert (borchero) wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #437 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 46 46
Lines 2611 2567 -44
=========================================
- Hits 2611 2567 -44 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the schema and collection refactoring.
No open issues 🎉
What changed in this PR
This PR simplifies Dataframely’s schema and collection internals by consolidating shared logic and removing redundant operations.
Changes:
- Extract shared container-column, temporal-bound, and Parquet metadata helpers.
- Streamline sampling, collection filtering, and validation-error formatting.
- Remove unused code and outdated nullable-default documentation.
| File | Description |
|---|---|
src/polars_plugin/validation_error.rs |
Remove unused Python exception declaration. |
dataframely/schema.py |
Reuse row-index mappings and collected validation results. |
dataframely/random.py |
Simplify duration-to-microsecond conversion. |
dataframely/filter_result.py |
Use shared Parquet metadata helper. |
dataframely/columns/struct.py |
Remove outdated nullable-default documentation. |
dataframely/columns/string.py |
Remove outdated nullable-default documentation. |
dataframely/columns/list.py |
Adopt shared inner-column mixin. |
dataframely/columns/integer.py |
Remove outdated nullable-default documentation. |
dataframely/columns/float.py |
Remove outdated nullable-default documentation. |
dataframely/columns/enum.py |
Remove outdated nullable-default documentation. |
dataframely/columns/decimal.py |
Remove outdated nullable-default documentation. |
dataframely/columns/datetime.py |
Consolidate resolution checks and clean up documentation. |
dataframely/columns/categorical.py |
Remove outdated nullable-default documentation. |
dataframely/columns/array.py |
Adopt shared inner-column mixin. |
dataframely/columns/_mixins.py |
Add shared container-column behavior. |
dataframely/collection/collection.py |
Consolidate filtering, error formatting, and metadata reads. |
dataframely/collection/_base.py |
Simplify metadata and common-key discovery. |
dataframely/_pydantic.py |
Reuse existing schema import. |
dataframely/_polars.py |
Add Parquet metadata helper. |
dataframely/_plugin.py |
Simplify data-column list conversion. |
dataframely/_base_schema.py |
Streamline column discovery and binding. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
One Claude-pass to streamline implementation.