aishikbh commented on code in PR #12220:
URL: https://github.com/apache/pinot/pull/12220#discussion_r1455701276


##########
pinot-spi/src/main/java/org/apache/pinot/spi/data/readers/RecordReaderFileConfig.java:
##########
@@ -34,8 +34,11 @@ public class RecordReaderFileConfig {
   public final File _dataFile;
   public final Set<String> _fieldsToRead;
   public final RecordReaderConfig _recordReaderConfig;
+  private final boolean _isDelegateReader;
   // Record Readers created/passed from clients.
-  public final RecordReader _recordReader;
+  public RecordReader _recordReader;
+  private boolean _isRecordReaderInitialized;

Review Comment:
   - we track if the recordreader is closed for testing purposes. I have 
mentioned it in the comments now. 
   -  we do not need a public interface to check if the recordReader is 
initialised. removed it. We do need it internally to make sure we are only 
closing the recordreaders that are initialised.



-- 
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

Reply via email to