aljoscha commented on a change in pull request #6784: [FLINK-7811] Add support
for Scala 2.12
URL: https://github.com/apache/flink/pull/6784#discussion_r227718544
##########
File path:
flink-scala/src/main/scala/org/apache/flink/api/scala/unfinishedKeyPairOperation.scala
##########
@@ -169,13 +165,10 @@ private[flink] class HalfUnfinishedKeyPairOperation[L,
R, O](
* the finished operation.
*/
def equalTo[K: TypeInformation](fun: KeySelector[R, K]): O = {
+
val keyType = implicitly[TypeInformation[K]]
- val keyExtractor = new KeySelector[R, K] {
- val cleanFun = unfinished.leftInput.clean(fun)
- def getKey(in: R) = cleanFun.getKey(in)
- }
val rightKey = new Keys.SelectorFunctionKeys[R, K](
- keyExtractor,
+ unfinished.leftInput.clean(fun),
Review comment:
It doesn't matter, I just need to somehow clean the function.
----------------------------------------------------------------
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]
With regards,
Apache Git Services