gnieh / fs2-data

streaming data parsing and transformation library
https://fs2-data.gnieh.org
Apache License 2.0
152 stars 27 forks source link

`encodeGivenHeaders` allows different number of headers than the number of columns with actual data #621

Closed L7R7 closed 3 months ago

L7R7 commented 3 months ago

when using encodeGivenHeaders[A], if the number of elements in the headers argument is different to the number of columns that are encoded for values of A, it is probably something the user wants to know about and the Stream should probably fail with an error instead of encoding an invalid csv

satabin commented 3 months ago

Fixed in 1.11.1.