paillave / Etl.Net

Mass processing data with a complete ETL for .net developers
https://paillave.github.io/Etl.Net/
MIT License
668 stars 92 forks source link

fix: Number Column With Fixed Size #472

Closed jduchateau closed 1 year ago

jduchateau commented 1 year ago

Fix the situations were this FlatFileDefinition would throw an InvalidOperationException(if a size is given, all sizes must be given). Solve it and add to the exception the indexes of the columns without a specified size.

FlatFileDefinition.Create(i => new {
    first = i.ToNumberColumn<double>(0, 19, "."), // Size not taken into account
    second = i.ToColumn(1, 5),
});

Targeting master, increase minor version number to 2.1.17-beta.