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 sync "target" parameter does not work as expected #164

Open
dweaver33 opened this issue Dec 8, 2022 · 1 comment
Open

dbt sync "target" parameter does not work as expected #164

dweaver33 opened this issue Dec 8, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dweaver33
Copy link

When you run a sync command, you can specify a target parameter. In dbt, this would set the schema for the models as they are defined in the profiles.yml file.

However, with the preset-cli, this parameter merely sets the database label used in Preset. The actual connection is based on the manifest.json file, which could have been compiled with a different target.

Desired Behavior

The target parameter should set the schema in the Preset connection to match the one defined in the profiles.yml file in dbt. This could be accomplished by either reading the YML file or recompiling dbt with the given target.

@betodealmeida betodealmeida self-assigned this Dec 13, 2022
@betodealmeida betodealmeida added the bug Something isn't working label Dec 13, 2022
@josescuderoh
Copy link

Facing this issue right now.
I can't use the manifests produced by the prod pipeline since they were compiled with a different target than the one I use for preset. This is a long-standing issue, any hope for a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants