Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector field types are not replicated #9

Open
JaredHatfield opened this issue May 5, 2024 · 1 comment
Open

Vector field types are not replicated #9

JaredHatfield opened this issue May 5, 2024 · 1 comment

Comments

@JaredHatfield
Copy link
Member

Firestore has introduced a new field type of Vector.

The underlying library (firestoreproto2map) used to transform the protocol buffer to a Map must be updated first, then this library will be able to replicate those fields correctly. This is blocked by UnitVectorY-Labs/firestoreproto2map#6

@JaredHatfield
Copy link
Member Author

Per the analysis discussed on UnitVectorY-Labs/firestoreproto2map#6 and some additional experimentation, this application work with replicating vectors based on looking at the records in the web console.

Given how this is currently implemented in that Google made it so vectors are just a Map with a special structure. This is unfortunate in that it means there isn't a direct object that can be used right now to represent these, but this may change with a future version of the Firestore SDK. However, this does mean this can replicate data without any updates which is useful.

Given this is a Pre-GA offering this is likely subject to change and make eventually break.

I was expecting that the Vector would need a dedicated class like some of the other specialized Firestore data types. This may be an intentional choice by Google for how this is implemented or have been a time savings on the implementation as not introducing a new data type which likely saved a significant amount of time in implementing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant