hi team, when i set up `exposure_schema_validity` ...
# community-support
m
hi team, when i set up
exposure_schema_validity
it always passes, no matter what (fantasy) `column_name`s are listed under `meta`/`referenced_columns`.
Copy code
dbt-core 1.7.1, dbt-databricks 1.7.1, elementary-data 0.12.0, elementary(package) 0.12.2
exposure.yml:
Copy code
- name: installs__explore
  type: dashboard
  maturity: low
  url: <…>
  description: <…>
  depends_on:
    - ref('fct_installs')
  owner:
    name: <…>
    email: <…>
  meta:
    referenced_columns:
      - column_name: country_code
      - column_name: installed_date
      - column_name: opened_date
      - column_name: os_version
model.yml
Copy code
- name: fct_installs
  description: <…>
  tests:
    - elementary.exposure_schema_validity
  columns:
    - <…>
i also tried to put the
column_name
in single or double quotes, to no avail
shameless ping to @Idan Shavit
another shameless ping to recently active @Noa Kurman
e
Heya @michael böhm! Could you try explicitly adding the
node
property as well with the relevant ref?
Copy code
... 
  meta:
    referenced_columns:
      - column_name: 'country_code'
        node: ref('fct_installs')
n
(when you ping two people from the team we like to surprise you with a third one!)
🎉 1
m
still passing everything, Erik 😢 thanks for getting back and suggesting, tho. next?
i’m trying to find the sql command (out of the many that a single such test fires on databricks) that represents the test. is it this?
Copy code
select
  count(*) as failures,
  count(*) != 0 as should_warn,
  count(*) != 0 as should_error
from (
  with nothing as (select 1 as num)
  select * from nothing where num = 2
  ) dbt_internal_test
e
could you add a tag on that test and execute only that? might help isolate the issue a bit
m
i was executing by name, therefore never running more than this one test. just tried via tag, but same execution. (when i said ‘many sql firing’ i meant the commands for the test and the hooks, not from additional tests)
reminder ping (if there is still hope)
e
There is always hope! (and thanks for the ping) I'll dm you some times for a huddle
🙇 1