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

    https://github.com/apache/spark/pull/2243#discussion_r17087385
  
    --- Diff: python/pyspark/sql.py ---
    @@ -971,23 +969,26 @@ def registerFunction(self, name, f, 
returnType=StringType()):
             >>> sqlCtx.registerFunction("stringLengthInt", lambda x: len(x), 
IntegerType())
             >>> sqlCtx.sql("SELECT stringLengthInt('test')").collect()
             [Row(c0=4)]
    -        >>> sqlCtx.registerFunction("twoArgs", lambda x, y: len(x) + y, 
IntegerType())
    --- End diff --
    
    The test cases in docstring will appear in API docs, so it's not good idea 
to put many test cases in docstring (especially for edge cases). 


---
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