Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbt select job blueprints example #22908

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sryza
Copy link
Contributor

@sryza sryza commented Jul 9, 2024

Summary & Motivation

See the README for details.

How I Tested These Changes

sryza added a commit that referenced this pull request Jul 19, 2024
## Summary & Motivation

This PR proposes turning Definitions into a "dumb" data class for
passing around diverse sets of definitions. This means that users won't
encounter any validation errors for unsatisfied resources, duplicate
asset keys, etc., until either:
- They run a code server to load the definitions
- They invoke `Definitions.validate_loadable`

Why do this?
- Less work will happen at module import time. This gives users more
flexibility to determine where they want to incur the cost of this
validation. It also helps enable a future world where run/step workers
only need to load/validate the subset of definitions that they need to
execute.
- Less repetition of resources. This was sited as an issue by the
developers of our internal platform:
https://dagsterlabs.slack.com/archives/C03AF3MMEEN/p1720546166484669?thread_ts=1720545875.842949&cid=C03AF3MMEEN.
- Makes it possible to define asset jobs / schedules in separate
`Definitions` objects from the assets they target. I encountered this
when trying to write an [example that that allows using blueprints to
define dbt selection
jobs](#22908).

The original Definitions.merge PR contains some discussion on this
topic: #21746.

## How I Tested These Changes
@sryza sryza force-pushed the blueprints-example-dbt-jobs branch from 29f130a to 253a267 Compare July 24, 2024 22:25
@sryza sryza force-pushed the blueprints-example-dbt-jobs branch from 253a267 to 0093049 Compare July 24, 2024 22:27
@sryza sryza requested a review from benpankow July 24, 2024 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant