Skip to content
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

Regression in LINQ Skip in 3.47.0 #5016

Open
StevenKehrli opened this issue Feb 13, 2025 · 0 comments
Open

Regression in LINQ Skip in 3.47.0 #5016

StevenKehrli opened this issue Feb 13, 2025 · 0 comments

Comments

@StevenKehrli
Copy link

We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.

Describe the bug
When queryable includes a Skip() method, feedIterator.ReadNextAsync throws an ArgumentOutOfRangeException

To Reproduce
Use Microsoft.Azure.Cosmos 3.47.0

Create the queryable: var queryable = container.GetItemLinqQueryable().Skip(1);
Get the feediterator: ver feediterator = queryable.ToFeedIterator();
Get the feedresponse: var feedresponse = await feediterator.ReadNextAsync();

Exception is thrown:

An exception of type 'System.AggregateException' occurred in System.Private.CoreLib.dll but was not handled in user code: 'One or more errors occurred.'
Inner exceptions found, see $exception in variables window for more details.
Innermost exception System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'Value')

Expected behavior
No exception. Valid feedresponse is returned and items can be enumerated.

This is the behavior in 3.46.1.

Actual behavior
An exception of type 'System.AggregateException' occurred in System.Private.CoreLib.dll but was not handled in user code: 'One or more errors occurred.'
Inner exceptions found, see $exception in variables window for more details.
Innermost exception System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'Value')

Environment summary
SDK Version: 3.47.0
OS Version (e.g. Windows, Linux, MacOSX): macOS Sequoia 15.3

Additional context
feediterator queryspec looks like this: SELECT VALUE root FROM root OFFSET 1 LIMIT 2147483647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants