Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/18301#discussion_r124587586
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/BroadcastHashJoinExec.scala
---
@@ -91,6 +94,23 @@ case class BroadcastHashJoinExec(
}
/**
+ * Returns the codes used to add a task completion listener to update
avg hash probe
+ * at the end of the task.
+ */
+ private def genTaskListener(avgHashProbe: String, relationTerm: String):
String = {
+ val listenerClass = classOf[TaskCompletionListener].getName
+ val taskContextClass = classOf[TaskContext].getName
+ s"""
+ | $taskContextClass$$.MODULE$$.get().addTaskCompletionListener(new
$listenerClass() {
--- End diff --
maybe we can follow `incPeakExecutionMemory` and put it in
`BufferedRowIterator`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]