-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
KYLIN-5371 fix segment prune #2049
base: kylin4
Are you sure you want to change the base?
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 |
---|---|---|
|
@@ -366,7 +366,9 @@ class FilePruner(cubeInstance: CubeInstance, | |
val pruned = segDirs.filter { | ||
e => { | ||
val tsRange = cubeInstance.getSegment(e.segmentName, SegmentStatusEnum.READY).getTSRange | ||
SegFilters(tsRange.startValue, tsRange.endValue, pattern) | ||
// tsRange: 20221219000000_20221219010000、20221219010000_20221219020000, pattern: yyyy-MM-dd | ||
val start = DateFormat.getFormatTimeStamp(tsRange.startValue, pattern) | ||
SegFilters(start, tsRange.endValue, pattern) | ||
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. how about tsRange.endValue? is it same as 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. 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. As for clearance, please comment on the place of tsRange.endValue then help others to understand. |
||
.foldFilter(reducedFilter) match { | ||
case AlwaysTrue => true | ||
case AlwaysFalse => false | ||
|
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.
This is hard code for timezone, please reference to org.apache.kylin.common.KylinConfigBase#getTimeZone
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.