Skip to content
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

[timeseries] Remove Time Series Specific Code from V1 Engine #14841

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading