ankitsultana commented on code in PR #9873: URL: https://github.com/apache/pinot/pull/9873#discussion_r1067779727
########## pinot-query-planner/src/main/java/org/apache/pinot/query/planner/partitioning/KeySelector.java: ########## @@ -37,4 +37,9 @@ OUT getKey(IN input); int computeHash(IN input); + + /** + * @return the hash-algorithm used for distributing rows + */ + String hashAlgorithm(); Review Comment: Yeah this is getting used because to make the colocation decision we need to know which hash algorithm is used to distribute the data in a given stage. In case a leaf stage decides to hash-distribute, this will set the ColocationKey of the receiving stage appropriately by setting the `ColocationKey._hashAlgorithm` to `KeySelector#hashAlgorithm()`. -- 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]
