azure-cosmos-dotnet-v3: Latest release does not fix GetItemLinqQueryable issue [Still broken 3/2/23]
Describe the bug
#3406 does not completely address #3207, with respect to enum handling in LINQ queries; it will still use the enum’s integer value, discarding the serializer preference set on the Cosmos context;
i.e.
enum MyEnum
{
ValueA = 0
}
When querying
query.Where(c => c.Item == MyEnum.ValueA)
will translate to
WHERE root["Item"] = 0
-- Should be WHERE root["Item"] == "ValueA", if JsonStringEnumConverter is configured on JSON Serializer settings
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 21 (16 by maintainers)
I haven’t been able to get around to this yet. I’m hoping I will be able to tackle it in May
Bump!
May was a few months ago. Any update?
A new SDK release containing the hot fix to revert the code change that introduces this regression has been released. I am still working on another fix for the original issue.
We are actively investigating this issue from our side. As a temporary mitigation, we will be reverting the PR that introduces this regression and put out a more wholistic fix that addresses the original issue