GitHub user watermen opened a pull request:
https://github.com/apache/spark/pull/3151
[SPARK-4294][Streaming] The same function should have the same realization.
In class TransformedDStream:
require(parents.length > 0, "List of DStreams to transform is empty")
require(parents.map(_.ssc).distinct.size == 1, "Some of the DStreams have
different contexts")
require(parents.map(_.slideDuration).distinct.size == 1,
"Some of the DStreams have different slide durations")
In class UnionDStream:
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") }
The function is the same, but the realization is not. I think they shoule
be the same.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/watermen/spark bug-fix5
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3151.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3151
----
commit e3cf0aa8b8dea942009a9ec3f29a75f451102f6c
Author: Yadong Qi <[email protected]>
Date: 2014-07-28T08:08:50Z
Test
commit 7773b3d2603dfe9bb1e27588e12b3e18f81042da
Author: Yadong Qi <[email protected]>
Date: 2014-11-07T07:16:21Z
Update README.md
commit 3f982575b4f8bd66b672760ec6d2733b37082874
Author: Yadong Qi <[email protected]>
Date: 2014-11-07T07:18:51Z
The same function should have the same realization.
----
---
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]