awslabs / aws-lambda-redshift-loader

Amazon Redshift Database Loader implemented in AWS Lambda
Other
597 stars 164 forks source link

Failed loading filenames with `+` #204

Open if-gh opened 5 years ago

if-gh commented 5 years ago

https://github.com/awslabs/aws-lambda-redshift-loader/blob/master/index.js#L785-L790

This line is replacing all + with ` (whitespace) which is problematic for filenames with+, e.g.: Original filename in S3:hello+world.csv Generated manifest:hello world.csv` Then Redshift will complain the key does not exist when trying to load the manifest. I manually changed it to:

url: 's3://' + batchEntries[i],

and it worked fine for me.