Skip to content

_build_partition_hash

Internal helper
This page documents an internal implementation helper, not a primary public API.
Source code in src/fabricops_kit/drift.py
840
841
842
843
844
845
846
847
848
849
850
851
def _build_partition_hash(partition_value: Any, row_count: int, business_key_count: int, max_watermark: Any, min_watermark: Any, business_key_hash: str) -> str:
    payload = "|".join(
        [
            str(partition_value),
            str(row_count),
            str(business_key_count),
            str(max_watermark),
            str(min_watermark),
            str(business_key_hash),
        ]
    )
    return _hash(payload)