We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using a chunk size bigger than the ReadableStream, the last line is ignored in the first chunk and a second chunk is always provided.
given:
title,name test title 01,test name 01 last line,last line
(without a new line at EOF)
running:
var readStream = fs.createReadStream(__dirname + '/sample.csv', 'utf8'); Papa.parse(readStream, { header: false, chunkSize: 4000000000, chunk: function(item) { console.log('>>>> chunk ' + JSON.stringify(item.data)); }, });
will output:
>>>> chunk [["title","name"],["test title 01","test name 01"]] >>>> chunk [["last line","last line"]]
This seems to be related to ignoreLastRow which was introduced in #135
ignoreLastRow
Is this expected? Surely in a small enough file, there should be only one chunk.
The text was updated successfully, but these errors were encountered:
I am seeing this also.
Sorry, something went wrong.
No branches or pull requests
When using a chunk size bigger than the ReadableStream, the last line is ignored in the first chunk and a second chunk is always provided.
given:
(without a new line at EOF)
running:
will output:
This seems to be related to
ignoreLastRow
which was introduced in #135Is this expected? Surely in a small enough file, there should be only one chunk.
The text was updated successfully, but these errors were encountered: