0

I am using Flink SQL to handle batch case. How can I get the top-n record per group using FLINK SQL?

Eric Zhang
  • 25
  • 4

1 Answers1

0

Flink SQL (until version 1.7) does not provide a built-in aggregation function for top-n.

You can implement a user-defined aggregation function to support you use case.

Fabian Hueske
  • 18,707
  • 2
  • 44
  • 49