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

    https://github.com/apache/spark/pull/1063#discussion_r15711570
  
    --- Diff: python/pyspark/sql.py ---
    @@ -519,6 +523,15 @@ def _ssql_ctx(self):
                 self._scala_SQLContext = self._jvm.SQLContext(self._jsc.sc())
             return self._scala_SQLContext
     
    +    def registerFunction(self, name, f, returnType = "string"):
    +        def func(split, iterator): return imap(f, iterator)
    +        command = (func, self._sc.serializer, self._sc.serializer)
    --- End diff --
    
    we only support Pickle in JVM, SchemaRDD can only use PickleSerializer or 
BatchedSerializer(PickleSerializer()). It's better to use 
BatchedSerializer(PickleSerializer(), 1024) in everywhere.


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

Reply via email to