Skip to content

refactor: Simplify codebase - #437

Open
Oliver Borchert (borchero) wants to merge 1 commit into
mainfrom
simp
Open

Oliver Borchert (borchero) wants to merge 1 commit into
mainfrom
simp

Conversation

@borchero

Copy link
Copy Markdown
Member

Motivation

One Claude-pass to streamline implementation.

@codecov

codecov Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (367360c) to head (721e2ef).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants