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

    https://github.com/apache/spark/pull/18590#discussion_r126686970
  
    --- Diff: python/pyspark/sql/functions.py ---
    @@ -2026,16 +2026,26 @@ def __init__(self, func, returnType, name=None):
                     "{0}".format(type(func)))
     
             self.func = func
    -        self.returnType = (
    -            returnType if isinstance(returnType, DataType)
    -            else _parse_datatype_string(returnType))
    +        self._returnType = returnType
             # Stores UserDefinedPythonFunctions jobj, once initialized
    +        self._returnType_placeholder = None
             self._judf_placeholder = None
             self._name = name or (
                 func.__name__ if hasattr(func, '__name__')
                 else func.__class__.__name__)
     
         @property
    +    def returnType(self):
    --- End diff --
    
    hmm.. I tried several ways I could think at my best but I could not figure 
out ... 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to