79108056

Date: 2024-10-20 21:06:26
Score: 0.5
Natty:
Report link

I actually found out why the error was occurring. This is due to a wrong import of the ProcessWindowFunction.

I did: org.apache.flink.streaming.api.functions.windowing But i should have done: org.apache.flink.streaming.api.scala.function

The first one is a Java function, which has different parameters, whereas the second one is a scala function that has other parameters.

Java parameters: [(String, String, Int), NotInferredR, String, TimeWindow] Scala parameters: [(String, String, Int), CommitSummary, String, TimeWindow]

Commitsummary can be anyclass

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: StunnerDH