GitHub user watermen opened a pull request:

    https://github.com/apache/spark/pull/3152

    [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-fix1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/3152.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 #3152
    
----
commit b6b3b8b6bd9ed367ff4a34e653a240f12bb67370
Author: Yadong Qi <[email protected]>
Date:   2014-11-07T07:39:10Z

    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]

Reply via email to