dlt.destinations.impl.filesystem.iceberg_partition_spec
get_partition_transform
def get_partition_transform(spec: PartitionSpec) -> Transform[S, Any]
Get the PyIceberg Transform object for a partition spec.
Arguments:
spec- The PartitionSpec to get the transform for
Returns:
A PyIceberg Transform object
Raises:
ValueError- If the transform is not recognized
build_iceberg_partition_spec
def build_iceberg_partition_spec(
arrow_schema: pa.Schema, spec_list: Sequence[PartitionSpec]
) -> tuple[IcebergPartitionSpec, IcebergSchema]
Turn a dlt PartitionSpec list into a PyIceberg PartitionSpec. Returns the PartitionSpec and the IcebergSchema derived from the Arrow schema.