dbt-labs / dbt-bigquery

dbt-bigquery contains all of the code required to make dbt operate on a BigQuery database.
https://github.com/dbt-labs/dbt-bigquery
Apache License 2.0
210 stars 141 forks source link

[ADAP-848] [Bug] BQ incremental materialization with `_dbt_max_partition` doesn't work for Preview in dbt Cloud with `dbt show --inline` #898

Open dbeatty10 opened 1 year ago

dbeatty10 commented 1 year ago

Is this a new bug in dbt-bigquery?

Current Behavior

See this internal Slack thread for details: https://dbt-labs.slack.com/archives/C05FWBP9X1U/p1692582407653009

Expected Behavior

See internal Slack thread for details.

Steps To Reproduce

See above (and below).

{{
    config(
        materialized="incremental",
        incremental_strategy="insert_overwrite",
        partition_by={
            "field": "created_at_date",
            "data type: "DATE",
            "granularity": "day",
        })
}}

select * from {{ ref("incremental source date") }}
where created_at_date >= _dbt_max_partition

image

Relevant log output

No response

Environment

- OS:
- Python:
- dbt-core:
- dbt-bigquery:

Additional Context

No response

github-actions[bot] commented 6 months ago

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

stelios-c commented 4 months ago

Hi, I keep coming across this, please keep it open, and if possible, fix!

colin-rogers-dbt commented 2 months ago

Likely related to #1002