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

fix: use table alias when creating dataset #192

Merged
merged 1 commit into from
Feb 27, 2023
Merged

fix: use table alias when creating dataset #192

merged 1 commit into from
Feb 27, 2023

Conversation

betodealmeida
Copy link
Member

Models in dbt can have alias, eg:

-- foo.sql
{{ config (alias = 'model_alias') }}
SELECT ...

In this case, instead of the table created being called foo it will be called model_alias. When creating the Superset dataset pointing to the table we should use the alias in this case.

Closes #173.

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.

dbt sync does not recognize models with "alias" config as the name of the table
2 participants