-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-2254] dbt debug
for connection testing
#7104
Labels
Comments
jtcohen6
added
python_api
Issues related to dbtRunner Python entry point
Team:Execution
Refinement
Maintainer input needed
labels
Mar 2, 2023
github-actions
bot
changed the title
[CT-2254] Mar 2, 2023
dbt debug
for connection testingdbt debug
for connection testing
23 tasks
An alternative suggestion would be to add a command |
Just going by what we see here, I would say we communicate that dbt debug exists to support the validation of a dbt environment. Having a flag that skipped those validation steps would mirror the `git commit --no-verify` workflow. Basically, just validate that the connection makes sense. I worry that if we create a new command which under the hood is leveraging the same code, we are inviting unclear interfaces at the executable level We already have a flag that serves as an example of what additional flag we might add to accomplish the desired behavior outlined in the issue |
9 tasks
With the merge of #7741 , the workflow for this in 1.6 and on will be Other flag skips/features may be added. See this issue. |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Much older issue in the same vein: #3735
It should be possible to use
dbt debug
for connection testing. Currently,debug
also includes checks for:profiles.yml
filedbt_project.yml
filegit
as an installed dependency (fordeps
)Of those checks, we really only need the last one for connection testing. Ideally, we'd be able to skip the other checks (perhaps by passing a flag?) and return success/error (programmatically & as CLI exit code) on the basis of the "debug" query only.
If we had to hack this today, it would be sorta possible by examining the structured events (
DebugCmdOut
) returned from thedebug
command, but this hardly feels like a stable interface.Why
dbt debug
?Why not just an interactive query (new
preview
command) with the query hard-coded toselect 1 as id
? Reasons to prefer:debug_query
debug
Questions
profiles.yml
, or could it be provided as a Python data structure?dbt_project.yml
? Just use a "dummy"/emptydbt_project.yml
?Acceptance criteria
dbt debug
, and return success/errorThe text was updated successfully, but these errors were encountered: