-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ES|QL: add support for include_execution_metadata parameter #134446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a2f8e24
f31b2ae
fc798aa
eb9769b
b49d8e4
5065bbe
b42c726
7c81329
285eb09
6b40a52
8631236
84de275
acd19c4
cfa4d97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 134446 | ||
summary: Add support for `include_execution_metadata` parameter | ||
area: ES|QL | ||
type: enhancement | ||
issues: [] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,8 @@ public class EsqlQueryRequest extends org.elasticsearch.xpack.core.esql.action.E | |
private String query; | ||
private boolean columnar; | ||
private boolean profile; | ||
private boolean includeCCSMetadata; | ||
private Boolean includeCCSMetadata; | ||
private Boolean includeExecutionMetadata; | ||
private Locale locale; | ||
private QueryBuilder filter; | ||
private QueryPragmas pragmas = new QueryPragmas(Settings.EMPTY); | ||
|
@@ -134,14 +135,22 @@ public void profile(boolean profile) { | |
this.profile = profile; | ||
} | ||
|
||
public void includeCCSMetadata(boolean include) { | ||
public void includeCCSMetadata(Boolean include) { | ||
this.includeCCSMetadata = include; | ||
} | ||
|
||
public boolean includeCCSMetadata() { | ||
public Boolean includeCCSMetadata() { | ||
return includeCCSMetadata; | ||
} | ||
|
||
public void includeExecutionMetadata(Boolean include) { | ||
this.includeExecutionMetadata = include; | ||
} | ||
|
||
public Boolean includeExecutionMetadata() { | ||
return includeExecutionMetadata; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we add a validation check either in this class or in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It reduces chances of user errors, so ++, let me add it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ++ both should not be allowed at the same time |
||
|
||
/** | ||
* Is profiling enabled? | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm no longer using this for this PR, but I'll need it for
include_execution_metadata
, so I'm keeping it here.