问题

写了个demo测试flink水印的方法,明明参数传递均无问题,但是一直提示cannot resolve method xxxx

问题的核心不是方法参数传递,而是泛型问题

Flink Java Cannot resolve method assignTimestampsAndWatermarks


因为习惯通过IDEA的.var方式自动生成方法的返回参数

如果传入参数是Tuple3<String, Integer, Long>,返回结果使用泛型Tuple3去接收,那么后续的窗口操作涉及到元组的数据类型均会同步报错。

相关文章:

  • 2022-01-13
  • 2022-01-01
  • 2021-07-19
  • 2021-07-20
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-24
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-09-29
  • 2021-08-14
相关资源
相似解决方案