Skip to main content
Version: devel

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:

  1. Direct merge_key and primary_key hints now take precedence over column-level hints

    • When you specify primary_key="col_1" at the resource level and columns={"col_2": {"primary_key": True}}, only col_1 will be treated as the primary key
    • This also applies when using apply_hints
  2. 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 partition on col_1, then redefine the resource with partition on col_2, only col_2 will remain partitioned
  3. Direct merge_key and primary_key hints via apply_hints are authoritative

    • When calling apply_hints with direct key hints (primary_key="col_1"), they replace the existing key configuration instead of merging

Notes

  • Previously, all compound hints were merged additively

More details → Compound Hints


This demo works on codespaces. Codespaces is a development environment available for free to anyone with a Github account. You'll be asked to fork the demo repository and from there the README guides you with further steps.
The demo uses the Continue VSCode extension.

Off to codespaces!

DHelp

Ask a question

Welcome to "Codex Central", your next-gen help center, driven by OpenAI's GPT-4 model. It's more than just a forum or a FAQ hub – it's a dynamic knowledge base where coders can find AI-assisted solutions to their pressing problems. With GPT-4's powerful comprehension and predictive abilities, Codex Central provides instantaneous issue resolution, insightful debugging, and personalized guidance. Get your code running smoothly with the unparalleled support at Codex Central - coding help reimagined with AI prowess.