Repository navigation
feat(sqlserver): partition maintenance and DDL helpers - #13
Merged
Merged
Conversation
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release/v1.0.0.dev3 #13 +/- ##
=======================================================
- Coverage 79.02% 78.67% -0.36%
=======================================================
Files 144 148 +4
Lines 8893 9805 +912
Branches 1364 1535 +171
=======================================================
+ Hits 7028 7714 +686
- Misses 1383 1530 +147
- Partials 482 561 +79
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.



Description
Adds SQL Server partition DDL and backend-level maintenance on the core partition plan/report contract.
SQL Server does not use
PARTITION BYorPARTITION OF: a partitioned table is a partition function, a partition scheme and a table builtON <scheme>(<column>).CREATE PARTITION FUNCTION,CREATE PARTITION SCHEME,SPLIT RANGE,MERGE RANGE,NEXT USED,SWITCH PARTITION, and dropping the function or scheme.SQLServerPartitionPlandescribes the function, boundaries, direction and optional scheme without embedding a table name or retention rule.SQLServerPartitionMaintenanceandAsyncSQLServerPartitionMaintenanceexposeensure,list,validate,retention_boundaries,drop_or_mergeanddrop_before.ensurecreates missing functions and schemes and splits only boundaries the server does not already hold, emittingNEXT USEDbefore each split; a direction or data-type mismatch raises instead of silently repairing.listreports functions, schemes, tables and per-partition ranges;validateonly reports issues.drop_beforecomputes boundaries at or before the caller's cutoff and merges them; there is no genericADD/DROP PARTITION, and there is no subpartitioning at any version.No tracking issue.
Type of change
feat: A new featuredocs: Documentation only changes (if related to the new feature)test: Adding missing tests or correcting existing tests (for the new feature)perf: A code change that improves performance (if part of the feature)chore: Changes to the build process or auxiliary tools and libraries suchs as documentation generation (if related to the new feature)ci: Changes to our CI configuration files and scripts (if related to the new feature)build: Changes that affect the build system or external dependencies (if related to the new feature)revert: Reverts a previous commitBreaking Change
(If Yes, please describe the impact and migration path below):
N/A
Impact on End-Users:
No backward-incompatible changes are expected for typical end-user applications.
Impact on Backend Developers (Custom Implementations):
No backward-incompatible changes are expected for backend developers using custom implementations.
Applicable
rhosocial-activerecordVersion Range:rhosocial-activerecord>=1.0.0.dev30,<2.0.0Related Repositories/Packages
feature/partition-maintenance); this backend'stest.ymlinstalls core from that branch until PR #130 merges.release/v1.0.0.dev17.Testing
Test Plan:
Local full-suite execution was skipped per the merge workflow; the repository CI matrix will run:
CI covers SQL Server 2017/2019/2022/2025 across Python 3.9–3.14.
Checklist
.claude/code_style.md.README.md, etc.)..claude/version_control.md(changelog.d/<issue_number>.<type>.md).Additional Notes
The README conflict from the rebase was resolved by keeping the partition-maintenance capability description and removing the obsolete metadata-only limitation text. The changelog fragment is intentionally added after CI passes.