Skip to main content

Description

Special input format for reading Apache Iceberg Puffin file footer metadata. It outputs one row per blob entry from the footer BlobMetadata list. Blobs of any type are listed. deletion-vector-v1 blobs must omit compression-codec and have the referenced-data-file and cardinality properties, and apache-datasketches-theta-v1 blobs must have the ndv property with an unsigned integer. Fixed output columns:
  • blob_type (String) - blob type, for example deletion-vector-v1
  • snapshot_id (Int64) - snapshot id of the blob
  • sequence_number (Int64) - sequence number of the blob
  • fields (Array(Int32)) - list of field ids the blob applies to
  • offset (Int64) - offset of the blob payload in the file
  • length (Int64) - length of the blob payload in bytes
  • compression_codec (String) - compression codec of the blob payload, if present
  • properties (Map(String, String)) - blob-specific properties
Optional top-level FileMetadata.properties in the footer (for example created-by) are type-checked when present but are not returned as columns. If the key is present it must be a JSON object with string values (null is rejected). LZ4-compressed and uncompressed puffin footers are supported. Footer payload size (and declared LZ4 content size) is bounded by a compression ratio where applicable and an absolute ceiling; oversized footers are rejected before allocation.

Example usage

Inspect footer blobs:
Pair with the Puffin format to read deletion-vector-v1 blob payloads.