awslabs / awslabs/aws-lambda-redshift-loader

Failed loading filenames with `+`

Open
#204 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
595
Forks
161
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.