-
Notifications
You must be signed in to change notification settings - Fork 28.5k
[SPARK-3518] Remove wasted statement in JsonProtocol #2380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
QA tests have started for PR 2380 at commit
|
@@ -217,7 +219,7 @@ private[spark] object JsonProtocol { | |||
("Getting Result Time" -> taskInfo.gettingResultTime) ~ | |||
("Finish Time" -> taskInfo.finishTime) ~ | |||
("Failed" -> taskInfo.failed) ~ | |||
("Accumulables" -> JArray(taskInfo.accumulables.map(accumulableInfoToJson).toList)) | |||
("Accumulables" -> JArray(accumUpdateMap.map(accumulableInfoToJson).toList)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just remove the unused accumUpdateMap
instead and preserve the symmetry? This is a simple getter, which would be inlined anyway. This also seems very trivial.
QA tests have started for PR 2380 at commit
|
QA tests have started for PR 2380 at commit
|
QA tests have finished for PR 2380 at commit
|
QA tests have finished for PR 2380 at commit
|
QA tests have finished for PR 2380 at commit
|
Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp> Closes #2380 from sarutak/SPARK-3518 and squashes the following commits: 8a1464e [Kousuke Saruta] Replaced a variable with simple field reference c660fbc [Kousuke Saruta] Removed useless statement in JsonProtocol.scala (cherry picked from commit e59fac1) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp> Closes apache#2380 from sarutak/SPARK-3518 and squashes the following commits: 8a1464e [Kousuke Saruta] Replaced a variable with simple field reference c660fbc [Kousuke Saruta] Removed useless statement in JsonProtocol.scala (cherry picked from commit e59fac1) Signed-off-by: Patrick Wendell <pwendell@gmail.com>
No description provided.