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

[ReadMany] does not return results for partial hierarchical partiton keys #4946

Open
xperiandri opened this issue Jan 2, 2025 · 2 comments · May be fixed by #4977
Open

[ReadMany] does not return results for partial hierarchical partiton keys #4946

xperiandri opened this issue Jan 2, 2025 · 2 comments · May be fixed by #4977
Assignees
Labels
bug Something isn't working customer-reported Issue created by a customer

Comments

@xperiandri
Copy link

Describe the bug
Having a container with partition keys /tenant_id, /user_id
Having an object

{
  "$type": "role",
  "id": "x",
  "tenant_id": "t"
}

executing ReadManyAsync with partition key new PartitionKeyBuilder().Add("t").AddNoneType().Build() reads nothing.
No other combination works too.

To Reproduce
Define objects as described above

Expected behavior
Read happens successfully and returns objects with partial hierarchical partition keys

Actual behavior
Nothing returned.

Environment summary
SDK Version: 3.47.0-preview.0

Additional context
Both Azure and Emulator works the same

@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issue created by a customer label Jan 2, 2025
@NaluTripician NaluTripician self-assigned this Jan 17, 2025
@NaluTripician
Copy link
Contributor

Hi @xperiandri, this appears to be a bug with the SDK in the generation of the ReadMany Query. I was able to reproduce it and find the cause. We will ensure that this is fixed in an upcoming version of the SDK. I will provide updates on this issue regarding the fix when they come.

@xperiandri
Copy link
Author

Thanks! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working customer-reported Issue created by a customer
Projects
None yet
2 participants