suddendust commented on a change in pull request #7237: URL: https://github.com/apache/pinot/pull/7237#discussion_r690893459
########## File path: pinot-plugins/pinot-input-format/pinot-csv/src/main/java/org/apache/pinot/plugin/inputformat/csv/CSVRecordReader.java ########## @@ -103,6 +105,23 @@ public void init(File dataFile, @Nullable Set<String> fieldsToRead, @Nullable Re _recordExtractor.init(fieldsToRead, recordExtractorConfig); } + private void validateHeaderForDelimiter(char delimiter, String csvHeader, CSVFormat format) + throws IOException { + CSVParser parser = format.parse(RecordReaderUtils.getBufferedReader(_dataFile)); Review comment: CSVParser doesn't move back, so once I read a record from the datafile, it would be impossible for me to re-read it. From the docs "It is not possible to go back, once a record has been parsed from the input stream." -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org