mafintosh / csv-parser

Streaming csv parser inspired by binary-csv that aims to be faster than everyone else
MIT License
1.41k stars 134 forks source link

push null should be sent when file is read completly #156

Closed pguijarr closed 4 years ago

pguijarr commented 4 years ago

Expected Behavior

It should send null chunk when file is finished for a new pipe.

Actual Behavior

the next pipe cannot know when csv is finished completely, there is not difference between the last element or one in the middle.

How Do We Reproduce?

Using a new pipe after the csv_parser and try to find the last element.

shellscape commented 4 years ago

Please reference the example in the README for how to cache rows/records as they are streamed. It's not the stream's ("pipe") job to let you know what the last element is.