sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

Can't select upstream models using tag selector

Open lafirm opened this issue 1 year ago • 2 comments

I've a final model called operation_status with the tag run_status

  audits (
    UNIQUE_COMBINATION_OF_COLUMNS(columns := (username, identifier))
  ),
  tags "run_status"

And I wanted to create and apply plan for the operation_status model and upstreams of it, so I used the below command, sqlmesh plan lafir --select-model "tag:+run_status" Which throws me this error,

Error: Expected model name. at index 3: (tag:+run_status)

But, sqlmesh plan lafir --select-model "tag:run_status+" to include the downstreams are working fine. And I verified this.

I followed this guide.

Am I using the tags correctly?

lafirm avatar Jan 13 '25 08:01 lafirm

i think this is a bug in the docs, can you try "+tag:run_status"

tobymao avatar Jan 13 '25 16:01 tobymao

85dc3b5

tobymao avatar Jan 13 '25 16:01 tobymao