tengu-alt commented on code in PR #1768:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1768#discussion_r1843480936
##########
metadata.go:
##########
@@ -331,20 +315,12 @@ func compileMetadata(
aggregates[i].StateFunc =
*keyspace.Functions[aggregates[i].stateFunc]
keyspace.Aggregates[aggregates[i].Name] = &aggregates[i]
}
- keyspace.Views = make(map[string]*ViewMetadata, len(views))
- for i := range views {
- keyspace.Views[views[i].Name] = &views[i]
+ types := make([]UserTypeMetadata, len(materializedViews))
+ for i, mView := range materializedViews {
+ types[i].Keyspace = mView.Keyspace
+ types[i].Name = mView.Name
Review Comment:
Good point! I've change the `getViewsMetadata` func, saving old
functionality, but for `UserType`.
--
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]