You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Iceberg partition transforms diverge from the spec: decimal bucket, string truncate, pre-1970 hour #7648
Three Iceberg partition transforms compute values that differ from the spec and from PyIceberg / Java:
bucket on decimals hashes the wrong bytes for negatives, zero, and values whose leading bit is set (e.g. 1.28, unscaled 128). The spec hashes the minimal two's-complement bytes, sign bit included (0x00 0x80 for 128).
truncate on strings slices bytes rather than code points, so non-ASCII strings fail.
hour divides toward zero, so timestamps before 1970 land one hour late.
Daft uses these both to partition writes and to prune reads, so filters such as col == Decimal("-12.34") silently drop matching rows from tables written by Spark or PyIceberg, and Daft-written tables are mispartitioned for other engines.
Activity
fix(iceberg): match partition transform spec for decimal bucket, stri…
fix(iceberg): match the spec for decimal bucket, string truncate and …