in src/main/java/net/hydromatic/optiq/impl/csv/CsvEnumerator.java [54:64]
public CsvEnumerator(File file, CsvFieldType[] fieldTypes, int[] fields) {
this.rowConverter = fields.length == 1
? new SingleColumnRowConverter(fieldTypes[fields[0]], fields[0])
: new ArrayRowConverter(fieldTypes, fields);
try {
this.reader = new CSVReader(new FileReader(file));
this.reader.readNext(); // skip header row
} catch (IOException e) {
throw new RuntimeException(e);
}
}