You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2021/03/16 01:51:23 UTC

[spark] branch branch-3.0 updated: [MINOR][SQL] Remove unused variable in NewInstance.constructor

This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new edb5932  [MINOR][SQL] Remove unused variable in NewInstance.constructor
edb5932 is described below

commit edb59321528b4f8f9c660f51ca676bb59d53c620
Author: Dongjoon Hyun <dh...@apple.com>
AuthorDate: Mon Mar 15 18:49:54 2021 -0700

    [MINOR][SQL] Remove unused variable in NewInstance.constructor
    
    ### What changes were proposed in this pull request?
    
    This PR removes one unused variable in `NewInstance.constructor`.
    
    ### Why are the changes needed?
    
    This looks like a variable for debugging at the initial commit of SPARK-23584 .
    - https://github.com/apache/spark/commit/1b08c4393cf48e21fea9914d130d8d3bf544061d#diff-2a36e31684505fd22e2d12a864ce89fd350656d716a3f2d7789d2cdbe38e15fbR461
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    Closes #31838 from dongjoon-hyun/minor-object.
    
    Authored-by: Dongjoon Hyun <dh...@apple.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
    (cherry picked from commit 0a70dff0663320cabdbf4e4ecb771071582f9417)
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
 .../org/apache/spark/sql/catalyst/expressions/objects/objects.scala      | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
index ac231ae..7ebf70b 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
@@ -456,7 +456,6 @@ case class NewInstance(
     }
     outerPointer.map { p =>
       val outerObj = p()
-      val d = outerObj.getClass +: paramTypes
       val c = getConstructor(outerObj.getClass +: paramTypes)
       (args: Seq[AnyRef]) => {
         c(outerObj +: args)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org