databricks Databricks Blog ·

Databricks details advanced AUTO CDC for bitemporal and partial updates

blogcompliancedatabricksengineer
announcement

This Databricks post details how AUTO CDC addresses complex real-world change data capture challenges for data engineers. It explains Bitemporal AUTO CDC for dual-axis history tracking, vital for financial compliance and reproducible ML. Additionally, it covers AUTO CDC Partial Updates, which simplify handling incomplete CDC sources. The article also highlights the expansion of certain AUTO CDC features into open-source Apache Spark 4.2.

  • Bitemporal AUTO CDC for dual-axis history tracking
  • Ensuring reproducible ML with bitemporal tables
  • Simplified handling of partial record updates in AUTO CDC
  • Contributing AUTO CDC Type 1 Python API to Apache Spark
Notes (4)
  • Bitemporal AUTO CDC for dual-axis history tracking

    Databricks' Bitemporal AUTO CDC allows tracking business and system time independently, which is critical for compliance with regulations like SEC Rule 17a-4 and FINRA. It enables point-in-time reconstruction of records even if events arrive out-of-order, replacing hand-written MERGE logic. This feature is currently in Beta.

  • Ensuring reproducible ML with bitemporal tables

    Bitemporal tables ensure that the exact dataset used for model training can be reconstructed months later for audits, even after Delta Lake's VACUUM operation cleans up old file versions. This is achieved by storing logical history as data rows, making it immune to storage retention windows.

  • Simplified handling of partial record updates in AUTO CDC

    AUTO CDC Partial Updates automatically handle incomplete change data capture sources that only send changed fields, preventing unintentional overwrites of existing data. This allows NULL values in updates to be interpreted as "do not update" for specified columns. Partial Updates are now Generally Available.

  • Contributing AUTO CDC Type 1 Python API to Apache Spark

    Databricks is expanding AUTO CDC capabilities into open-source Apache Spark 4.2 by contributing the Python API for AUTO CDC Type 1. This aims to bring standardized, out-of-order change data capture to the broader ecosystem through a series of reviewed proposals and pull requests.

Read the original announcement →

https://www.databricks.com/blog/taking-auto-cdc-next-level-solving-hardest-real-world-use-cases

Related releases