Skip to content

Commit 1d0c24e

Browse files
committed
Pick-up changes from main
1 parent 0390231 commit 1d0c24e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import org.elasticsearch.xpack.esql.EsqlIllegalArgumentException;
1111
import org.elasticsearch.xpack.esql.action.PromqlFeatures;
12+
import org.elasticsearch.xpack.esql.capabilities.ConfigurationAware;
1213
import org.elasticsearch.xpack.esql.core.QlIllegalArgumentException;
1314
import org.elasticsearch.xpack.esql.core.expression.Alias;
1415
import org.elasticsearch.xpack.esql.core.expression.Expression;
@@ -196,7 +197,8 @@ private static MapResult map(PromqlCommand promqlCommand, PromqlFunctionCall fun
196197
// use default lookback for instant queries
197198
timeBucketSize = Literal.timeDuration(promqlCommand.source(), DEFAULT_LOOKBACK);
198199
}
199-
Bucket b = new Bucket(promqlCommand.source(), promqlCommand.timestamp(), timeBucketSize, null, null);
200+
Bucket b = new Bucket(promqlCommand.source(), promqlCommand.timestamp(), timeBucketSize, null, null,
201+
ConfigurationAware.CONFIGURATION_MARKER);
200202
String bucketName = "TBUCKET";
201203
Alias tbucket = new Alias(b.source(), bucketName, b);
202204
aggs.add(tbucket.toAttribute());

0 commit comments

Comments
 (0)