Skip to content

Commit 4fd76d4

Browse files
committed
Use PromqlCommand.stepColumnName() for step lookup fallback
Upstream moved STEP_COLUMN_NAME to PromqlCommand; use the accessor.
1 parent a9da1a9 commit 4fd76d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/optimizer/rules/logical/promql/TranslatePromqlToEsqlPlan.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ private static List<NamedExpression> resolveOutput(PromqlCommand promqlCommand,
899899

900900
Attribute stepAttr = findAttributeById(plan.output(), promqlCommand.stepId());
901901
if (stepAttr == null) {
902-
stepAttr = findAttributeByFieldName(plan.output(), STEP_COLUMN_NAME);
902+
stepAttr = findAttributeByFieldName(plan.output(), promqlCommand.stepColumnName());
903903
}
904904
if (stepAttr == null) {
905905
throw new IllegalStateException("PromQL root projection requires a step column");

0 commit comments

Comments
 (0)