srowen commented on a change in pull request #26826:
[SPARK-30195][SQL][CORE][ML] Change some function, import definitions to work
with stricter compiler in Scala 2.13
URL: https://github.com/apache/spark/pull/26826#discussion_r355826739
##########
File path:
mllib/src/main/scala/org/apache/spark/ml/feature/CountVectorizer.scala
##########
@@ -215,8 +215,8 @@ class CountVectorizer @Since("1.5.0") (@Since("1.5.0")
override val uid: String)
wc.changeValue(w, 1L, _ + 1L)
}
wc.map { case (word, count) => (word, (count, 1)) }
- }.reduceByKey { case ((wc1, df1), (wc2, df2)) =>
- (wc1 + wc2, df1 + df2)
+ }.reduceByKey { (wcdf1, wcdf2) =>
Review comment:
See JIRA for detail on this annoying construction
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]