You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "hudi-bot (via GitHub)" <gi...@apache.org> on 2025/11/30 06:16:14 UTC

[I] Revisit the merging of HoodieDefaultTimeline [hudi]

hudi-bot opened a new issue, #15661:
URL: https://github.com/apache/hudi/issues/15661

   Revisit the logic below to see if there is inefficiency.  This is used by HoodieSyncClient.
   {code:java}
   public HoodieDefaultTimeline mergeTimeline(HoodieDefaultTimeline timeline) {
     Stream<HoodieInstant> instantStream = Stream.concat(instants.stream(), timeline.getInstants()).sorted();
     Function<HoodieInstant, Option<byte[]>> details = instant -> {
       if (instants.stream().anyMatch(i -> i.equals(instant))) {
         return this.getInstantDetails(instant);
       } else {
         return timeline.getInstantDetails(instant);
       }
     };
     return new HoodieDefaultTimeline(instantStream, details);
   } {code}
   
   ## JIRA info
   
   - Link: https://issues.apache.org/jira/browse/HUDI-5481
   - Type: Improvement


-- 
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.apache.org

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