Skip to content

[Bug] Duplicate column definitions causing dbt1033 warnings #62

@dataders

Description

@dataders

Description

When running dbt parse, dbt1033 warnings are raised due to duplicate column definitions in YAML schema files.

Affected Files and Columns

Model File Duplicate Column
models/staging/stg_facebook_ads__creative_history.sql creative_id
models/staging/src_facebook_ads.yml template_page_link

Warning Messages

warning: dbt1033: Column 'creative_id' is defined multiple times in '...'. Only the last definition will be used.
warning: dbt1033: Column 'template_page_link' is defined multiple times in '...'. Only the last definition will be used.

Suggested Fix

Remove duplicate column definitions from the YAML schema files, keeping only one definition per column (preferably the most complete one with description, tests, etc.).

Environment

  • dbt version: 1.9.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions