This commit correctly sets the maxLinesPerRow in the CsvPreference for delimited files given the file structure finder settings. Previously, it was silently ignored.
This commit is contained in:
parent
68985bc1ca
commit
c36bcb4dd0
|
@ -71,7 +71,8 @@ public class DelimitedFileStructureFinderFactory implements FileStructureFinderF
|
|||
public FileStructureFinder createFromSample(List<String> explanation, String sample, String charsetName, Boolean hasByteOrderMarker,
|
||||
int lineMergeSizeLimit, FileStructureOverrides overrides, TimeoutChecker timeoutChecker)
|
||||
throws IOException {
|
||||
CsvPreference adjustedCsvPreference = new CsvPreference.Builder(csvPreference).maxLinesPerRow(lineMergeSizeLimit).build();
|
||||
return DelimitedFileStructureFinder.makeDelimitedFileStructureFinder(explanation, sample, charsetName, hasByteOrderMarker,
|
||||
csvPreference, trimFields, overrides, timeoutChecker);
|
||||
adjustedCsvPreference, trimFields, overrides, timeoutChecker);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue