You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to watch a CSV file and recompute some statistics each time it changes. Sometimes the last record is incomplete:
Error: Syntax error on line 156: The record has 2 fields, but the header has 4 fields
Describe the solution you'd like
A way to handle syntax errors and continue parsing the stream rather than throwing and halting stream parsing.
e.g. onSyntaxError() option to the CsvParseStream constructor. The function can return a completed record or return something like undefined to skip the record.
Describe alternatives you've considered
Building my own stream transforming to detect an incomplete last line and not pipe it through to the CsvParseStream instance.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I want to watch a CSV file and recompute some statistics each time it changes. Sometimes the last record is incomplete:
Describe the solution you'd like
A way to handle syntax errors and continue parsing the stream rather than throwing and halting stream parsing.
e.g.
onSyntaxError()
option to theCsvParseStream
constructor. The function can return a completed record or return something likeundefined
to skip the record.Describe alternatives you've considered
Building my own stream transforming to detect an incomplete last line and not pipe it through to the
CsvParseStream
instance.The text was updated successfully, but these errors were encountered: