Skip to content

Conversation

sdebruyn
Copy link
Contributor

It seems the code has some fixes in the cloud package which have not made their way to the core package. Relates to #2422 but does not fix it yet.

@Copilot Copilot AI review requested due to automatic review settings September 25, 2025 14:10
Copy link

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR backports code fixes from the Soda Cloud dbt integration into the core package, addressing various issues and inconsistencies between the two codebases.

  • Updates the DbtCheckCfg constructor to make column_name optional (nullable)
  • Enhances DbtCheck to properly handle check values and use expressions in definitions
  • Refactors the dbt cloud integration with simplified data classes, improved error handling, and better artifact processing

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
soda/dbt/soda/sodacl/dbt_check_cfg.py Makes column_name parameter optional in DbtCheckCfg constructor
soda/dbt/soda/execution/check/dbt_check.py Improves cloud diagnostics and definition handling in DbtCheck
soda/dbt/soda/cloud/dbt.py Major refactoring with new data classes, simplified parsing, and enhanced error handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

test_nodes is not None
), "No test nodes were retrieved from the manifest.json. This could be because no tests have been implemented in dbt yet or you never ran `dbt test`."
assert test_nodes is not None, (
"No test nodes found in manifest.json. This could be because no test was implemented"
Copy link
Preview

Copilot AI Sep 25, 2025

Choose a reason for hiding this comment

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

Missing space in the error message. Should be 'no test was implemented in dbt' instead of 'no test was implementedin dbt'.

Suggested change
"No test nodes found in manifest.json. This could be because no test was implemented"
"No test nodes found in manifest.json. This could be because no test was implemented "

Copilot uses AI. Check for mistakes.

run_results: list[DbtRunResult],
) -> dict[str, set[str]]:
assert test_nodes is not None, (
"No test nodes found in manifest.json. This could be because no test was implemented"
Copy link
Preview

Copilot AI Sep 25, 2025

Choose a reason for hiding this comment

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

Missing space in the error message. Should be 'no test was implemented in dbt' instead of 'no test was implementedin dbt'.

Suggested change
"No test nodes found in manifest.json. This could be because no test was implemented"
"No test nodes found in manifest.json. This could be because no test was implemented "

Copilot uses AI. Check for mistakes.

"In the meantime, if your jobs do not end on the above mentioned commands, you could make sure to add at least a `dbt test` "
"step as your last step and make sure that 'generate documentation' is not turned on in your job definition."
"In the meantime, if your jobs do not end on the above mentioned commands, you could make sure to add "
"at least a `dbt test`"
Copy link
Preview

Copilot AI Sep 25, 2025

Choose a reason for hiding this comment

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

Missing space between 'dbt test' and 'step'. The concatenated string should read 'at least a dbt teststep' instead of 'at least adbt test`step'.

Suggested change
"at least a `dbt test`"
"at least a `dbt test` "

Copilot uses AI. Check for mistakes.

@sdebruyn sdebruyn changed the title Backport code from the Soda Cloud dbt integration into this codebase Backport dbt compatibilty bugfixes from the Soda Cloud dbt integration into this codebase Sep 25, 2025
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.

1 participant