kevinjqliu commented on PR #435: URL: https://github.com/apache/iceberg-go/pull/435#issuecomment-2895133065
+1 to fixing it in core if possible. i did some digging yesterday. iceberg-go writes [`partitions` with field-id 507](https://github.com/apache/iceberg-go/blob/main/internal/avro_schemas.go#L141-L146) and within, writes `field_summary` with **[element-id 508](https://github.com/apache/iceberg-go/blob/main/internal/avro_schemas.go#L141-L146)** the [`field_summary` struct itself has field-id 508](https://github.com/apache/iceberg-go/blob/main/internal/avro_schemas.go#L95-L110) The main issue is in the [lookup by field-id here in TypeToSchema](https://github.com/apache/iceberg/blob/a7f3dc79a2f42a4875ac35eec2137ecff15204fc/core/src/main/java/org/apache/iceberg/avro/TypeToSchema.java#L100-L105) Thats where i left off. My theory is that it has to do with List<Struct> and how field-id/element-id is processed One thing i noticed is that `beforeField` is only for `Types.NestedField`, but sure if this is 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]
