yucai edited a comment on issue #23821: [SPARK-26909][FOLLOWUP][SQL] use unsafeRow.hashCode() as hash value in HashAggregate URL: https://github.com/apache/spark/pull/23821#issuecomment-464628698 Tests: ``` spark.conf.set("spark.sql.shuffle.partitions", 8192) val df = spark.range(16 * 1024 * 1024).selectExpr("cast(id as string) as id") df.groupBy("id").agg(count("id")).collect ``` Before: ``` val hashExpr = Murmur3Hash(groupingExpressions, 42) val hashEval = BindReferences.bindReference(hashExpr, child.output).genCode(ctx) ``` <img src="https://user-images.githubusercontent.com/2989575/52936535-663f1800-3397-11e9-81f4-ac7480c1f737.png" width="400" height="600"> After: <img src="https://user-images.githubusercontent.com/2989575/52936524-617a6400-3397-11e9-94c0-0440a32ddf6f.png" width="400" height="600">
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
