GeezerVison is showing github.com — Remove Int and Double boxing · Issue #113 · googleapis/google-cloud-node
Remove Int and Double boxing #113DescriptionWe don't seem to need to provide boxing to be more precise. Current way of detecting double numbers seem to be working fine. I want to remove Int and Double custom types for cleanup.
Does it sound good? Activityadded this to the This milestone has been deleted milestone on Aug 15, 2014silvolu commented on Aug 15, 2014 stephenplusplus commented on Aug 15, 2014 rakyll commented on Aug 15, 2014 ContributorAuthor More actions There would be no explicit way to force a field to be double. If it's not a floating point number, we will persist it as uint64 in the backend.
I'm wondering about the impact it has to the backend and indexing. cc/ @pcostell pcostell commented on Aug 15, 2014 Unfortunately indexing uses property type to determine order: https://developers.google.com/appengine/docs/java/datastore/indexes#Java_Properties_with_mixed_value_types
When two entities have properties of the same name but different value types, an index of the property sorts the entities first by value type and then by a secondary ordering appropriate to each type. For example, if two entities each have a property named age, one with an integer value and one with a string value, the entity with the integer value always precedes the one with the string value when sorted by the age property, regardless of the property values themselves.
rakyll commented on Aug 15, 2014 ContributorAuthor More actions Ah, an immediate WONTFIX then. Thanks.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|