You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "joao-r-reis (via GitHub)" <gi...@apache.org> on 2025/04/08 12:31:02 UTC

Re: [PR] CASSGO-11 Support vector type [cassandra-gocql-driver]

joao-r-reis commented on code in PR #1828:
URL: https://github.com/apache/cassandra-gocql-driver/pull/1828#discussion_r2033080842


##########
helpers_test.go:
##########
@@ -223,11 +223,38 @@ func TestGetCassandraType(t *testing.T) {
 				Elem:       NativeType{typ: TypeDuration},
 			},
 		},
+		{
+			"vector<float, 3>", VectorType{
+				NativeType: NativeType{
+					typ:    TypeCustom,
+					custom: VECTOR_TYPE,
+				},
+				SubType:    NativeType{typ: TypeFloat},
+				Dimensions: 3,
+			},
+		},
+		{
+			"vector<vector<float, 3>, 5>", VectorType{

Review Comment:
   It would be nice to have a couple of cases with more complex types like `vector<map<uuid,timestamp>, 5>` for example



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org