You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a better user experience, and efficient handling of text data, target-redshift should implement automatic varchar widening, which starts off at a default (say 255) and automatically widen the varchar max length column as it observes field text lengths in incoming batches.
Steps:
Start with a default max length for each new varchar column.
On each new batch, for each table:
a) Get the current length of each varchar column in the target table.
b) At some point before updating the schema, find the max of the length of all the record values for every varchar column.
c) If it’s past the limit (64k), warn or throw an Exception.
d) If it's under the limit (64k), update the column max length during schema update.
The text was updated successfully, but these errors were encountered:
For a better user experience, and efficient handling of text data, target-redshift should implement automatic varchar widening, which starts off at a default (say 255) and automatically widen the varchar max length column as it observes field text lengths in incoming batches.
Steps:
a) Get the current length of each varchar column in the target table.
b) At some point before updating the schema, find the max of the length of all the record values for every varchar column.
c) If it’s past the limit (64k), warn or throw an Exception.
d) If it's under the limit (64k), update the column max length during schema update.
The text was updated successfully, but these errors were encountered: