Release highlights: v1.21.2
⚠️ Breaking changes: Compound hints precedence and replacement behavior
PR: #3431
Starting with v1.21.2, compound hints (primary_key, merge_key, cluster, partition) now follow explicit precedence and replacement rules. This affects how hints are resolved.
What changed:
-
Direct
merge_keyandprimary_keyhints now take precedence over column-level hints- When you specify
primary_key="col_1"at the resource level andcolumns={"col_2": {"primary_key": True}}, onlycol_1will be treated as the primary key - This also applies when using
apply_hints
- When you specify
-
Redefining compound hints replaces previous configuration
- If you redefine compound hints on a resource that was already extracted, the new properties completely replace the previous configuration
- Example: If you first set
partitiononcol_1, then redefine the resource withpartitiononcol_2, onlycol_2will remain partitioned
-
Direct
merge_keyandprimary_keyhints viaapply_hintsare authoritative- When calling
apply_hintswith direct key hints (primary_key="col_1"), they replace the existing key configuration instead of merging
- When calling
Notes
- Previously, all compound hints were merged additively