Skip to content

Commit 4e4c971

Browse files
committed
Revert "Allow typepromotion from binary to fixed binary"
This reverts commit b52ef72.
1 parent b52ef72 commit 4e4c971

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

crates/iceberg/src/arrow/reader.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,10 +870,6 @@ impl ArrowReader {
870870
) if requested_precision >= file_precision && file_scale == requested_scale => true,
871871
// Uuid will be store as Fixed(16) in parquet file, so the read back type will be Fixed(16).
872872
(Some(PrimitiveType::Fixed(16)), Some(PrimitiveType::Uuid)) => true,
873-
// Some Parquet writers (e.g. Snowflake) store FIXED_LEN_BYTE_ARRAY as
874-
// Arrow Binary rather than FixedSizeBinary. Allow Binary -> Fixed(N)
875-
// since the underlying bytes are the same.
876-
(Some(PrimitiveType::Binary), Some(PrimitiveType::Fixed(_))) => true,
877873
_ => false,
878874
}
879875
}

0 commit comments

Comments
 (0)