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] target_lag < 1 minute throws an error #1217

Closed
2 tasks done
noel opened this issue Oct 21, 2024 · 1 comment
Closed
2 tasks done

[Bug] target_lag < 1 minute throws an error #1217

noel opened this issue Oct 21, 2024 · 1 comment
Labels
bug Something isn't working triage

Comments

@noel
Copy link

noel commented Oct 21, 2024

Is this a new bug in dbt-snowflake?

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

Current Behavior

According to the official dbt docs, target_lag of < 1 minute should be possible, but when I try this in dbt-snowflake==1.8.4 I get the following error:

002755 (22023): SQL compilation error: Invalid TARGET_LAG value '30 seconds'. Dynamic Tables do not support lag values under 60 second(s).

Expected Behavior

30 second target lag should work

Steps To Reproduce

Create a model with the following configuration:

{{ config(
    materialized = 'dynamic_table',
    snowflake_warehouse = '<my_wh>',
    target_lag = '30 seconds',
) }}

run the model

Relevant log output

002755 (22023): SQL compilation error: Invalid TARGET_LAG value '30 seconds'. Dynamic Tables do not support lag values under 60 second(s).


### Environment

```markdown
- OS: Linux
- Python: 3.10.12
- dbt-core: 1.8.7
- dbt-snowflake: 1.8.4

Additional Context

No response

@noel noel added bug Something isn't working triage labels Oct 21, 2024
@amychen1776
Copy link

Hi @noel , Snowflake does not support a lag of less than 1 minute. It's in their official documentation https://docs.snowflake.com/en/sql-reference/sql/alter-dynamic-table

Due to this - I'm closing this issue out. I'll make a note in our documentation to be clear that while 30 minutes is supported, 30 seconds (and anything under a minute) is not due to Snowflake's limitations.

@amychen1776 amychen1776 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 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 triage
Projects
None yet
Development

No branches or pull requests

2 participants