Azure / Azure/azure-cosmosdb-java
Wrong delimiter in Query Metrics
- Dominant language
- Java
- Stars
- 59
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Calling `CosmosAsyncContainer.queryItems()` with `FeedOptions.isPopulateQueryMetrics() == true` produces `java.lang.NumberFormatException`
**To Reproduce**
Call `CosmosAsyncContainer.queryItems()` with `FeedOptions.isPopulateQueryMetrics() == true`
**Expected behavior**
Should parse metrics.
**Actual behavior**
`java.lang.NumberFormatException` is thrown
**Environment summary**
SDK Version: 4.0.1
Java JDK version: 11
OS Version: Win10
**Additional context**
Adding `Locale.US` into `String.format()` should fix this issue.
https://github.com/Azure/azure-cosmosdb-java/blob/5fe53f7a1920e42568b150aaa58af0f8ceabe0b4/gateway/src/main/java/com/microsoft/azure/cosmosdb/rx/internal/query/DocumentProducer.java#L91
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.