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

universal-query: Introduce new RawVector and VectorInput messages #4209

Merged
merged 4 commits into from
May 14, 2024

Conversation

coszio
Copy link
Contributor

@coszio coszio commented May 9, 2024

Needs #4198

Future-proofs the grpc query vector type to allow any shape of vector.

  • RawVector: Only bare vector shapes
  • VectorInput: Can include point ids

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?


message SparseVector {
repeated float data = 1;
optional SparseIndices indices = 2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not optional maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved :)

Base automatically changed from universal-query-at-shards to dev May 13, 2024 16:04
@coszio coszio mentioned this pull request May 13, 2024
34 tasks
@coszio coszio marked this pull request as ready for review May 13, 2024 21:26
@@ -46,12 +46,36 @@ message SparseIndices {
repeated uint32 data = 1;
}

// Legacy vector format, which determines the vector type by the configuration of its fields.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legacy is always the system that pays the bills 👴

@coszio coszio merged commit 4132d9a into dev May 14, 2024
17 checks passed
@coszio coszio deleted the new-grpc-vector-message branch May 14, 2024 15:40
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've noticed that this PR pushed a binary into the repo. Is this something useful or an accident?

Copy link
Contributor

@ffuugoo ffuugoo May 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed, because I somehow also had this file on disk (but not checked into the repo) and git pull complained that this file will be overridden.

I guess, the fact that I already had this file on my machine, means it was produced (by build scripts?) at some point?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good catch 👍

Let's nuke it, no idea where it comes from TBH

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generall pushed a commit that referenced this pull request May 26, 2024
…#4209)

* Introduce `RawVector` and `VectorInput` messages

* gen grpc docs

* remove extra `optional`

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

Successfully merging this pull request may close these issues.

None yet

4 participants