MD5 Hash Parity Between PostgreSQL and Apache Spark: Root Cause and Fix

How a type system boundary between PostgreSQL and Apache Spark silently breaks hash parity — and the three rules that fix it.