File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
internalClusterTest/java/org/elasticsearch/xpack/esql/action
main/java/org/elasticsearch/xpack/esql/session Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 3838import org .elasticsearch .index .IndexSettings ;
3939import org .elasticsearch .index .mapper .DateFieldMapper ;
4040import org .elasticsearch .index .mapper .extras .MapperExtrasPlugin ;
41+ import org .elasticsearch .index .query .BoolQueryBuilder ;
4142import org .elasticsearch .index .query .QueryBuilder ;
4243import org .elasticsearch .index .query .RangeQueryBuilder ;
4344import org .elasticsearch .index .shard .IndexShard ;
@@ -147,6 +148,13 @@ public void testRow() {
147148 }
148149 }
149150
151+ public void testRowWithFilter () {
152+ long value = randomLongBetween (0 , Long .MAX_VALUE );
153+ try (EsqlQueryResponse response = run (syncEsqlQueryRequest ().query ("row " + value ).filter (new BoolQueryBuilder ().boost (1.0f )))) {
154+ assertEquals (List .of (List .of (value )), getValuesList (response ));
155+ }
156+ }
157+
150158 public void testFromStatsGroupingAvgWithSort () {
151159 testFromStatsGroupingAvgImpl ("from test | stats avg(count) by data | sort data | limit 2" , "data" , "avg(count)" );
152160 }
Original file line number Diff line number Diff line change @@ -595,7 +595,9 @@ private static void analyzeAndMaybeRetry(
595595 if (result .indices .isValid () || requestFilter != null ) {
596596 // We won't run this check with no filter and no valid indices since this may lead to false positive - missing index report
597597 // when the resolution result is not valid for a different reason.
598- EsqlCCSUtils .updateExecutionInfoWithClustersWithNoMatchingIndices (executionInfo , result .indices , requestFilter != null );
598+ if (executionInfo .clusterInfo .isEmpty () == false ) {
599+ EsqlCCSUtils .updateExecutionInfoWithClustersWithNoMatchingIndices (executionInfo , result .indices , requestFilter != null );
600+ }
599601 }
600602 plan = analyzeAction .apply (result );
601603 } catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments