Skip to content

Support NOT in TimeSegmentPruner#8381

Merged
Jackie-Jiang merged 1 commit intoapache:masterfrom
Jackie-Jiang:time_pruner_not
Mar 22, 2022
Merged

Support NOT in TimeSegmentPruner#8381
Jackie-Jiang merged 1 commit intoapache:masterfrom
Jackie-Jiang:time_pruner_not

Conversation

@Jackie-Jiang
Copy link
Copy Markdown
Contributor

No description provided.

@Jackie-Jiang Jackie-Jiang requested a review from xiangfu0 March 22, 2022 00:54
/**
* Returns the complement (non-overlapping sorted intervals) of the given non-overlapping sorted intervals.
*/
private List<Interval> getComplementSortedIntervals(List<Interval> intervals) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) might want to add a unit test just for this function alone ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have test for individual interval set operations currently. We may add them as a separate PR

@Jackie-Jiang Jackie-Jiang merged commit bc96b13 into apache:master Mar 22, 2022
@Jackie-Jiang Jackie-Jiang deleted the time_pruner_not branch March 22, 2022 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants