aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorjerryshao <saisai.shao@intel.com>2015-01-22 22:04:21 -0800
committerTathagata Das <tathagata.das1565@gmail.com>2015-01-22 22:04:21 -0800
commite0f7fb7f9f497b34d42f9ba147197cf9ffc51607 (patch)
tree65b789005b712b8d4b61256c348b78f53f0a8554 /project
parent3c3fa632e6ba45ce536065aa1145698385301fb2 (diff)
downloadspark-e0f7fb7f9f497b34d42f9ba147197cf9ffc51607.tar.gz
spark-e0f7fb7f9f497b34d42f9ba147197cf9ffc51607.tar.bz2
spark-e0f7fb7f9f497b34d42f9ba147197cf9ffc51607.zip
[SPARK-5315][Streaming] Fix reduceByWindow Java API not work bug
`reduceByWindow` for Java API is actually not Java compatible, change to make it Java compatible. Current solution is to deprecate the old one and add a new API, but since old API actually is not correct, so is keeping the old one meaningful? just to keep the binary compatible? Also even adding new API still need to add to Mima exclusion, I'm not sure to change the API, or deprecate the old API and add a new one, which is the best solution? Author: jerryshao <saisai.shao@intel.com> Closes #4104 from jerryshao/SPARK-5315 and squashes the following commits: 5bc8987 [jerryshao] Address the comment c7aa1b4 [jerryshao] Deprecate the old one to keep binary compatible 8e9dc67 [jerryshao] Fix JavaDStream reduceByWindow signature error
Diffstat (limited to 'project')
-rw-r--r--project/MimaExcludes.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/project/MimaExcludes.scala b/project/MimaExcludes.scala
index 127973b658..bc5d81f12d 100644
--- a/project/MimaExcludes.scala
+++ b/project/MimaExcludes.scala
@@ -90,6 +90,10 @@ object MimaExcludes {
// SPARK-5297 Java FileStream do not work with custom key/values
ProblemFilters.exclude[MissingMethodProblem](
"org.apache.spark.streaming.api.java.JavaStreamingContext.fileStream")
+ ) ++ Seq(
+ // SPARK-5315 Spark Streaming Java API returns Scala DStream
+ ProblemFilters.exclude[MissingMethodProblem](
+ "org.apache.spark.streaming.api.java.JavaDStreamLike.reduceByWindow")
)
case v if v.startsWith("1.2") =>