-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dagster-dbt] fix dbt row count behavior on warehouses, test row coun…
…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
- Loading branch information
Showing
10 changed files
with
135 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 25 additions & 1 deletion
26
.buildkite/dagster-buildkite/dagster_buildkite/pipelines/dagster_oss_nightly_pipeline.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
from typing import List | ||
|
||
from dagster_buildkite.utils import BuildkiteStep | ||
from ..package_spec import PackageSpec | ||
from ..python_version import AvailablePythonVersion | ||
from ..steps.packages import build_steps_from_package_specs, gcp_creds_extra_cmds | ||
from ..utils import ( | ||
BuildkiteStep, | ||
) | ||
|
||
|
||
def build_dagster_oss_nightly_steps() -> List[BuildkiteStep]: | ||
steps: List[BuildkiteStep] = [] | ||
|
||
steps += build_steps_from_package_specs( | ||
[ | ||
PackageSpec( | ||
"python_modules/libraries/dagster-dbt", | ||
pytest_tox_factors=["dbt18-snowflake", "dbt18-bigquery"], | ||
env_vars=[ | ||
"SNOWFLAKE_ACCOUNT", | ||
"SNOWFLAKE_USER", | ||
"SNOWFLAKE_PASSWORD", | ||
"GCP_PROJECT_ID", | ||
], | ||
pytest_extra_cmds=gcp_creds_extra_cmds, | ||
unsupported_python_versions=[ | ||
AvailablePythonVersion.V3_12, | ||
], | ||
), | ||
] | ||
) | ||
|
||
return steps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters