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

export dbt-staging-sql error on multi models contracts #587

Open
cedric-orange opened this issue Jan 15, 2025 · 0 comments
Open

export dbt-staging-sql error on multi models contracts #587

cedric-orange opened this issue Jan 15, 2025 · 0 comments

Comments

@cedric-orange
Copy link
Contributor

When there is more than one model in contract, datacontract export --format dbt-staging-sql --model name is not usable.

With correct model name:

$ datacontract export ./datacontract_50D_50D.yml --format dbt-staging-sql --model PNA
Export to dbt-staging-sql currently only works with exactly one model in the data contract.Please specify the model name.

With an incorrect model name:

$ datacontract export ./datacontract_50D_50D.yml --format dbt-staging-sql --model models.PNA
RuntimeError: Model model.PNA not found in the data contract. Available models: ['FAC', 'PNA']
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

No branches or pull requests

1 participant