Skip to content

[CT-2409] [Bug] FQN selection for versioned models in subdirectory #7348

@jtcohen6

Description

@jtcohen6

If a versioned model is nested in one or more subdirectories, it can't be selected by name, v{v}, etc.

Expected behavior:

dbt list -s dim_customers    --> all
dbt list -s dim_customers.*  --> all
dbt list -s dim_customers.v1 --> v1 only
dbt list -s *.v1             --> any model with v1

Current behavior:
None of the above work, but it does work when I add in the * wildcards:

dbt ls -s *.dim_customers.*  --> all
dbt ls -s *.dim_customers.v1 --> v1 only

Weirdly, I could've sworn this was working when I was trying out #7287. Worth adding some tests. Realized that this only happens for a model defined in a subdirectory, rather than top-level in the models/ folder.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions