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

[dagster-dbt] fix dbt row count behavior on warehouses, test row count code on snowflake & bigquery #21952

Merged
merged 19 commits into from
May 21, 2024

Conversation

benpankow
Copy link
Member

@benpankow benpankow commented May 17, 2024

Summary

Adds Snowflake & BQ tests of new row-count functionality and fixes bug with Table return on certain warehouses (incl Snowflake).

Added to the new OSS nightly pipeline introduced in #21956 to avoid racking up unnecessary spend. We do already run some tests on these warehouses as part of normal builds for their respective integrations, so maybe it's fine to do the same here - open to either.

Test Plan

Nightly build run:
https://buildkite.com/dagster/full-moon-with-face-dagster-nightly/builds/9

@benpankow
Copy link
Member Author

benpankow commented May 17, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @benpankow and the rest of your teammates on Graphite Graphite

query_result_table = query_result[1]
# some adapters do not output the column names, so we need
# to index by position
row_count = query_result_table[0][0]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was tested manually before it was changed to index-by-row-name, which evidently works in duckdb but not Snowflake unfortunately

@benpankow benpankow changed the title [dagster-dbt] test row count code on snowflake [dagster-dbt] test row count code on snowflake & bigquery May 17, 2024
@benpankow benpankow force-pushed the benpankow/test-row-count-snowflake branch 2 times, most recently from 91f1cac to a7f490e Compare May 20, 2024 22:25
Copy link
Member

@rexledesma rexledesma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the OSS nightly pipeline, can we ensure that it notifies a highly visible Slack channel (e.g. #topic-dbt, #project-data-catalog), on failure?

I want to ensure that these failures aren't owned by the person just monitoring the nightly pipeline.

@benpankow benpankow force-pushed the benpankow/test-row-count-snowflake branch from a7f490e to 441d6e1 Compare May 21, 2024 16:05
@benpankow
Copy link
Member Author

Set up to notify to #eng-buildkite-nightly so that it's targeted in a somewhat generic way and not drowned out (e.g. other teams can start using it + setting up notifs).

Copy link
Contributor

@sryza sryza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth updating the title to make it clear this is fixing something and not just adding tests

@benpankow benpankow changed the title [dagster-dbt] test row count code on snowflake & bigquery [dagster-dbt] fix dbt row count behavior on warehouses, test row count code on snowflake & bigquery May 21, 2024
@benpankow benpankow merged commit e0846dc into master May 21, 2024
1 check passed
@benpankow benpankow deleted the benpankow/test-row-count-snowflake branch May 21, 2024 22:57
OwenKephart pushed a commit that referenced this pull request May 21, 2024
…t code on snowflake & bigquery (#21952)

## Summary

Adds Snowflake & BQ tests of new row-count functionality and fixes bug
with `Table` return on certain warehouses (incl Snowflake).

Added to the new OSS nightly pipeline introduced in #21956 to avoid
racking up unnecessary spend. We do already run some tests on these
warehouses as part of normal builds for their respective integrations,
so maybe it's fine to do the same here - open to either.

## Test Plan

Nightly build run:

https://buildkite.com/dagster/full-moon-with-face-dagster-nightly/builds/9
nikomancy pushed a commit that referenced this pull request May 22, 2024
…t code on snowflake & bigquery (#21952)

## Summary

Adds Snowflake & BQ tests of new row-count functionality and fixes bug
with `Table` return on certain warehouses (incl Snowflake).

Added to the new OSS nightly pipeline introduced in #21956 to avoid
racking up unnecessary spend. We do already run some tests on these
warehouses as part of normal builds for their respective integrations,
so maybe it's fine to do the same here - open to either.

## Test Plan

Nightly build run:

https://buildkite.com/dagster/full-moon-with-face-dagster-nightly/builds/9
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

3 participants