Databricks SDK for JavaScript
    Preparing search index...

    A sawtooth window served via the hybrid batch + streaming path. The batch pipeline maintains daily partial aggregates for the bulk of the window while the streaming pipeline maintains the most recent day(s), and serving merges them on read. Same field shape as RollingWindow, but a distinct type so the control plane can explicitly identify hybrid (sawtooth) features rather than inferring hybrid behavior from window_duration.

    interface SawtoothWindow {
        delay?: Duration;
        windowDuration?: Duration;
    }
    Index

    Properties

    delay?: Duration

    The delay applied to the end of the window (must be non-negative). For example, delay=1d shifts the window end 1 day before the evaluation time.

    windowDuration?: Duration

    The duration of the window. Must be positive and span more than two days when set, so that both the batch (N-1 day) and stale-path (N-2 day) partial aggregates are well defined. The duration need not be a whole number of days (e.g. 3 days 15 minutes is allowed). Absent means lifetime (aggregate over the entity's entire history).