[HUDI-3168] Fixing null schema with empty commit in incremental relation (#4513)
This commit is contained in:
@@ -110,6 +110,10 @@ public class S3EventsHoodieIncrSource extends HoodieIncrSource {
|
||||
.option(DataSourceReadOptions.BEGIN_INSTANTTIME().key(), instantEndpts.getLeft())
|
||||
.option(DataSourceReadOptions.END_INSTANTTIME().key(), instantEndpts.getRight());
|
||||
Dataset<Row> source = metaReader.load(srcPath);
|
||||
|
||||
if (source.isEmpty()) {
|
||||
return Pair.of(Option.empty(), instantEndpts.getRight());
|
||||
}
|
||||
|
||||
String filter = "s3.object.size > 0";
|
||||
if (!StringUtils.isNullOrEmpty(props.getString(Config.S3_KEY_PREFIX))) {
|
||||
|
||||
Reference in New Issue
Block a user