Open sryza opened 2 years ago
+1 to this! This would greatly simplify dbt runs in dagster (assuming dbt-views automatically get is_view=True)
+1
Hey @sryza! Any updates if this will be a focus point in near future?
I would also love this feature! Especially for SQL/DBT usecases which are important for enterprises
@ssillaots-boku alas we don't have an ETA on this one yet
We should also consider changing how freshness policies are calculated for views. The "overdue" alert should only be fired in cases where the view's DDL has changed and the asset has not been materialized, OR the upstream has not been materialized. If the upstream is up to date and the code version is also up to date, the view is "fresh" regardless of the last time it was materialized.
Plus one from another Dagster Cloud enterprise customer for this issue
@slopp https://github.com/dagster-io/hooli-data-eng-pipelines/blob/master/hooli_data_eng/assets/dbt_assets.py#L114-L118 I like your approach here.
but: https://github.com/dagster-io/hooli-data-eng-pipelines/blob/master/hooli_data_eng/assets/dbt_assets.py#L158 is tedious. Is there any chance targeting views instead of tables could be more native than managing a ton of tags? Shouldn`t this be part of the manifest.json somewhere?
There are some interesting questions on how staleness is propagated in a view which will be accessed in a partitioned manner. In some cases, it would be possible to simply propagate staleness from upstream assets, but I can also think of situations where there would be a need to separately calculate a DataVersion for each partition.
Could some of the machinery from ObservableSourceAssets be leveraged here?
Hey, @sryza ! Bugging you again. Still not in the plans?
I would dearly love a solution to this one also
Unlike non-view software-defined assets, software-defined assets that are views don't need to become stale when their upstream assets are rematerialized – it's assumed that they automatically incorporate upstream data changes immediately, without needing to be materialized themselves.
Product implications of first-class support for view assets
Possible API:
What we've heard: