You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "morningman (via GitHub)" <gi...@apache.org> on 2023/04/14 01:42:15 UTC

[GitHub] [doris] morningman commented on a diff in pull request #18636: [Refactor](multi catalog)Remove redundant param context for FileQueryScanNode

morningman commented on code in PR #18636:
URL: https://github.com/apache/doris/pull/18636#discussion_r1165546876


##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/FileQueryScanNode.java:
##########
@@ -114,9 +116,10 @@ public void init() throws UserException {
 
         backendPolicy.init();
         numNodes = backendPolicy.numBackends();
-        context = scanProvider.createContext(analyzer);
-        context.createDestSlotMap();
-        context.conjuncts = conjuncts;
+        initParamCreateContexts();
+        // context = scanProvider.createContext(analyzer);

Review Comment:
   delete if unused.



##########
fe/fe-core/src/main/java/org/apache/doris/planner/external/FileQueryScanNode.java:
##########
@@ -203,24 +206,40 @@ private void initFunctionGenTable(FunctionGenTable table, ExternalFileTableValue
     }
 
     // Create a corresponding ParamCreateContext
-    private void initParamCreateContexts(Analyzer analyzer) throws UserException {
-        context = scanProvider.createContext(analyzer);
-        context.createDestSlotMap();
-        context.conjuncts = conjuncts;
+    private void initParamCreateContexts() throws UserException {

Review Comment:
   The method name should be changed



-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org