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

    https://github.com/apache/spark/pull/2243#discussion_r17087493
  
    --- 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 --
    
    Ah, okay.  Maybe it's obvious how two-argument functions should work so we 
won't need to expose this in end-user documentation.


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