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
@kushagraThapar Of course I made a mistake and made an issue in wrong repo... Sorry for that.
Nevertheless, here is the same issue. Of course, default Locale can be set by user to properly parse double to string, but I think this code should not depend on user Locale settings.
Describe the bug
Calling
CosmosAsyncContainer.queryItems()
withFeedOptions.isPopulateQueryMetrics() == true
producesjava.lang.NumberFormatException
To Reproduce
Call
CosmosAsyncContainer.queryItems()
withFeedOptions.isPopulateQueryMetrics() == true
Expected behavior
Should parse metrics.
Actual behavior
java.lang.NumberFormatException
is thrownEnvironment summary
SDK Version: 4.0.1
Java JDK version: 11
OS Version: Win10
Additional context
Adding
Locale.US
intoString.format()
should fix this issue.azure-cosmosdb-java/gateway/src/main/java/com/microsoft/azure/cosmosdb/rx/internal/query/DocumentProducer.java
Line 91 in 5fe53f7
The text was updated successfully, but these errors were encountered: