Adding dsl-query-executor plugin to sandbox#20969
Conversation
Introduces a new sandbox plugin that intercepts _search requests and routes them through a execution pipeline via the analytics engine. Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 548f2d8.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
| * Translates a metric aggregation (AVG, SUM, MIN, MAX, etc.) to a Calcite AggregateCall, | ||
| * and converts raw result values back to OpenSearch InternalAggregation for response building. | ||
| */ | ||
| public interface MetricTranslator<T extends AggregationBuilder> extends AggregationType<T> { |
There was a problem hiding this comment.
Can we rename this as SingleValueMetricTranslator since this returns single aggregate call, whereas for multi-value metric aggregations (like stats) we need multiple aggregate calls to be returned and that would need a different base class?
There was a problem hiding this comment.
For that i thought we can have like this
MetricTranslatoras top level interface (we may still need this)SingleMetricTranslatorand all single value metrics will extend thisMultiValueMetricTranslator, all multi value metrics will extend this
e4a1193
into
opensearch-project:feature/datafusion
| protected void doExecute(Task task, SearchRequest request, ActionListener<SearchResponse> listener) { | ||
| try { | ||
| String indexName = resolveToSingleIndex(request); | ||
| long startTime = System.currentTimeMillis(); |
There was a problem hiding this comment.
Lets use nanoTime as wall clock time for measuring elapsed time
* Add dsl-query-executor sandbox plugin for DSL-to-Calcite query execution Introduces a new sandbox plugin that intercepts _search requests and routes them through a execution pipeline via the analytics engine. Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com> * Add query filter, project, and sort converters Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com> * Added Bucket and Metric aggregation translators Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com> * resolve conflicts in the build.gradle Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com> --------- Signed-off-by: Vinay Krishna Pudyodu <vinkrish.neo@gmail.com> Signed-off-by: Himshikha Gupta <himshikh@amazon.com>
Description
[Describe what this change achieves]
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.