Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
3.0.0
-
None
-
None
Description
protected FilterList constructFilterListBasedOnFilters() throws IOException { FilterList listBasedOnFilters = new FilterList(); // Filter based on created time range. Long createdTimeBegin = getFilters().getCreatedTimeBegin(); Long createdTimeEnd = getFilters().getCreatedTimeEnd(); if (createdTimeBegin != 0 || createdTimeEnd != Long.MAX_VALUE) { listBasedOnFilters.addFilter(TimelineFilterUtils .createSingleColValueFiltersByRange(FlowRunColumn.MIN_START_TIME, createdTimeBegin, createdTimeEnd)); } // Filter based on metric filters. TimelineFilterList metricFilters = getFilters().getMetricFilters(); if (metricFilters != null && !metricFilters.getFilterList().isEmpty()) { listBasedOnFilters.addFilter(TimelineFilterUtils.createHBaseFilterList( FlowRunColumnPrefix.METRIC, metricFilters)); } return listBasedOnFilters; }
createdTimeEnd is used as an upper bound for MIN_START_TIME. We should create one filter based on createdTimeBegin and another based on createdTimeEnd.