Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Huo <penghuo@gmail.com>
  • Loading branch information
penghuo committed Oct 28, 2022
1 parent 2422a5b commit 26fc997
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
14 changes: 10 additions & 4 deletions integ-test/src/test/java/org/opensearch/sql/ppl/StandaloneIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,16 @@ QueryManager queryManager() {
@Bean
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
QueryPlanFactory queryExecutionFactory(BuiltinFunctionRepository functionRepository) {
catalogService.getCatalogs()
.forEach(catalog -> catalogService.getStorageEngine(catalog)
.getFunctions()
.forEach(functionResolver -> functionRepository.register(catalog, functionResolver)));
catalogService
.getCatalogs()
.forEach(
catalog ->
catalog
.getStorageEngine()
.getFunctions()
.forEach(
functionResolver ->
functionRepository.register(catalog.getName(), functionResolver)));
Analyzer analyzer = new Analyzer(new ExpressionAnalyzer(functionRepository),
catalogService, functionRepository);
Planner planner =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,16 @@ public QueryManager queryManager() {
@Bean
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public QueryPlanFactory queryExecutionFactory(BuiltinFunctionRepository functionRepository) {
catalogService.getCatalogs()
.forEach(catalog -> catalogService.getStorageEngine(catalog)
.getFunctions()
.forEach(functionResolver -> functionRepository.register(catalog, functionResolver)));
catalogService
.getCatalogs()
.forEach(
catalog ->
catalog
.getStorageEngine()
.getFunctions()
.forEach(
functionResolver ->
functionRepository.register(catalog.getName(), functionResolver)));
Analyzer analyzer = new Analyzer(new ExpressionAnalyzer(functionRepository),
catalogService, functionRepository);
Planner planner =
Expand Down

0 comments on commit 26fc997

Please sign in to comment.