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(dbt): Dataset creation returns a different schema #275

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

Vitor-Avila
Copy link
Contributor

The response payload for create_dataset() is different than the one for client.get_dataset(). This was causing an error as the actual dataset data (metrics, columns, etc) was nested under data for the creation command.

I could change the return statement to dataset["data"] (to avoid firing another API call) but I believe this way is easier to maintain in the long-term (otherwise we'll be exposed to issues when either of these two schema changes, and they could differ over time).

@Vitor-Avila Vitor-Avila merged commit 6bb346b into main Mar 25, 2024
5 checks passed
@Vitor-Avila Vitor-Avila deleted the dataset-creation-fix branch March 25, 2024 15:06
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

2 participants