rambleraptor commented on code in PR #10:
URL: https://github.com/apache/iceberg-terraform/pull/10#discussion_r2843340711
##########
internal/provider/resource_table.go:
##########
@@ -308,6 +192,30 @@ func (r *icebergTableResource) Schema(_ context.Context, _
resource.SchemaReques
}
}
+func copyAttributes(attrs map[string]rscschema.Attribute)
map[string]rscschema.Attribute {
+ newAttrs := make(map[string]rscschema.Attribute, len(attrs))
+ for k, v := range attrs {
+ newAttrs[k] = v
+ }
+ return newAttrs
+}
Review Comment:
I'm gonna be honest, I don't think I knew about that method 🤣 . I've always
been in the habit of writing these loops. Gotta love generics!
--
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]