-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HUDI-7102] Fix a bug for time travel queries on MOR tables #10102
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,7 +260,7 @@ private void scanInternalV1(Option<KeySpec> keySpecOpt) { | |
&& !HoodieTimeline.compareTimestamps(logBlock.getLogBlockHeader().get(INSTANT_TIME), HoodieTimeline.LESSER_THAN_OR_EQUALS, this.latestInstantTime | ||
)) { | ||
// hit a block with instant time greater than should be processed, stop processing further | ||
break; | ||
continue; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reader consumption upper threshold is introduced for unnecessary reading of log block, should we drop it? I don't think so, maybe you shoud just fix the threshold itself. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixing the threshold? Do you mean increase the AS_OF timestamp given from the query? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @danny0405, after discussing with @yihua , the fix here is correct since the order of log blocks have been reversed and the "break" logic was for the old design where the blocks are in the order of time. CC:@yihua There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The @linliu-code could you add this detail to the other ticket fixing the file system view APIs based on completion time, so we should revisit this part alongside the FSV fix? |
||
if (logBlock.getBlockType() != CORRUPT_BLOCK && logBlock.getBlockType() != COMMAND_BLOCK) { | ||
if (!completedInstantsTimeline.containsOrBeforeTimelineStarts(instantTime) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey folks. do we need this fix for 0.14.x as well. or do we need only for 1.x?
in other words, should I cherry this for 0.14.1 upcoming relase?