dbt-labs / dbt-adapters

Apache License 2.0
28 stars 38 forks source link

Enable setting current value of dbt_valid_to #321

Closed gshank closed 1 month ago

gshank commented 1 month ago

resolves #320

Problem

To support setting the snapshot dbt_valid_to column to a date value instead of null. For dbt-core https://github.com/dbt-labs/dbt-core/pull/10780.

Solution

Use the setting of the new attribute "dbt_valid_to_current" instead of (or in addition to) null in various snapshot queries.

Checklist