walterddr commented on code in PR #11587:
URL: https://github.com/apache/pinot/pull/11587#discussion_r1325091878


##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/QueryRunner.java:
##########
@@ -199,39 +200,47 @@ public void processQuery(DistributedStagePlan 
distributedStagePlan, Map<String,
     _opChainScheduler.register(opChain);
   }
 
-  private void setStageCustomProperties(Map<String, String> customProperties, 
Map<String, String> requestMetadata) {
-    Integer numGroupsLimit = 
QueryOptionsUtils.getNumGroupsLimit(requestMetadata);
+  private Map<String, String> consolidateMetadata(Map<String, String> 
customProperties,
+      Map<String, String> requestMetadata) {
+    Map<String, String> opChainMetadata = new HashMap<>();
+    // 1. put all custom Properties
+    opChainMetadata.putAll(requestMetadata);
+    // 2. put all request level metadata
+    opChainMetadata.putAll(customProperties);

Review Comment:
   ```suggestion
       // 1. put all request level metadata
       opChainMetadata.putAll(requestMetadata);
       // 2. put all custom Properties
       opChainMetadata.putAll(customProperties);
   ```



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to