spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-5315) reduceByWindow returns Scala DStream not JavaDStream
Date Mon, 19 Jan 2015 09:45:35 GMT

    [ https://issues.apache.org/jira/browse/SPARK-5315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14282310#comment-14282310
] 

Sean Owen commented on SPARK-5315:
----------------------------------

Agree, but someone may be calling this method and wrapping the result. This change breaks
such a program. It may well be worth it but not obvious. There is not a good answer. Could
also just deprecate it to mark the problem and workaround.

> reduceByWindow returns Scala DStream not JavaDStream
> ----------------------------------------------------
>
>                 Key: SPARK-5315
>                 URL: https://issues.apache.org/jira/browse/SPARK-5315
>             Project: Spark
>          Issue Type: Bug
>          Components: Streaming
>    Affects Versions: 1.2.0
>            Reporter: Saisai Shao
>
> {code}
>   def reduceByWindow(
>       reduceFunc: (T, T) => T,
>       windowDuration: Duration,
>       slideDuration: Duration
>     ): DStream[T] = {
>     dstream.reduceByWindow(reduceFunc, windowDuration, slideDuration)
>   }
> {code}
> It should return JavaDStream not DStream for java code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message