alliasgher commented on code in PR #876:
URL: https://github.com/apache/iceberg-go/pull/876#discussion_r3074617444


##########
schema_conversions_test.go:
##########
@@ -147,3 +151,52 @@ func TestPartitionTypeToAvroSchemaNullableAndNonNullable(t 
*testing.T) {
                assert.Empty(t, encoded)
        })
 }
+
+// TestFixedPartitionColumnAvroSchema exercises the full encode/decode path
+// for a FixedType partition column. Before #845 was fixed the partition
+// schema emitted Avro "bytes" (a spec violation); the round-trip here
+// pins the behaviour to a true Avro "fixed" branch.
+func TestFixedPartitionColumnAvroSchema(t *testing.T) {

Review Comment:
   Added two manifest-level tests in f896a44:
   
    `TestFixedTypePartitionManifestRoundTrip` — creates a table schema with a 
FixedType partition column, writes an entry via `WriteManifest`, reads it back 
via `ReadManifest`, and asserts the partition value survives byte-for-byte. 
This exercises `getFieldIDMap` → `fixedByteSizes`, `avroPartitionData` → 
`convertFixedValue`, `ManifestWriter.addEntry`, and 
`convertAvroValueToIcebergType` → `unwrapFixedValue`.
    
    `TestFixedTypePartitionBackwardCompatibility` — constructs the Avro payload 
directly with a `bytes`-typed partition field (simulating what old code wrote), 
then reads it with the new code and asserts the value is returned as `[]byte` 
without panicking.



-- 
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]

Reply via email to