beyond1920 commented on a change in pull request #16983:
URL: https://github.com/apache/flink/pull/16983#discussion_r697184696
##########
File path: docs/content.zh/docs/dev/table/sql/queries/window-topn.md
##########
@@ -28,7 +28,7 @@ under the License.
Window Top-N is a special [Top-N]({{< ref "docs/dev/table/sql/queries/topn"
>}}) which returns the N smallest or largest values for each window and other
partitioned keys.
For streaming queries, unlike regular Top-N on continuous tables, window Top-N
does not emit intermediate results but only a final result, the total top N
records at the end of the window. Moreover, window Top-N purges all
intermediate state when no longer needed.
-Therefore, window Top-N queries have better performance if users don't need
results updated per record. Usually, Window Top-N is used with [Window
Aggregation]({{< ref "docs/dev/table/sql/queries/window-agg" >}}) together.
+Therefore, window Top-N queries have better performance if users don't need
results updated per record. Usually, Window Top-N is used with [Windowing
TVF]({{< ref "docs/dev/table/sql/queries/window-tvf" >}}) directly. Besides,
Window Top-N could be used with other operations based on [Windowing TVF]({{<
ref "docs/dev/table/sql/queries/window-tvf" >}}), such as [Window
Aggregation]({{< ref "docs/dev/table/sql/queries/window-agg" >}}), [Window
TopN]({{< ref "docs/dev/table/sql/queries/window-topn">}}) and Window Join.
Review comment:
Thanks for reminding, I would add link once [Window Join
documention](https://github.com/apache/flink/pull/16997) is merged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]