You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "dan-s1 (via GitHub)" <gi...@apache.org> on 2023/12/04 18:45:27 UTC
Re: [PR] NIFI-8932: Add capability to skip first N rows in CSVReader [nifi]
dan-s1 commented on code in PR #7952:
URL: https://github.com/apache/nifi/pull/7952#discussion_r1414338830
##########
nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/main/java/org/apache/nifi/csv/AbstractCSVRecordReader.java:
##########
@@ -74,6 +88,14 @@ abstract public class AbstractCSVRecordReader implements RecordReader {
this.timestampFormat = timestampFormat;
LAZY_TIMESTAMP_FORMAT = () -> DataTypeUtils.getDateFormat(timestampFormat);
}
+
+ final InputStream bomInputStream = BOMInputStream.builder().setInputStream(in).get();
+ inputStreamReader = new InputStreamReader(bomInputStream, encoding);
Review Comment:
```suggestion
this.inputStreamReader = new InputStreamReader(bomInputStream, encoding);
```
--
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: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org