Skip to content

Commit

Permalink
[timeseries] Remove Time Series Specific Code from V1 Engine (#14841)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitsultana authored Jan 28, 2025
1 parent 8f003bd commit b6b2fd9
Show file tree
Hide file tree
Showing 33 changed files with 631 additions and 1,063 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,10 @@ public enum TransformFunctionType {
TANH("tanh"),
DEGREES("degrees"),
RADIANS("radians"),

// Complex type handling
ITEM("item");
ITEM("item"),
// Time series functions
TIME_SERIES_BUCKET("timeSeriesBucket");

private final String _name;
private final List<String> _names;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,15 @@
*/
package org.apache.pinot.core.operator.blocks.results;

import com.google.common.base.Preconditions;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.pinot.common.request.context.ExpressionContext;
import org.apache.pinot.common.request.context.FilterContext;
import org.apache.pinot.common.request.context.TimeSeriesContext;
import org.apache.pinot.common.utils.DataSchema;
import org.apache.pinot.common.utils.DataSchema.ColumnDataType;
import org.apache.pinot.core.operator.blocks.TimeSeriesBuilderBlock;
import org.apache.pinot.core.query.aggregation.function.AggregationFunction;
import org.apache.pinot.core.query.aggregation.function.AggregationFunctionUtils;
import org.apache.pinot.core.query.distinct.table.DistinctTable;
Expand All @@ -44,9 +41,6 @@ private ResultsBlockUtils() {
}

public static BaseResultsBlock buildEmptyQueryResults(QueryContext queryContext) {
if (QueryContextUtils.isTimeSeriesQuery(queryContext)) {
return buildEmptyTimeSeriesResults(queryContext);
}
if (QueryContextUtils.isSelectionQuery(queryContext)) {
return buildEmptySelectionQueryResults(queryContext);
}
Expand Down Expand Up @@ -125,11 +119,4 @@ private static DistinctResultsBlock buildEmptyDistinctQueryResults(QueryContext
queryContext.isNullHandlingEnabled());
return new DistinctResultsBlock(distinctTable, queryContext);
}

private static TimeSeriesResultsBlock buildEmptyTimeSeriesResults(QueryContext queryContext) {
TimeSeriesContext timeSeriesContext = queryContext.getTimeSeriesContext();
Preconditions.checkNotNull(timeSeriesContext);
return new TimeSeriesResultsBlock(
new TimeSeriesBuilderBlock(timeSeriesContext.getTimeBuckets(), Collections.emptyMap()));
}
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b6b2fd9

Please sign in to comment.