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

Do not build SQLAlchemy URI in case the database won't be imported/modified #200

Merged
merged 4 commits into from
Apr 4, 2023
Merged

Do not build SQLAlchemy URI in case the database won't be imported/modified #200

merged 4 commits into from
Apr 4, 2023

Conversation

Vitor-Avila
Copy link
Contributor

Currently, for the dbt sync the database connection would only be created/updated in Superset in case --import-db was passed. However, the CLI was still building the SQLAlchemy URI regardless of this flag, which would still throw an error in case the DB authentication method in DBT is un-supported in Preset.

With this PR, build_sqlalchemy_params() is only called in case import_db == True.

@betodealmeida betodealmeida merged commit d96792d into preset-io:main Apr 4, 2023
@Vitor-Avila Vitor-Avila deleted the import-db-fix branch April 4, 2023 19:30
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.

2 participants