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

feat (dbt): allow syncing only exposures #142

Merged
merged 3 commits into from
Nov 8, 2022
Merged

Conversation

betodealmeida
Copy link
Member

Allow syncing only exposures from Preset workspaces to a YAML file.

This now works with both dbt Cloud and dbt Core:

$ preset-cli superset sync dbt-core ... --exposures=exposures.yaml --exposures-only
$ preset-cli superset sync dbt-cloud ... --exposures=exposures.yaml --exposures-only

The datasets don't have to be created via the CLI for the exposure discovery to work. The command will look at all models (filtered by --select and --excluded, if set) and figure out which datasets correspond to them based on the the database, schema, and table name.

@betodealmeida
Copy link
Member Author

betodealmeida commented Nov 3, 2022

This closes #141

Copy link

@anupreet anupreet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based on your tests and dbt documentation, the code LGTM

@betodealmeida betodealmeida merged commit 3ad7c9e into main Nov 8, 2022
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

3 participants