Enhance test coverage for GraphQL queries by adding orderBy clause to… - #3753
Merged
Merged
Conversation
… gQLmappings in multiple test cases
Arpit Gupta (ar-guptaar)
requested review from
Alekhya-Polavarapu,
Aniruddh Munde (Aniruddh25),
Jerry Nixon (JerryNixon),
RubenCerna2079,
aaronburtle,
Anusha Kolan (anushakolan),
rusamant,
Sourabh Jain (sourabh1007),
Souvik Ghosh (souvikghosh04),
Stuart Padley (stuartpa) and
vadeveka
as code owners
August 5, 2026 07:49
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 6 pipeline(s). |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR strengthens GraphQL integration test reliability and coverage for groupBy scenarios involving mapped (aliased) columns by making result ordering deterministic and adding DWSQL-specific regression coverage.
Changes:
- Adds
orderByto existing MS SQLgQLmappingsgroupByGraphQL test queries to ensure deterministic group ordering. - Adds two new DWSQL end-to-end regression tests covering
groupBywith mapped columns (fields-only, and fields + aggregations + HAVING + ordering). - Normalizes formatting in several DWSQL expected SQL query strings (whitespace-only adjustments).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Service.Tests/SqlTests/GraphQLQueryTests/MsSqlGraphQLQueryTests.cs | Adds explicit orderBy to mapped-column groupBy GraphQL queries to make returned group order deterministic for assertions. |
| src/Service.Tests/SqlTests/GraphQLQueryTests/DwSqlGraphQLQueryTests.cs | Adds DWSQL regression coverage for mapped-column groupBy scenarios and applies minor SQL string formatting cleanups. |
Arpit Gupta (ar-guptaar)
enabled auto-merge (squash)
August 5, 2026 15:10
naxing123
approved these changes
Aug 5, 2026
Aniruddh Munde (Aniruddh25)
approved these changes
Aug 6, 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.
Why make this change?
In a previously merged PR, there were comments about some gaps in testing scenarios, which is addressed as part of this change.
What is this change?
This pull request adds comprehensive regression tests for groupBy queries involving mapped (aliased) columns in both MS SQL and DWSQL environments, and ensures deterministic query results by explicitly specifying
orderByin all relevant test GraphQL queries.Test Coverage Improvements:
DwSqlGraphQLQueryTests.cs:How was this tested?