Cheng Lian created SPARK-13841: ---------------------------------- Summary: Remove Dataset.collectRows() and Dataset.takeRows() Key: SPARK-13841 URL: https://issues.apache.org/jira/browse/SPARK-13841 Project: Spark Issue Type: Sub-task Components: SQL Affects Versions: 2.0.0 Reporter: Cheng Lian Assignee: Cheng Lian
These two methods were added because the original {{DataFrame.collect()}} and {{DataFrame.take()}} methods became methods of {{Dataset\[T\]}} after merging DataFrame and Dataset API. However, Java doesn't allow returning generic array, and thus erased their return type to {{Object}}. This breaks compilation of Java code. After discussion, we decided to simply resort to existing {{collectAsList()}} and {{takeAsList()}} methods and remove these two extra specialized ones. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org