Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

854 B
Raw Blame
package iceberg

import (
	"testing"
	"unsafe"
)

// skipIfEqualityDeleteAvroUnsupported skips the test when running on a 32-bit
// architecture. The upstream github.com/apache/iceberg-go library declares
// manifestEntry.EqualityIDs as *[]int, but the Iceberg Avro schema declares
// equality_ids as a long array. hamba/avro rejects []int for Avro long when
// int is 32-bit (386, arm, mips), causing these tests to fail through no
// fault of seaweedfs. Tracked upstream; remove this guard once iceberg-go
// switches the field to []int32/[]int64.
func skipIfEqualityDeleteAvroUnsupported(t *testing.T) {
	t.Helper()
	if unsafe.Sizeof(int(0)) < 8 {
		t.Skip("equality-delete Avro decoding is broken on 32-bit platforms " +
			"because github.com/apache/iceberg-go declares EqualityIDs as *[]int " +
			"but the Iceberg schema requires Avro long")
	}
}