@@ -342,36 +342,41 @@ class SchemaRDD(
342
342
343
343
// Transformations (return a new RDD)
344
344
345
- override def coalesce (numPartitions : Int , shuffle : Boolean = false ): SchemaRDD =
346
- applySchema(super .coalesce(numPartitions, shuffle))
345
+ override def coalesce (numPartitions : Int , shuffle : Boolean = false )
346
+ (implicit ord : Ordering [Row ] = null ): SchemaRDD =
347
+ applySchema(super .coalesce(numPartitions, shuffle)(ord))
347
348
348
349
override def distinct (): SchemaRDD =
349
350
applySchema(super .distinct())
350
351
351
- override def distinct (numPartitions : Int ): SchemaRDD =
352
- applySchema(super .distinct(numPartitions))
352
+ override def distinct (numPartitions : Int )
353
+ (implicit ord : Ordering [Row ] = null ): SchemaRDD =
354
+ applySchema(super .distinct(numPartitions)(ord))
353
355
354
356
override def filter (f : Row => Boolean ): SchemaRDD =
355
357
applySchema(super .filter(f))
356
358
357
359
override def intersection (other : RDD [Row ]): SchemaRDD =
358
360
applySchema(super .intersection(other))
359
361
360
- override def intersection (other : RDD [Row ], partitioner : Partitioner ): SchemaRDD =
361
- applySchema(super .intersection(other, partitioner))
362
+ override def intersection (other : RDD [Row ], partitioner : Partitioner )
363
+ (implicit ord : Ordering [Row ] = null ): SchemaRDD =
364
+ applySchema(super .intersection(other, partitioner)(ord))
362
365
363
366
override def intersection (other : RDD [Row ], numPartitions : Int ): SchemaRDD =
364
367
applySchema(super .intersection(other, numPartitions))
365
368
366
- override def repartition (numPartitions : Int ): SchemaRDD =
367
- applySchema(super .repartition(numPartitions))
369
+ override def repartition (numPartitions : Int )
370
+ (implicit ord : Ordering [Row ] = null ): SchemaRDD =
371
+ applySchema(super .repartition(numPartitions)(ord))
368
372
369
373
override def subtract (other : RDD [Row ]): SchemaRDD =
370
374
applySchema(super .subtract(other))
371
375
372
376
override def subtract (other : RDD [Row ], numPartitions : Int ): SchemaRDD =
373
377
applySchema(super .subtract(other, numPartitions))
374
378
375
- override def subtract (other : RDD [Row ], p : Partitioner ): SchemaRDD =
376
- applySchema(super .subtract(other, p))
379
+ override def subtract (other : RDD [Row ], p : Partitioner )
380
+ (implicit ord : Ordering [Row ] = null ): SchemaRDD =
381
+ applySchema(super .subtract(other, p)(ord))
377
382
}
0 commit comments