Skip to content

Commit

Permalink
[SPARK-4860][pyspark][sql] fixing sloppy indentation for takeSampleTo…
Browse files Browse the repository at this point in the history
…Python() arguments
  • Loading branch information
J. Benjamin Cook committed Dec 23, 2014
1 parent 5170da2 commit 6fbc769
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sql/core/src/main/scala/org/apache/spark/sql/SchemaRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,10 @@ class SchemaRDD(
* Serializes the Array[Row] returned by SchemaRDD's takeSample(), using the same
* format as javaToPython and collectToPython. It is used by pyspark.
*/
private[sql] def takeSampleToPython(withReplacement: Boolean,
num: Int,
seed: Long): JList[Array[Byte]] = {
private[sql] def takeSampleToPython(
withReplacement: Boolean,
num: Int,
seed: Long): JList[Array[Byte]] = {
val fieldTypes = schema.fields.map(_.dataType)
val pickle = new Pickler
new java.util.ArrayList(this.takeSample(withReplacement, num, seed).map { row =>
Expand Down

0 comments on commit 6fbc769

Please sign in to comment.