Hello i see in documentation that Flink support Lead Lag function https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/dev/table/functions/systemfunctions/
But cant find how do apply in table api ?
Table win = t
.window(Over
.partitionBy($("userId"))
.orderBy($("userId"))
.as("w"))
.select($("userId"),
$("count").lead(-1),
$("count").lag(1));