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] hours to expiration timeformat is incorrect for materialized view #1173

Open
2 tasks done
karlohrn opened this issue Apr 9, 2024 · 0 comments · May be fixed by #1174
Open
2 tasks done

[Bug] hours to expiration timeformat is incorrect for materialized view #1173

karlohrn opened this issue Apr 9, 2024 · 0 comments · May be fixed by #1174
Labels
bug Something isn't working help_wanted Extra attention is needed materialized_views

Comments

@karlohrn
Copy link

karlohrn commented Apr 9, 2024

Is this a new bug in dbt-bigquery?

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

Current Behavior

when setting the hours_to_expiration on a materialized view it fail to create the view due to incorrect format of option.

OPTIONS(
enable_refresh=True,

  refresh_interval_minutes=30,

  expiration_timestamp=2024-04-10 10:27:29.596776
)

Options for expiration_timestamp is not in the correct format

Expected Behavior

I expect the materialized view to be created and and have a expiration time set on the dataset.

Steps To Reproduce

create a dbt materialized view with a expiration time on the view.

Relevant log output

Syntax error: Expected ")" or "," but got integer literal "11" at [11:39]

Environment

- OS: mac
- Python 3.11.7
- dbt-core: 1.7.1
- dbt-bigquery: 1.7.2

Additional Context

No response

@karlohrn karlohrn added bug Something isn't working triage labels Apr 9, 2024
@karlohrn karlohrn linked a pull request Apr 9, 2024 that will close this issue
4 tasks
@Fleid Fleid added help_wanted Extra attention is needed and removed triage labels Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help_wanted Extra attention is needed materialized_views
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants