You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joel Croteau (JIRA)" <ji...@apache.org> on 2017/10/25 19:00:08 UTC

[jira] [Created] (SPARK-22353) ResultIterable should be indexable

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org