Support large text fields above NVARCHAR(4000) in Azure Synapse destinations
Which destination?:
Azure Synapse
Additional details:
We ingest data from MySQL into Azure Synapse and have source columns containing large text/JSON payloads that can exceed 4,000 characters, for example MySQL MEDIUMTEXT.
Currently, these fields are mapped to NVARCHAR(4000) in the Azure Synapse destination. When a source value exceeds this limit, the complete value cannot be retained in the destination. For JSON payloads, this can result in incomplete or invalid JSON even though the original source value is complete and valid.
In our use case, these JSON fields are required by downstream data transformations and reporting processes, so preserving the complete source value is important for data integrity.
NVARCHAR(MAX), an alternative supported index/table configuration, or another mechanism (other than the existing columnstore index, which do not support NVARCHAR(MAX)), OR Persistent VARCHAR(8000) mapping that allows values exceeding 4,000 characters to be replicated without truncation.Ideally, the solution should:
- Preserve the complete source value for large text and JSON columns.
- Support values greater than 4,000 characters.
- Persist across normal syncs and table re-syncs.
- Allow large-text columns to coexist with the Fivetran-managed Synapse schema without requiring manual destination changes.
-
Provide a supported approach for large-text columns where the current columnstore-based implementation cannot accommodate the required data type or length.
This would be particularly useful for MySQL TEXT/MEDIUMTEXT fields containing JSON or other semi-structured payloads where the source value cannot safely be limited to 4,000 characters.
Please sign in to leave a comment.
Comments
0 comments