You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/03/15 08:49:57 UTC
[GitHub] [spark] dongjoon-hyun commented on a change in pull request #31838: [MINOR][SQL] Remove unused variable in NewInstance.constructor
dongjoon-hyun commented on a change in pull request #31838:
URL: https://github.com/apache/spark/pull/31838#discussion_r594146478
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
##########
@@ -457,7 +457,6 @@ case class NewInstance(
}
outerPointer.map { p =>
val outerObj = p()
- val d = outerObj.getClass +: paramTypes
val c = getConstructor(outerObj.getClass +: paramTypes)
Review comment:
here, we use `outerObj.getClass +: paramTypes` directly instead of the `d` at line 460.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org