[ https://issues.apache.org/jira/browse/SPARK-36843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17420199#comment-17420199 ]
Shockang commented on SPARK-36843: ---------------------------------- [~lxian2] You mean that a job collects all data and returns an iterator of byte array. > Add an iterator method to Dataset > --------------------------------- > > Key: SPARK-36843 > URL: https://issues.apache.org/jira/browse/SPARK-36843 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.3.0 > Reporter: Li Xian > Priority: Minor > > The current org.apache.spark.sql.Dataset#toLocalIterator will submit multiple > jobs for multiple partitions. > In my case, I would like to collect all partition at once to save the job > scheduling cost and also has an iterator to save the memory on > deserialization (instead of deserialize all rows at once, I want only one row > is deserialized during the iteration) > . -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org