-
Notifications
You must be signed in to change notification settings - Fork 622
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
CASSGO-11 Support vector type #1828
base: trunk
Are you sure you want to change the base?
Conversation
Have you tested it with protoV5? If not I would be glad to handle it with #1822. |
Hmm protocol v5 shouldn't matter much here, the encoding of the type itself is the same regardless of whether v4 or v5 is being used. |
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.
It's looking solid, I left a few comments. Also note that you left a few TODOs.
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.
I like it 👍 added a couple of small comments
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.
Good stuff 👍
marshal.go
Outdated
} | ||
if k == reflect.Array { | ||
if rv.Len() != info.Dimensions { | ||
return unmarshalErrorf("unmarshal vector: array with wrong size") |
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.
NIT: maybe add the expected and provided sizes to the error message
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.
👍
vector_test.go
Outdated
{name: "smallint", cqlType: TypeSmallInt.String(), value: []int16{127, 256, -1234}}, | ||
{name: "tinyint", cqlType: TypeTinyInt.String(), value: []int8{127, 9, -123}}, | ||
{name: "duration", cqlType: TypeDuration.String(), value: []Duration{duration1, duration2, duration3}}, | ||
// TODO(lantonia): Test vector of custom types |
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.
NIT: a couple of TODOs in this test still
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.
👍
@@ -197,5 +242,6 @@ jobs: | |||
sleep 30s | |||
- name: Integration tests | |||
run: | | |||
source ~/venv/bin/activate |
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.
just a reminder to remove the workflow changes from this PR before wrapping up (we'll have to potentially merge #1833 first) when we get a second +1
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.
Yes, this PR will wait for #1833. I will remove workflow changes form this PR, rebase and squash commits.
Fix #1734.
Complete vector type support for GoCQL. Supports fixed and variable-length vector types (e.g. vector of floats, vector of list of text).