You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
In upgrading from 1.3 to 1.6, we've noticed an issue with running dbt ls --select <model-path> --project_dir <project> .... It only appears to be this combination that fails to find any models. It works with:
dbt build command with project dir flag and path selector
dbt ls with model path and no project dir flag
dbt ls with project dir flag and specific model selected
Expected Behavior
dbt ls --select <model-path> --project_dir <project> ... select models under <project-dir>/<model-path>
github-actionsbot
changed the title
[Bug] Dbt ls failing to find models when using path selector and project-dir flag
[CT-3010] [Bug] Dbt ls failing to find models when using path selector and project-dir flag
Aug 17, 2023
dbeatty10
changed the title
[CT-3010] [Bug] Dbt ls failing to find models when using path selector and project-dir flag
[CT-3010] [Regression] Dbt ls failing to find models when using path selector and project-dir flag
Aug 18, 2023
After testing this out myself, I can verify that using file/fqn syntax like the following works in both 1.5 and 1.6:
dbt ls --project-dir sample_project/
dbt ls --select example --project-dir sample_project/
dbt ls --select file:example.sql --project-dir sample_project/
But path-based selection that worked in 1.5 no longer works in 1.6:
dbt ls --select models/example.sql --project-dir sample_project/
dbt ls --select path:models/example.sql --project-dir sample_project/
I tried using both absolute and relative paths as well as setting the DBT_PROJECT_DIR environment variable, but path-based selection didn't work in 1.6 regardless.
Is this a new bug in dbt-core?
Current Behavior
In upgrading from 1.3 to 1.6, we've noticed an issue with running
dbt ls --select <model-path> --project_dir <project> ...
. It only appears to be this combination that fails to find any models. It works with:Expected Behavior
dbt ls --select <model-path> --project_dir <project> ...
select models under<project-dir>/<model-path>
Steps To Reproduce
parent_directory
:dbt ls --select models/example --project-dir sample_project/
returns:no nodes selected
Relevant log output
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: