[
https://issues.apache.org/jira/browse/FLINK-11047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16708322#comment-16708322
]
ASF GitHub Bot commented on FLINK-11047:
----------------------------------------
tillrohrmann closed pull request #7217: [FLINK-11047] Fix
CoGroupGroupSortTranslationTest by specyfing types
URL: https://github.com/apache/flink/pull/7217
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/flink-tests/src/test/scala/org/apache/flink/api/scala/operators/translation/CoGroupGroupSortTranslationTest.scala
b/flink-tests/src/test/scala/org/apache/flink/api/scala/operators/translation/CoGroupGroupSortTranslationTest.scala
index bf07aa0437f..1d571d0b3f4 100644
---
a/flink-tests/src/test/scala/org/apache/flink/api/scala/operators/translation/CoGroupGroupSortTranslationTest.scala
+++
b/flink-tests/src/test/scala/org/apache/flink/api/scala/operators/translation/CoGroupGroupSortTranslationTest.scala
@@ -128,7 +128,11 @@ class CoGroupGroupSortTranslationTest extends TestLogger {
.where(1).equalTo(2)
.sortFirstGroup(0, Order.DESCENDING)
.sortSecondGroup(1, Order.ASCENDING).sortSecondGroup(0,
Order.DESCENDING)
- .apply((a, b, c: Collector[(Long, Long)]) => a.foreach(e =>
c.collect(e)))
+ .apply(
+ (a: Iterator[(Long, Long)],
+ b: Iterator[(Long, Long, Long)],
+ c: Collector[(Long, Long)]) =>
+ a.foreach(e => c.collect(e)))
.output(new DiscardingOutputFormat[(Long, Long)])
val p = env.createProgramPlan()
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> CoGroupGroupSortTranslationTest does not compile with scala 2.12
> ----------------------------------------------------------------
>
> Key: FLINK-11047
> URL: https://issues.apache.org/jira/browse/FLINK-11047
> Project: Flink
> Issue Type: Bug
> Components: Machine Learning Library, Scala API
> Affects Versions: 1.8.0
> Reporter: Chesnay Schepler
> Assignee: Till Rohrmann
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.8.0
>
>
> {code:java}
> 11:47:18.576 [ERROR]
> /home/travis/build/apache/flink/flink/flink-tests/src/test/scala/org/apache/flink/api/scala/operators/translation/CoGroupGroupSortTranslationTest.scala:131:
> error: value foreach is not a member of Object
> 11:47:18.576 [ERROR] .apply((a, b, c: Collector[(Long, Long)]) =>
> a.foreach(e => c.collect(e))){code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)