Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/7410#discussion_r35555563
--- Diff: python/pyspark/streaming/kafka.py ---
@@ -32,6 +34,16 @@ def utf8_decoder(s):
return s and s.decode('utf-8')
+def default_message_handler(s):
+ """
+ Function for translating each message and metadata into the desired
type
+
+ :param s: A KafkaMessageAndMetadata object includes message and
metadata
+ :return: Object of any desired type
--- End diff --
This is not right. The return value is a tuple.
---
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]