How do we query incremental database CDC feeds using watermark timestamps to avoid full-table re-scans?
Filtering parquet CDC logs for records where ingestion_timestamp exceeds the last high watermark.
High-frequency incremental ETL pipelines processing only new inserts and updates from operational DBs.
from pyspark.sql.functions import col
incremental_df = spark.read.parquet("raw/cdc_feed") \
.filter(col("ingestion_timestamp") >= last_watermark)Practice typing production-grade PySpark code for Change Data Capture (CDC) Incremental Processing.