From bd6db1505fb68737fa1782bd457ddc52eae6652d Mon Sep 17 00:00:00 2001 From: liyuanjian Date: Thu, 9 Aug 2018 13:43:07 -0700 Subject: [PATCH] [SPARK-25077][SQL] Delete unused variable in WindowExec ## What changes were proposed in this pull request? Just delete the unused variable `inputFields` in WindowExec, avoid making others confused while reading the code. ## How was this patch tested? Existing UT. Closes #22057 from xuanyuanking/SPARK-25077. Authored-by: liyuanjian Signed-off-by: Xiao Li --- .../org/apache/spark/sql/execution/window/WindowExec.scala | 2 -- 1 file changed, 2 deletions(-) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/window/WindowExec.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/window/WindowExec.scala index 626f39d9e9..fede0f3e92 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/window/WindowExec.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/window/WindowExec.scala @@ -323,8 +323,6 @@ case class WindowExec( fetchNextRow() // Manage the current partition. - val inputFields = child.output.length - val buffer: ExternalAppendOnlyUnsafeRowArray = new ExternalAppendOnlyUnsafeRowArray(inMemoryThreshold, spillThreshold)