Github user joewitt commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2015#discussion_r127738912
  
    --- Diff: 
nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/RecordReader.java
 ---
    @@ -38,14 +38,35 @@
     public interface RecordReader extends Closeable {
     
         /**
    -     * Returns the next record in the stream or <code>null</code> if no 
more records are available.
    +     * Returns the next record in the stream or <code>null</code> if no 
more records are available. Schema enforcement will be enabled.
          *
          * @return the next record in the stream or <code>null</code> if no 
more records are available.
          *
          * @throws IOException if unable to read from the underlying data
          * @throws MalformedRecordException if an unrecoverable failure occurs 
when trying to parse a record
    +     * @throws SchemaValidationException if a Record contains a field that 
violates the schema and cannot be coerced into the appropriate field type.
          */
    -    Record nextRecord() throws IOException, MalformedRecordException;
    +    default Record nextRecord() throws IOException, 
MalformedRecordException {
    --- End diff --
    
    we should indicate whether the scheme enforcement strictness is 'lenient' 
or 'strict'.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to