Skip to content

Commit 7e30ae5

Browse files
committed
Add comment
1 parent a41335f commit 7e30ae5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/window/AggregateProcessor.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ private[window] final class AggregateProcessor(
145145

146146
/** Update the buffer. */
147147
def update(input: InternalRow): Unit = {
148+
// TODO(hvanhovell) this sacrifices performance for correctness. We should make sure that
149+
// MutableProjection makes copies of the complex input objects it buffer.
148150
val copy = input.copy()
149151
updateProjection(join(buffer, copy))
150152
var i = 0

0 commit comments

Comments
 (0)