Class TranslateTimeSeriesCollapse
java.lang.Object
org.elasticsearch.xpack.esql.rule.Rule<TimeSeriesCollapse,LogicalPlan>
org.elasticsearch.xpack.esql.rule.ParameterizedRule<TimeSeriesCollapse,LogicalPlan,AnalyzerContext>
org.elasticsearch.xpack.esql.analysis.AnalyzerRules.ParameterizedAnalyzerRule<TimeSeriesCollapse,AnalyzerContext>
org.elasticsearch.xpack.esql.optimizer.rules.logical.promql.TranslateTimeSeriesCollapse
public final class TranslateTimeSeriesCollapse
extends AnalyzerRules.ParameterizedAnalyzerRule<TimeSeriesCollapse,AnalyzerContext>
Populates a
TimeSeriesCollapse that wraps a PromqlCommand with the dimensions and
bounds extracted from the inner PromqlCommand. The PromqlCommand itself stays in place as the
child and is translated to ESQL nodes by TranslatePromqlToEsqlPlan on a subsequent pass
in the same batch.
TimeSeriesCollapse is only valid with a PromqlCommand child: parse rules enforce that
for ES|QL text, but callers that build plans by hand must stack collapse the same way or optimization
fails fast here instead of later with unresolved bounds.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LogicalPlanrule(TimeSeriesCollapse collapse, AnalyzerContext context) protected booleanMethods inherited from class org.elasticsearch.xpack.esql.analysis.AnalyzerRules.ParameterizedAnalyzerRule
applyMethods inherited from class org.elasticsearch.xpack.esql.rule.ParameterizedRule
apply
-
Constructor Details
-
TranslateTimeSeriesCollapse
public TranslateTimeSeriesCollapse()
-
-
Method Details
-
skipResolved
protected boolean skipResolved()- Overrides:
skipResolvedin classAnalyzerRules.ParameterizedAnalyzerRule<TimeSeriesCollapse,AnalyzerContext>
-
rule
- Specified by:
rulein classAnalyzerRules.ParameterizedAnalyzerRule<TimeSeriesCollapse,AnalyzerContext>
-