Forum Discussion
ptaylor
5 years agoEmployee
Simple answer: no.
In theory, snaps like the CSV Parser could be enhanced with a new setting to limit the number of output documents, but there’s little reason to burden snaps with this additional complexity when you can achieve the same result by adding a Head snap.
May I ask why it’s preferable to stop reading the file early?
- SpiroTaleski4 years agoValued Contributor
You can either:
-
Use Head Snap with “Number of documents” = 1 and “Documents offset” = 0
-
Use Filter Snap with following expr:
snap.in.totalCount == 1
Regards,
Spiro Taleski -