tledkov-gridgain commented on a change in pull request #464:
URL: https://github.com/apache/ignite-3/pull/464#discussion_r754879866



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/util/BaseQueryContext.java
##########
@@ -108,14 +118,16 @@
     private BaseQueryContext(
             FrameworkConfig cfg,
             Context parentCtx,
-            IgniteLogger log
+            IgniteLogger log,
+            List<SqlExtension> extensions
     ) {
         super(Contexts.chain(parentCtx, cfg.getContext()));
         
         // link frameworkConfig#context() to this.
         this.cfg = Frameworks.newConfigBuilder(cfg).context(this).build();
         
         this.log = log;
+        this.extensions = 
extensions.stream().collect(Collectors.toMap(SqlExtension::name, 
Function.identity()));

Review comment:
       Is the map creation necessary for each query? Can we create the map once 
at the SqlProcessor? 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to