twuebi commented on code in PR #495:
URL: https://github.com/apache/iceberg-go/pull/495#discussion_r2255205007


##########
table/metadata.go:
##########
@@ -215,6 +218,7 @@ func MetadataBuilderFromBase(metadata Metadata) 
(*MetadataBuilder, error) {
 func (b *MetadataBuilder) HasChanges() bool { return len(b.updates) > 0 }
 
 func (b *MetadataBuilder) CurrentSpec() iceberg.PartitionSpec {
+       // FIXME: this should return a pointer which can be nil to avoid out of 
bounds indexing / np derefs
        return b.specs[b.defaultSpecID]

Review Comment:
   uses b.GetSpecByID(b.defaultSpecID) instead now



-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to