Comments (8)
What do you mean, can you run the command and copy out the input and output here?
from dynamodbtocsv.
I run:
node dynamoDBtoCSV.js -t TableName > result.csv
And on the csv i see:
But this 'dummy' line isn't on my dynamoDB its added by the code.
from dynamodbtocsv.
@tcchau can you speak to that? Seems that line wasn't unmarshalled correctly, causing dummy rows to be inserted in its place?
from dynamodbtocsv.
@edasque @MarcoPorracin Hi there. Yes, sorry, I didn't have enough time to solve the original problem completely.
Let me explain: The original problem is that if you have a table that uses a variable set of attributes for items, the first item that is retrieved by dynamoDBtoCSV will define the set of attributes that will be output. That is, if some of your items have an attribute called, 'optionalData', but not the first item, then 'optionalData' from any other item will not be included in the output.
The fastest way for me to resolve this problem was to create a dummy first item that contains every possible attribute that exists in any item in the whole table.
The proper fix would have been to fix the output generation code so that it is aware that we're working with items that may contain additional attributes.
If I have time later on this month, I can work on that, but if someone else can get to it first, by all means!
from dynamodbtocsv.
So @tcchau that line just has to be excluded from the CSV output (or just removed from that doc)?
from dynamodbtocsv.
Yes, @edasque, I just remove it from my CSV output file manually, since I only occasionally run such a report.
from dynamodbtocsv.
@MarcoPorracin @edasque It turns out, upon reviewing the papaparse library documentation a little more closely, there's a way to eliminate the need for the dummy row fairly easily. I've issued a pull request to fix this #32
from dynamodbtocsv.
Fixed on pull request #32
from dynamodbtocsv.
Related Issues (20)
- papaparse and dynamodb-marshaler HOT 1
- Error on MacOS
- UnrecognizedClientException: The security token included in the request is invalid. HOT 3
- support `--profile` argument or `AWS_PROFILE` environment variable HOT 2
- Question about 'region' HOT 2
- SynstaxError when running on ubuntu HOT 1
- Limit the request rate
- Invalid string length
- Add an option to filter rows HOT 4
- Error: connect ETIMEDOUT HOT 1
- Use AWS Credential Provider Chain instead of config.json HOT 2
- Add option to write a file HOT 1
- [Bug] Profile aren't properly handled, return wrong credentials HOT 2
- unable to verify the first certificate
- Export not working because of -v parameter
- Unexpected token u in JSON at position 0 HOT 3
- Is the script really recognize CLI options? HOT 12
- "You must specify a table" HOT 7
- Texts with accents coming incorrectly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamodbtocsv.