You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm not sure if this is more a Cosmos API issue or an emulator issue, but if I try to call my emulator instance with a create container request, I get a message that says I did not provide a partition key kind eventhough it was provided.
This happens with direct REST API calls and using the Microsoft.EntityFrameworkCore.Cosmos v 9.02 in C#.
To Reproduce
Create an http file or use any API tool to execute a REST request
DigiBanks99
changed the title
Create container fails claiming not partition key kind has been provided while it has
Create container fails claiming no partition key kind has been provided while it has
Mar 11, 2025
Thanks for reporting this issue. This is happening because as of now, hierarchical partition keys (MultiHash kind partition key) are not supported on the V-Next emulator. However, we have a plan for adding support for hierarchical partition keys and would be releasing this out soon.
mihaitodor
added a commit
to redpanda-data/connect
that referenced
this issue
Mar 26, 2025
Fixes#3189, or so I hope...
This also updates the Azure dependencies.
Annoyingly, the original CosmosDB emulator doesn't have an
ARM-based container and the new one ([`mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview`](https://learn.microsoft.com/en-us/azure/cosmos-db/emulator-linux))
has some gaps which break the existing tests such as: Azure/azure-cosmos-db-emulator-docker#182.
Signed-off-by: Mihai Todor <todormihai@gmail.com>
Fixes#3189, or so I hope...
This also updates the Azure dependencies.
Annoyingly, the original CosmosDB emulator doesn't have an
ARM-based container and the new one ([`mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview`](https://learn.microsoft.com/en-us/azure/cosmos-db/emulator-linux))
has some gaps which break the existing tests such as: Azure/azure-cosmos-db-emulator-docker#182.
Signed-off-by: Mihai Todor <todormihai@gmail.com>
mihaitodor
added a commit
to redpanda-data/connect
that referenced
this issue
Mar 26, 2025
Fixes#3189, or so I hope...
This also updates the Azure dependencies.
Annoyingly, the original CosmosDB emulator doesn't have an
ARM-based container and the new one ([`mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview`](https://learn.microsoft.com/en-us/azure/cosmos-db/emulator-linux))
has some gaps which break the existing tests such as: Azure/azure-cosmos-db-emulator-docker#182.
Signed-off-by: Mihai Todor <todormihai@gmail.com>
Describe the bug
I'm not sure if this is more a Cosmos API issue or an emulator issue, but if I try to call my emulator instance with a create container request, I get a message that says I did not provide a partition key kind eventhough it was provided.
This happens with direct REST API calls and using the Microsoft.EntityFrameworkCore.Cosmos v 9.02 in C#.
To Reproduce
{"message":"partitionKey.kind is required in the request body"}
Expected behavior
The partition key needs to be supported or the documentation must describe the limitations of the partitionKey
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I've noticed that if I replace the
MultiHash
value withHash
it works.The text was updated successfully, but these errors were encountered: