nsivabalan commented on code in PR #10861:
URL: https://github.com/apache/hudi/pull/10861#discussion_r1525703704
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/GcsEventsHoodieIncrSource.java:
##########
@@ -168,10 +182,18 @@ public Pair<Option<Dataset<Row>>, String>
fetchNextBatch(Option<String> lastChec
+ queryInfo.getStartInstant());
return Pair.of(Option.empty(), queryInfo.getStartInstant());
}
+ return fetchPartitionedSource(cloudObjectIncrCheckpoint,
queryRunner.run(queryInfo, snapshotLoadQuerySplitter), sourceLimit);
+ }
- Pair<QueryInfo, Dataset<Row>> queryInfoDatasetPair =
queryRunner.run(queryInfo, snapshotLoadQuerySplitter);
+ private Pair<Option<Dataset<Row>>, String>
fetchPartitionedSource(CloudObjectIncrCheckpoint cloudObjectIncrCheckpoint,
Pair<QueryInfo, Dataset<Row>> queryInfoDatasetPair, long sourceLimit) {
+ if (this.sourceProfileSupplier.isPresent() &&
this.sourceProfileSupplier.get().getSourceProfile() != null) {
Review Comment:
can we introduce a boolean variable `isSourceProfileSupplierAvailable` and
use it everywhere
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]