You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "badalprasadsingh (via GitHub)" <gi...@apache.org> on 2025/09/01 06:57:44 UTC

Re: [PR] feat(table): add fanout partition writer and rolling data writer [iceberg-go]

badalprasadsingh commented on code in PR #524:
URL: https://github.com/apache/iceberg-go/pull/524#discussion_r2313053251


##########
manifest.go:
##########
@@ -37,6 +37,19 @@ import (
 	"github.com/hamba/avro/v2/ocf"
 )
 
+func init() {
+	avro.Register("fixed", [1]byte{})
+	avro.Register("fixed", [2]byte{})
+	avro.Register("fixed", [3]byte{})
+	avro.Register("fixed", [4]byte{})
+	avro.Register("fixed", [5]byte{})
+	avro.Register("fixed", [6]byte{})
+	avro.Register("fixed", [7]byte{})
+	avro.Register("fixed", [8]byte{})
+	avro.Register("fixed", [16]byte{})

Review Comment:
   These are required so that `Avro` logical type names to Go concrete types for `serialization/deserialization`.
   
   Without registration, the Avro library doesn't know how to handle custom logical types. Enables proper `encoding/decoding` of Iceberg-specific data types in manifest files



-- 
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-unsubscribe@iceberg.apache.org

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


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