sql - Determine field's bytes in Redshift -


I'm taking a table from SQL Server to Redshift. I've exported the data and found it in the UTF-8 text file is. When trying to load Redshift, the CPI command fails, the data complaint is more than the width of the field.

The destination Redshift table schema source matches the SQL Server table (i.e. varchar field width is the same). If I understand correctly, the size of the redshift's size is in the bytes, and not the character, such as the SQL server, the multi-byte characters are causing "very broad" problems.

I want to know how much to increase my workaround field, but it does not seem to be the number of bytes for the string, only gives the number of characters in that string .

How have others solved this problem?

field type and result can be important in the field type redshift. Load sample data in the RedShift table with maximum field sizes. The sample should be as big as possible. With the negation of definitions in MSSQL server, you will be able to calculate the real field size, which can actually be much higher than you.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -