Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/3152#discussion_r20258321
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/dstream/UnionDStream.scala
---
@@ -28,17 +28,10 @@ private[streaming]
class UnionDStream[T: ClassTag](parents: Array[DStream[T]])
extends DStream[T](parents.head.ssc) {
- if (parents.length == 0) {
- throw new IllegalArgumentException("Empty array of parents")
- }
-
- if (parents.map(_.ssc).distinct.size > 1) {
- throw new IllegalArgumentException("Array of parents have different
StreamingContexts")
- }
-
- if (parents.map(_.slideDuration).distinct.size > 1) {
- throw new IllegalArgumentException("Array of parents have different
slide times")
- }
+ require(parents.length > 0, "List of DStreams to transform is empty")
--- End diff --
"to union" ... not "to transform" ... i guess a copy past error.
---
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]