ajithme commented on a change in pull request #23918: [SPARK-27011] reset 
command fails with cache
URL: https://github.com/apache/spark/pull/23918#discussion_r261851938
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala
 ##########
 @@ -377,8 +377,7 @@ abstract class TreeNode[BaseType <: TreeNode[BaseType]] 
extends Product {
    * @param newArgs the new product arguments.
    */
   def makeCopy(newArgs: Array[AnyRef]): BaseType = attachTree(this, 
"makeCopy") {
-    // Skip no-arg constructors that are just there for kryo.
-    val ctors = getClass.getConstructors.filter(_.getParameterTypes.size != 0)
+    val ctors = getClass.getConstructors
 
 Review comment:
   @gatorsmile i have changed the fix to override makeCopy in ResetCommand 
instead now

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to