paillave / Etl.Net

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

fix: Number Column With Fixed Size #473

Closed jduchateau closed 10 months ago

jduchateau commented 10 months 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 develop branch and increase minor version number to 2.1.15.