Set floating point key with couchbase-client-1.1.0.jar
I am trying to perform a query to a view I created for the beer-sample with the abv values. When I try to set the value to a floating point number (5.2f) using ComplexKey.of(5.2f) the query created is not ?key=5.2 as expected but ?key=%225.2%22.
The reason is the function Query.prepareValue that throws a NumberFormatException when it fails to parse my value as a Long.
My question is why does it try to parse the value as a Long exclusively and does not attempt to parse it as a float.