Skip to content

Commit 24e35ed

Browse files
committed
Rename parse to parsePromqlParams
1 parent f9610e6 commit 24e35ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/LogicalPlanBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ public PlanFactory visitSampleCommand(EsqlBaseParser.SampleCommandContext ctx) {
12261226
@Override
12271227
public PlanFactory visitPromqlCommand(EsqlBaseParser.PromqlCommandContext ctx) {
12281228
Source source = source(ctx);
1229-
PromqlParams params = parse(ctx, source);
1229+
PromqlParams params = parsePromqlParams(ctx, source);
12301230

12311231
// TODO: Perform type and value validation
12321232
var queryCtx = ctx.promqlQueryPart();
@@ -1257,7 +1257,7 @@ public PlanFactory visitPromqlCommand(EsqlBaseParser.PromqlCommandContext ctx) {
12571257
return plan -> new PromqlCommand(source, plan, promqlPlan, params);
12581258
}
12591259

1260-
private static PromqlParams parse(EsqlBaseParser.PromqlCommandContext ctx, Source source) {
1260+
private static PromqlParams parsePromqlParams(EsqlBaseParser.PromqlCommandContext ctx, Source source) {
12611261
Instant time = null;
12621262
Instant start = null;
12631263
Instant end = null;

0 commit comments

Comments
 (0)