Open SudhakarSA opened 2 years ago
In code
cb(null, JSON.stringify(chunk));
you pass data as JSON. But internal format is TSV. So If you pass like
cb(null, [chunk.eventDate, chunk.eventDateTime, data.numericValue].join('\t'));
it must work
Yes. this works for me. In docs, i see JSON.stringify
instead of tab separated values as internal format is TSV
cb(null, [chunk.eventDate, chunk.eventDateTime, data.numericValue].join('\t'));
You forgot about '\n', full working code looks like this:
cb(null, [chunk.eventDate, chunk.eventDateTime, data.numericValue].join('\t') + '\n');
Here is my table schema
And i am trying to write data from one table to another. Below is my code
I am getting this error Error: