Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/5855#discussion_r29541441
--- Diff: mllib/src/main/scala/org/apache/spark/mllib/rdd/SlidingRDD.scala
---
@@ -44,15 +44,16 @@ class SlidingRDDPartition[T](val idx: Int, val prev:
Partition, val tail: Seq[T]
* @see [[org.apache.spark.mllib.rdd.RDDFunctions#sliding]]
*/
private[mllib]
-class SlidingRDD[T: ClassTag](@transient val parent: RDD[T], val
windowSize: Int)
+class SlidingRDD[T: ClassTag](@transient val parent: RDD[T], val
windowSize: Int, val step: Int)
extends RDD[Array[T]](parent) {
- require(windowSize > 1, s"Window size must be greater than 1, but got
$windowSize.")
+ //require(windowSize > 1, s"Window size must be greater than 1, but got
$windowSize.")
--- End diff --
Why wouldn't this be required anymore?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]