mcvsubbu commented on a change in pull request #3788: Adding explicit message
to alert users to empty input files during segment generation
URL: https://github.com/apache/incubator-pinot/pull/3788#discussion_r253594404
##########
File path:
pinot-core/src/main/java/org/apache/pinot/core/segment/creator/impl/SegmentIndexCreationDriverImpl.java
##########
@@ -119,7 +119,7 @@ public void init(SegmentGeneratorConfig config,
SegmentCreationDataSource dataSo
this.config = config;
this.createStarTree = config.isEnableStarTreeIndex();
recordReader = dataSource.getRecordReader();
- Preconditions.checkState(recordReader.hasNext(), "No record in data
source");
+ Preconditions.checkState(recordReader.hasNext(), "No records found: You
must have at least one record in each of your input files");
Review comment:
Can you remove the pre-conditions check here, and add an explicit error
message with as much details as possible (input file name, full path,
whatever). And then throw the exception with the same message?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]