Hello support, I have a question about `volume_ano...
# community-support
r
Hello support, I have a question about
volume_anomalies
test. The test is configured this way:
Copy code
version: 2

models:

  - name: stg_cloud_stateful__account
    config:
      elementary:
        timestamp_column: account_create_date
    tests:
       - elementary.volume_anomalies:
          tags: ["elementary"]
When I run
dbt test --select tag:elementary
It doesn't work >>>> The selection criterion 'tag:elementary' does not match any nodes If I try
dbt test --select stg_cloud_stateful__account
it doesn't find any test at all associated with the model My question is how a simple dbt test (e.g. unique) run without any issue while setting up the Elementary test as presented in the docs fails to run?
e
Hi @Ricardo Ortiz, sorry for the late response and thanks for sharing this issue with us, it seems unusual indeed 🤨 Can you please confirm that you have installed the elementary package in your dbt project, and then ran
dbt run -s elementary
? also, do other tests you add on this same model in this same yml file work?
r
@Ella Katz Yes, the elementary package was added in the dbt project, when I ran
dbt run -s elementary
I got this error:
The selection criterion 'elementary' does not match any nodes
I'm using a github codespaces inside a branch where the anomaly tests are set up.
e
Did you run 'dbt deps'?
r
Yes!!
e
The reason I asked is that what you're describing is what would happen if the package wasn't installed at all... If you have the elementary package installed, you should have a directory with all the elementary models under
dbt_packages
, and running
dbt run -s elementary
should find and run them, so it feels like some kind of environment issue. Can you confirm that the path
<dbt-project-root>/dbt_packages/elementary
exists and contains all the macros and models as seen on our github repo?
n
hi @ella katz, I get the same error after running dbt deps. confirmed that package exists under dbt_packages.
23:56:43  Installing elementary-data/elementary
23:56:43  Installed from version 0.13.2
note: I am running in a virtual env called dbt-venv
python version 3.9.6
o
Hi @Ricardo Ortiz @Norm Warren I am unable to reproduce your error, can you share your: • yaml files • exact dbt command • terminal output •
dbt.log
file if you prefer privately thats great too
b
Hi @Ofek Weiss, was there a resolution to this problem? I'm facing a very similar one.