How to Resize String Columns in the Destination
ON THIS PAGE
When in an event the length of an incoming string value in a source event type field is larger than the size of the mapped column in the destination, Hevo will mark the event as Failed. For Hevo to be able to load the event in the destination table the column needs to be resized.
This can be done very in a single click from the Schema Mapper tab.
In Schema Mapper tab, under options for the event type, click on Resize String Fields. Once this is done, Hevo will resize the required fields in the destination table. The operation might take some time depending on the number of rows in the affected column. Success and failure notifications for the operation are sent to Slack channels (if enabled) and Activity Log.
How it works
Hevo will compare the length of the longest value encountered for a particular field with the length of the mapped destination table column. If the length of the destination table column is found to be shorter Hevo will resize the column. While selecting the size of the column, it uses the next larger number which is a power of 2. For example, if the maximum length seen till now is 150, then the destination column will be resized to 256.
While resizing the column the old data is kept intact.
Once the resizing operation is complete the changes in the destination table column size will reflect in Schema Mapper and failed events will be replayed.
- This option is currently available only for Redshift and Snowflake destination.
- This option is available only for varchar columns.
- If one of the columns to be resized is a key, then the resize operation will fail.