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
We 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.
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.
Activity
silvolu commentedon Aug 15, 2014
SGTM.
stephenplusplus commentedon Aug 15, 2014
Isn't boxing them the only way we do the detection? https://github.com/GoogleCloudPlatform/gcloud-node/blob/master/lib/datastore/entity.js#L208-215:
If we remove them, how would a user specify they want a double?
rakyll commentedon Aug 15, 2014
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 commentedon 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
rakyll commentedon Aug 15, 2014
Ah, an immediate WONTFIX then. Thanks.
57 remaining items
chore: the ultimate fix for repo-tools EPERM (#113)
chore: Jsdoc fresh migration (#48)
chore(deps): update dependency tar to v7.5.1 (#113)
chore(deps): update dependency gts to ^0.9.0 (#113)
chore(deps): update dependency sinon to v8 (#113)
update to .nycrc with --all enabled (#113)
update to .nycrc with --all enabled (#113)
build: do not fail builds on codecov errors (#528) (#113)
build: patch Windows container, fixing Node 10 (#113)
build: patch Windows container, fixing Node 10 (#113)
chore!: upgrade to node 18 (#113)
Pass rules when autocreating a family. (#113)
Pass rules when autocreating a family. (#113)
Pass rules when autocreating a family. (#113)
Pass rules when autocreating a family. (googleapis#113)