You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/05/26 09:04:12 UTC
[jira] [Assigned] (SPARK-15559) TopicAndPartition should provide
__hash__ method
[ https://issues.apache.org/jira/browse/SPARK-15559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-15559:
------------------------------------
Assignee: Apache Spark
> TopicAndPartition should provide __hash__ method
> ------------------------------------------------
>
> Key: SPARK-15559
> URL: https://issues.apache.org/jira/browse/SPARK-15559
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 1.5.0, 1.6.0, 2.0.0
> Environment: Python 3.x
> Reporter: Maciej Szymkiewicz
> Assignee: Apache Spark
>
> In Python 3.x any object that provides `__eq__` method requires `__hash__` method to be hashable.
> It means that following code (taken from test):
> {code}
> sendData = {"a": 1, "b": 2, "c": 3}
> fromOffsets = {TopicAndPartition(topic, 0): long(0)}
> kafkaParams = {"metadata.broker.list": self._kafkaTestUtils.brokerAddress()}
> stream = KafkaUtils.createDirectStream(self.ssc, [topic], kafkaParams, fromOffsets)
> {code}
> will fail with TypeError.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org