Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19535#discussion_r145655586
  
    --- Diff: python/pyspark/sql/functions.py ---
    @@ -44,6 +45,14 @@ def _(col):
         return _
     
     
    +def _wrap_deprecated_function(func, message):
    +    """ Wrap the deprecated function to print out deprecation warnings"""
    +    def _(col):
    +        warnings.warn(message, DeprecationWarning)
    +        return func(col)
    --- End diff --
    
    Here, I intendedly avoided `*args` and `**kwargs` to keep the argument 
signature printed in pydoc, `help(...)`.


---

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

Reply via email to