Use Object type for queryCtx in AnalyticsExecutionEngine#5496
Use Object type for queryCtx in AnalyticsExecutionEngine#5496finnegancarroll wants to merge 1 commit into
Conversation
The QueryRequestContext class lives in analytics-engine (plugin) not analytics-api (library). The core module only depends on analytics-api at compile time, so referencing QueryRequestContext directly causes compilation failures when the published analytics-api SNAPSHOT does not include it. Since QueryPlanExecutor.execute() takes Object as the context parameter anyway, just use Object here. The value is passed through opaquely — no type-specific operations are performed on it. Signed-off-by: Finn Carroll <carrofin@amazon.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit ad2b1f5.
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. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Description
The
QueryRequestContextclass lives inanalytics-engine(plugin), notanalytics-api(library). Thecoremodule only has acompileOnlydependency onanalytics-api, so referencingQueryRequestContextdirectly causes compilation failures when the publishedanalytics-apiSNAPSHOT does not include it.Since
QueryPlanExecutor.execute()takesObjectas the context parameter anyway, this PR changes the parameter type fromorg.opensearch.analytics.QueryRequestContexttoObject. The value is passed through opaquely — no type-specific operations are performed on it in this module.Issues Resolved
Fixes snapshot publish failure:
cannot find symbol: class QueryRequestContext in package org.opensearch.analyticsCheck List