You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/01/15 21:36:11 UTC

[GitHub] gatorsmile commented on a change in pull request #23551: [SPARK-26622][SQL] Revise SQL Metrics labels

gatorsmile commented on a change in pull request #23551: [SPARK-26622][SQL] Revise SQL Metrics labels
URL: https://github.com/apache/spark/pull/23551#discussion_r248071892
 
 

 ##########
 File path: sql/core/src/main/java/org/apache/spark/sql/execution/UnsafeFixedWidthAggregationMap.java
 ##########
 @@ -226,10 +226,10 @@ public void free() {
   }
 
   /**
-   * Gets the average hash map probe per looking up for the underlying `BytesToBytesMap`.
+   * Gets the collision rate per looking up for the underlying `BytesToBytesMap`.
    */
-  public double getAverageProbesPerLookup() {
-    return map.getAverageProbesPerLookup();
+  public double getHashCollisionsPerLookup() {
+    return map.getAverageProbesPerLookup() - 1.0;
 
 Review comment:
   advanced users. :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org