Skip to content

Commit d706790

Browse files
committed
Fix CSVDataset constructor
1 parent 9b4b166 commit d706790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vtl-csv/src/main/java/fr/insee/vtl/csv/CSVDataset.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public CSVDataset(DataStructure structure, Reader csv) throws IOException {
3030

3131
public CSVDataset(DataStructure structure, Reader csv, CsvPreference csvPreference) throws IOException {
3232
this.structure = structure;
33-
this.csvReader = new CsvMapReader(csv, CsvPreference.EXCEL_NORTH_EUROPE_PREFERENCE);
33+
this.csvReader = new CsvMapReader(csv, csvPreference);
3434
var columns = this.csvReader.getHeader(true);
3535
if (!this.structure.keySet().containsAll(List.of(columns))) {
3636
throw new RuntimeException("missing columns in CSV");

0 commit comments

Comments
 (0)