Skip to content

fix: ignore constraints in dbt seed column types#5535

Merged
geooo109 merged 2 commits into
mainfrom
geooo109/dbt_seed_column_types
Oct 13, 2025
Merged

fix: ignore constraints in dbt seed column types#5535
geooo109 merged 2 commits into
mainfrom
geooo109/dbt_seed_column_types

Conversation

@geooo109

@geooo109 geooo109 commented Oct 13, 2025

Copy link
Copy Markdown
Contributor

This PR adds support for parsing dbt seed column definitions that include constraints.

When a seed's column types config contains constraints (e.g., integer not null), SQLMesh now:

  • Extracts the base data type (integer)
  • Emits a warning that constraints are ignored

This prevents errors when dbt projects use constraint syntax in seed column type definitions, even though SQLMesh doesn't support constraints on seeds.

Comment thread sqlmesh/dbt/column.py
Comment thread pyproject.toml Outdated
@geooo109 geooo109 merged commit 62fd255 into main Oct 13, 2025
36 checks passed
@geooo109 geooo109 deleted the geooo109/dbt_seed_column_types branch October 13, 2025 12:13
fresioAS pushed a commit to fresioAS/sqlmesh that referenced this pull request May 31, 2026
Signed-off-by: fresioAS <andreas.fredhoi@three60energy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants