You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/01/05 13:13:59 UTC

[GitHub] [hudi] vinishjail97 commented on a change in pull request #4513: Fixing null schema with empty commit in incremental relation

vinishjail97 commented on a change in pull request #4513:
URL: https://github.com/apache/hudi/pull/4513#discussion_r778807773



##########
File path: hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/S3EventsHoodieIncrSource.java
##########
@@ -110,6 +110,10 @@ public S3EventsHoodieIncrSource(
         .option(DataSourceReadOptions.BEGIN_INSTANTTIME().key(), instantEndpts.getLeft())
         .option(DataSourceReadOptions.END_INSTANTTIME().key(), instantEndpts.getRight());
     Dataset<Row> source = metaReader.load(srcPath);
+    
+    if (source.isEmpty()) {

Review comment:
       @nsivabalan Even this check was required for empty source dataset. 




-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org