TobikoData / sqlmesh

Efficient data transformation and modeling framework that is backwards compatible with dbt.
https://sqlmesh.com
Apache License 2.0
1.83k stars 161 forks source link

chore!: refactor compute interval params to do more at runtime #3405

Closed eakmanrq closed 2 days ago

eakmanrq commented 3 days ago

Prior to this PR, compute_interval_params was written to determine the absolute set of intervals to be processed. This meant taking into account depends on past limitations and signals. In addition it would then batch these intervals based on the model's batch size.

This PR changes this function's behavior to instead return a superset of what may actually need to run just based on the intervals that are missing. When actually running the final set of intervals are calculated based on depends on past, signals, batch size, ect. Therefore what is actually run will be a subset of what is provided.

The overall functionality of SQLMesh is unchanged in this PR just this internal detail has been changed.

Two key other changes in the PR: