Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] authorized view issue when the model is using alias(dbt-bigquery) #929

Open
3 of 11 tasks
minhajpasha opened this issue Mar 21, 2025 · 0 comments
Open
3 of 11 tasks
Labels
triage:product In Product's queue type:bug Something isn't working as documented

Comments

@minhajpasha
Copy link

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Which packages are affected?

  • dbt-adapters
  • dbt-tests-adapter
  • dbt-athena
  • dbt-athena-community
  • dbt-bigquery
  • dbt-postgres
  • dbt-redshift
  • dbt-snowflake
  • dbt-spark

Current Behavior

In my dbt project i have two models views

  • dbt/models/personal/customer_view.sql

{{
config(
materialized='view',
authorized_view=true
)
}}

customer_view is getting created and authorized under the datasets is getting assigned correctly with customer_view entry

  • dbt/models/business/customer_bs_view.sql

{{
config(
materialized='view',
alias='customer_view',
authorized_view=true
)
}}

customer_view is getting created and authorized under the dataset is getting assigned with customer_bs_view entry instead of customer_view

Refernce Issues:

dbt-labs/dbt-bigquery#267
dbt-labs/dbt-bigquery#87

Expected Behavior

The Access entry should be created with alias name (customer_view) instead of model name(customer_bs_view)

Steps To Reproduce

16:30:27 Running with dbt=1.8.7
16:30:27 dbt version: 1.8.7
16:30:27 python version: 3.12.5

Relevant log output

Environment

16:05:47  Running with dbt=1.8.7
16:05:48  Registered adapter: bigquery=1.8.2

Additional Context

No response

@minhajpasha minhajpasha added triage:product In Product's queue type:bug Something isn't working as documented labels Mar 21, 2025
@minhajpasha minhajpasha changed the title [Bug] authorized view issue when the model is using alias [Bug] authorized view issue when the model is using alias(dbt-bigquery) Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage:product In Product's queue type:bug Something isn't working as documented
Projects
None yet
Development

No branches or pull requests

1 participant