Skip to content

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

@dbeatty10

Description

@dbeatty10

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cloudIssues related to dbt Cloudfeature:incrementalIssues related to incremental materializationsfeature:partitioningIssues related to table partitioningfeature:showIssues related to dbt show commandpkg:dbt-bigqueryIssue affects dbt-bigquerytype:bugSomething isn't working as documented

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions