Skip to content

fix(mssql): map varchar to text type#4120

Open
Mady356 wants to merge 1 commit into
dlt-hub:develfrom
Mady356:fix-mssql-varchar-nvarchar-4100
Open

fix(mssql): map varchar to text type#4120
Mady356 wants to merge 1 commit into
dlt-hub:develfrom
Mady356:fix-mssql-varchar-nvarchar-4100

Conversation

@Mady356

@Mady356 Mady356 commented Jun 24, 2026

Copy link
Copy Markdown

Description

This PR adds MSSQL varchar to the destination-to-schema type mapping so that varchar columns are recognized as dlt text columns, matching the existing nvarchar behavior.

Changes:

  • Added varchar -> text to MsSqlTypeMapper.dbt_to_sct.
  • Added a focused regression test for MSSQL text type mapping from destination types.

Related Issues

Additional Context

Validated with:

pytest tests/load/mssql/test_type_mapper.py

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.

Allow support of using VARCHAR or NVARCHAR in MSSQL Destination

1 participant