Skip to content

Commit a6a75e6

Browse files
committed
fixes
1 parent ffb3d93 commit a6a75e6

File tree

2 files changed

+2
-0
lines changed
  • x-pack/plugin/esql

2 files changed

+2
-0
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/lookup/QueryList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ final Query getQuery(int position) {
146146
if (aliasFilter != null && aliasFilter != AliasFilter.EMPTY) {
147147
try {
148148
builder.add(aliasFilter.getQueryBuilder().toQuery(searchExecutionContext), BooleanClause.Occur.FILTER);
149+
builderHasClauses = true;
149150
} catch (IOException e) {
150151
throw new UncheckedIOException("Error while building query for alias filter", e);
151152
}

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action/LookupFromIndexIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ private void runLookup(DataType keyType, PopulateIndices populateIndices) throws
235235
"lookup",
236236
new FieldAttribute.FieldName("key"),
237237
List.of(new Alias(Source.EMPTY, "l", new ReferenceAttribute(Source.EMPTY, "l", DataType.LONG))),
238+
null,
238239
Source.EMPTY
239240
);
240241
DriverContext driverContext = driverContext();

0 commit comments

Comments
 (0)