Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed loading filenames with + #204

Open
if-gh opened this issue Nov 26, 2019 · 0 comments
Open

Failed loading filenames with + #204

if-gh opened this issue Nov 26, 2019 · 0 comments

Comments

@if-gh
Copy link
Contributor

if-gh commented Nov 26, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant