Joel Croteau created SPARK-22353:
------------------------------------
Summary: ResultIterable should be indexable
Key: SPARK-22353
URL: https://issues.apache.org/jira/browse/SPARK-22353
Project: Spark
Issue Type: Bug
Components: PySpark
Affects Versions: 2.2.0
Reporter: Joel Croteau
Priority: Minor
I have had a pipeline using the result of a groupWith fail because it tried to
index the result instead of iterating through it. The documentation had led me
to believe that groupWith returns collections, but ResultIterables are not
indexable. It seems like it would be trivial to add a __getitem__ method that
delegates to self.data. Unless there's a good reason not to do this, I can
submit a patch.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]