Can't filter out dbt tests of BigQuery tables by a selector with config.materialized:view
#2899
Closed
1 of 5 tasks
config.materialized:view
#2899
Describe the bug
We are not able to filter out dbt tests of BigQuery tables by a selector with
config.materialized:view
.I implemented a dbt model for a BigQuery table and its schema tests.
When I wanted to execute only schema tests of BigQuery views by a selector, I found the issue that filtering out by a selector didn't work as expected.
In my case, I didn't want to run any schema test of BigQuery tables with a selector which has
config.materialized:view
.Even I simplified the condition with just
config.materialized:view
, I made sure it didn't work as expected.Steps To Reproduce
UPDATE
I created a branch/PR in my forked repository.
https://github.com/yu-iskw/jaffle_shop/pull/1
In as much detail as possible, please provide steps to reproduce the issue. Sample data that triggers the issue, example model code, etc is all very helpful here.
.sql
file with{{ config() }}
.config.materialized:view
dbt ls --selector view --resource test
Expected behavior
When I executed
dbt ls --models "config.materialized:view"
, the schema tests of BigQuery tables didn't appear.That was what I expected for the behavior of selectors.
Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
System information
Which database are you using dbt with?
The output of
dbt --version
:$ dbt --version installed version: 0.18.1 latest version: 0.18.1 Up to date! Plugins: - bigquery: 0.18.1 - snowflake: 0.18.1 - redshift: 0.18.1 - postgres: 0.18.1
The operating system you're using:
I saw the error on the two environments.
google/cloud-sdk:317.0.0
(Production)The output of
python --version
:Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: