Skip to content

dbt ingestion reports test failures when schema.yml references columns that do not exist in the corresponding Snowflake tables #38812

Description

@Prajwal214

Affected module

Ingestion Framework

Describe the bug

During dbt ingestion, multiple test cases fail with Invalid column name errors when the columns referenced in the dbt schema.yml files do not exist in the corresponding Snowflake tables.

To Reproduce

  1. Create a Snowflake table with a column named TOTAL_PARTS.
  2. Configure a dbt project connected to the Snowflake database.
  3. In the dbt schema.yml file, define a test that references a column named TOTAL_REQUEST, which does not exist in the corresponding Snowflake table.

Example:

version: 2
   
   models:
     - name: product_eng
       columns:
         - name: TOTAL_REQUEST
           tests:
             - not_null
  1. Configure and run dbt ingestion in Collate.
  2. Review the ingestion logs and test case execution results.

Expected behavior

  • Validate whether the columns referenced in dbt test cases exist in the corresponding table.
  • Provide clear and actionable error messages when a test references a non-existent column.
  • Ensure such failures are clearly distinguishable from ingestion or metadata processing issues.

OS

No response

Python version

No response

OpenMetadata version

2.0.10

OpenMetadata Ingestion package version

No response

Additional context

No response

Pre-submission checklist

  • I searched for duplicate issues.
  • I removed credentials, hostnames, emails, and other sensitive data from logs and config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcustomer

Type

Projects

  • Status
    Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions