The function is not robust. To cover all cases you need to comply with: https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-template-redshift.html For example, what if you get int(8) from MySQL?
Activity
benjamingregory commentedon Mar 22, 2018
Very good point @szeevs. This was done quickly to handle a specific implementation but you're absolutely right; it needs to be more robust.
Are you interested in taking this issue?
szeevs commentedon Mar 22, 2018
Yes. I will resolve this.
benjamingregory commentedon Mar 22, 2018
Great! Just assigned you @szeevs.