Skip to content

patch union_relations macro to avoid including 'collation' in cast#1063

Closed
colin-rogers-dbt wants to merge 1 commit intomainfrom
colin/patch_union_relations_cast_for_snowflake
Closed

patch union_relations macro to avoid including 'collation' in cast#1063
colin-rogers-dbt wants to merge 1 commit intomainfrom
colin/patch_union_relations_cast_for_snowflake

Conversation

@colin-rogers-dbt
Copy link
Contributor

@colin-rogers-dbt colin-rogers-dbt commented Dec 18, 2025

resolves #

Problem

We recently updated dbt-snowflake to return the collation on a column as part of the data_type as it will soon be required when altering a column's data type (if it's a string). Most of the time this is correct, unless you want to use that datatype in a cast.

Solution

Add a macro with a snowflake specific override to scrub collation from the datatype if it's present.

Checklist

  • This code is associated with an issue which has been triaged and accepted for development.
  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the README.md (if applicable)

@colin-rogers-dbt colin-rogers-dbt requested a review from a team as a code owner December 18, 2025 18:19
@dbeatty10
Copy link
Contributor

Solved in dbt-labs/dbt-adapters#1510 instead

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