Port functional test scenarios for sparse columns to JUnit - #2922
Merged
Ananya Garg (Ananya2) merged 3 commits intoMar 31, 2026
Conversation
Ananya Garg (Ananya2)
requested review from
Copilot,
Divang Sharma (divang),
Mahendra Chavan (machavan) and
Muskan Gupta (muskan124947)
March 26, 2026 08:30
Contributor
There was a problem hiding this comment.
Pull request overview
Ports legacy FX functional scenarios for SQL Server sparse columns into the JUnit 5 suite (SparseTest.java), organizing coverage into @Nested classes.
Changes:
- Adds JUnit 5 nested test groups for sparse column creation, insertion, selection, metadata, and update scenarios.
- Covers wide-table scenarios (e.g., >1024 sparse columns), column set XML behavior, and cursor
selectMethodbehavior. - Adds error-path validations for invalid sparse types and column-count limits.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2922 +/- ##
============================================
- Coverage 60.71% 60.56% -0.16%
+ Complexity 4953 4910 -43
============================================
Files 151 151
Lines 35022 35022
Branches 5856 5856
============================================
- Hits 21265 21212 -53
- Misses 10953 10959 +6
- Partials 2804 2851 +47 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ve “Fx” from test names
Mahendra Chavan (machavan)
approved these changes
Mar 31, 2026
Divang Sharma (divang)
approved these changes
Mar 31, 2026
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.
Summary
Ports all functional test (FX) scenarios for sparse columns from the legacy test framework to JUnit 5 in
SparseTest.java, organized as@Nestedtest classes.Changes
Adds 45 JUnit 5 tests across 5 nested test classes covering all FX sparse column scenarios:
isSparseColumnSetboundary validation, andselectMethod=cursorParameterMetaDatanullability and type validation with/without column set and wide tablesTesting
All tests are tagged with
@Tag(Constants.legacyFx)and@Tag(Constants.xAzureSQLDW).