-
Notifications
You must be signed in to change notification settings - Fork 523
Query : Fixes Skip + Order By Bug #5221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CosmosItemLinqTests.cs
Show resolved
Hide resolved
Microsoft.Azure.Cosmos/src/Query/Core/Pipeline/PipelineFactory.cs
Outdated
Show resolved
Hide resolved
Do we need to repeat the original check here? What happens if query is missing ORDER BY but has only TOP (did we have coverage for that case in the original change)? Refers to: Microsoft.Azure.Cosmos/src/Query/Core/Pipeline/PipelineFactory.cs:299 in 4d983f8. [](commit_id = 4d983f8, deletion_comment = False) |
With both SKIP + ORDER BY and just SKIP queryInfo.HasTop is set to false, so this assert is never hit. |
…/Azure/azure-cosmos-dotnet-v3 into users/mayapainter/skiporderbybug
|
Consider adding coverage to NegativeQueryTests::TestTopOffsetLimitClientRanges for ORDER BY + OFFSET + LIMIT In reply to: 2923582595 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
…/Azure/azure-cosmos-dotnet-v3 into users/mayapainter/skiporderbybug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
Description
Addresses a bug where the top value was being set > int.Max for queries with ORDER BY and SKIP clauses. This triggered an assert and caused query failures.
Type of change
Closing issues
closes #5016