2

Referring to this link:

https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-template-redshift.html

They list some mappings as:

VARCHAR(20*4) VARCHAR(size*4)

I assume they didn't mean VARCHAR(80) for 20*4 or they would have put that?

Any insights would be helpful.

Thank you

john
  • 33,520
  • 12
  • 45
  • 62

1 Answers1

1

The mappings are like:

MySql          Redshift
-------------  ---------------
VARCHAR(size)  VARCHAR(size*4)

meaning that if you have VARCHAR(20) in MySql you need VARCHAR(80) in Redshift.

The reason is that in Redshift VARCHAR(x) means "x bytes" - see https://docs.aws.amazon.com/redshift/latest/dg/r_Character_types.html

giorgiga
  • 1,758
  • 12
  • 29