forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for early termination in Driver (elastic#118188)
This change introduces support for periodically checking for early termination. This enables early exits in the following scenarios: 1. The query has accumulated sufficient data (e.g., reaching the LIMIT). 2. The query is stopped (either by users or due to failures). Other changes will be addressed in follow-up PRs.
- Loading branch information
Showing
7 changed files
with
194 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 118188 | ||
summary: Check for early termination in Driver | ||
area: ES|QL | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...ute/src/main/java/org/elasticsearch/compute/operator/DriverEarlyTerminationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
package org.elasticsearch.compute.operator; | ||
|
||
import org.elasticsearch.ElasticsearchException; | ||
|
||
/** | ||
* An exception indicates that a compute should be terminated early as the downstream pipeline has enough or no long requires more data. | ||
*/ | ||
public final class DriverEarlyTerminationException extends ElasticsearchException { | ||
public DriverEarlyTerminationException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 0 additions & 91 deletions
91
...enerated/org/elasticsearch/xpack/esql/expression/function/scalar/util/DelayEvaluator.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.