Jackie-Jiang commented on code in PR #17590:
URL: https://github.com/apache/pinot/pull/17590#discussion_r2739518249
##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/MultiStageOperator.java:
##########
@@ -426,21 +423,67 @@ public void updateServerMetrics(StatMap<?> map,
ServerMetrics serverMetrics) {
}
}
},
- LOOKUP_JOIN(LookupJoinOperator.StatKey.class) {
+ LOOKUP_JOIN(14, LookupJoinOperator.StatKey.class) {
@Override
public void mergeInto(BrokerResponseNativeV2 response, StatMap<?> map) {
@SuppressWarnings("unchecked")
StatMap<LookupJoinOperator.StatKey> stats =
(StatMap<LookupJoinOperator.StatKey>) map;
response.mergeMaxRowsInOperator(stats.getLong(LookupJoinOperator.StatKey.EMITTED_ROWS));
}
+ },
+ UNNEST(15, UnnestOperator.StatKey.class) {
+ @Override
+ public void mergeInto(BrokerResponseNativeV2 response, StatMap<?> map) {
+ @SuppressWarnings("unchecked")
+ StatMap<UnnestOperator.StatKey> stats =
(StatMap<UnnestOperator.StatKey>) map;
+
response.mergeMaxRowsInOperator(stats.getLong(UnnestOperator.StatKey.EMITTED_ROWS));
+ }
};
+ private static final Map<Integer, Type> ID_TO_TYPE;
Review Comment:
Consider making it a `Type[]` for faster lookup. We can make it similar to
`DataTable.MetadataKey`
--
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]