-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat(vector): add vector to schema #9060
Conversation
Harshil Goel seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
2f14201
to
a3c812c
Compare
a3c812c
to
32238a1
Compare
735a883
to
9769f6e
Compare
} | ||
if !it.Next() { | ||
// Nothing to read. | ||
return []string{}, it.Item().Errorf("Invalid ending.") | ||
return tokenizers, vectorSpecs, it.Item().Errorf("Invalid ending.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why can't we just return nil, nil, err
@@ -42,7 +42,8 @@ func checkSchema(t *testing.T, h map[string]*pb.SchemaUpdate, expected []nameTyp | |||
for _, nt := range expected { | |||
typ, found := h[nt.name] | |||
require.True(t, found, nt) | |||
require.EqualValuesf(t, *nt.typ, *typ, "found in map: %+v\n expected: %+v", *typ, *nt.typ) | |||
require.EqualValuesf(t, *nt.typ, *typ, "found in map: %+v\n expected: %+v", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undo this change
resp, err := testutil.RetryQuery(dg, "schema {}") | ||
require.NoError(t, err) | ||
|
||
x.AssertTrue(strings.Contains(string(resp.Json), `{"predicate":"vectortest","type":"vfloat","tokenizer":["hnsw"]}`)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct
@@ -0,0 +1,107 @@ | |||
/* | |||
* Copyright 2023 Hypermode, Inc. and Contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to keep it Hypermode?
No description provided.