joao-r-reis commented on code in PR #1828:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1828#discussion_r1820727221
##########
metadata.go:
##########
@@ -1291,6 +1297,26 @@ func (t *typeParser) parse() typeParserResult {
reversed: reversed,
collections: collections,
}
+ } else if strings.HasPrefix(ast.name, VECTOR_TYPE) {
+ count := len(ast.params)
+
+ types := make([]TypeInfo, count)
+ reversed := make([]bool, count)
+
+ for i, param := range ast.params[:count] {
+ class := param.class
+ reversed[i] = strings.HasPrefix(class.name,
REVERSED_TYPE)
+ if reversed[i] {
+ class = class.params[0].class
+ }
+ types[i] = class.asTypeInfo()
+ }
+
+ return typeParserResult{
+ isComposite: true,
+ types: types,
+ reversed: reversed,
+ }
Review Comment:
That test should be removed as well yes, this code is not being used to
parse vectors so the test is not relevant.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]