Github user mgaido91 commented on the issue:

    https://github.com/apache/spark/pull/19865
  
    I think we have to guarantee this. The case you are dealing with is a wrong 
situation that should be avoided. Indeed, in such a case, it is not even clear 
to me which is the right thing to do: I mean, which was the intention? Was it 
to use the global variable or was it to use the passed argument?
    
    Here you are assuming that the intention was to use the global variable, 
which actually is an interpretation I would question, since up to me the right 
thing to do is to use the passed variable as Java does on his own, because 
anybody creating this situation hopefully knows as Java works, thus he/she 
might also rely on that.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to