You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a row policy level in bigquery for the user who is used in dbt to access it, and when I try to run dbt run -m + dim_table the tables that is created using reference of the table with row access policy got a macro error. I got the run target for that table, and running directly on bigquery everything works fine.
I trying to use this process to add the dbt user in row policy access to spread more easily on others tables this row I don't want to show in Metabase.
Steps To Reproduce
Create a row access policy using
CREATE OR REPLACE ROW ACCESS POLICY teste
ON `tableA`
GRANT TO ("serviceAccount:dbt_service_account@project_id.iam.gserviceaccount.com")
FILTER USING (id != "99");
Where service account is the same used previous in dbt to access.
then create a sql file with
select
*
from
{{ ref('tableA') }}
Without row access policy evething works fine, with row access policy i got and error
Expected behavior
Expect the table be created and in table a when try to get information from id 99 will return an empty result
But instead i got and error
Screenshots and log output
Completed with 1 error and 0 warnings:
Compilation Error in macro statement (macros/core.sql)
bad operand type for abs(): 'NoneType'
> in macro materialization_table_bigquery (macros/materializations/table.sql)
> called by macro statement (macros/core.sql)
Done. PASS=8 WARN=0 ERROR=1 SKIP=1 TOTAL=10
Describe the bug
I create a row policy level in bigquery for the user who is used in dbt to access it, and when I try to run
dbt run -m + dim_table
the tables that is created using reference of the table with row access policy got a macro error. I got the run target for that table, and running directly on bigquery everything works fine.I trying to use this process to add the dbt user in row policy access to spread more easily on others tables this row I don't want to show in Metabase.
Steps To Reproduce
Create a row access policy using
Where service account is the same used previous in dbt to access.
then create a sql file with
Without row access policy evething works fine, with row access policy i got and error
Expected behavior
Expect the table be created and in table a when try to get information from id 99 will return an empty result
But instead i got and error
Screenshots and log output
System information
I try in both
and in
The operating system you're using:
debian buster
The output of
python --version
:python 3.8
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: