Skip to content

Commit e96f796

Browse files
author
slfan1989
committed
YARN-11290. Fix CheckStyle.
1 parent d309ac5 commit e96f796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/SQLServer/FederationStateStoreStoreProcs.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ AS BEGIN
126126
[applicationId],
127127
[homeSubCluster],
128128
[createTime],
129-
row_number() over(order by [createTime] desc) as row_num
129+
row_number() over(partition by [homeSubCluster] order by [createTime] desc) as row_num
130130
FROM [dbo].[applicationsHomeSubCluster]) AS t
131-
WHERE row_num < @limit
131+
WHERE row_num <= @limit
132132
AND (CASE WHEN @homeSubCluster IS NULL THEN 1
133133
WHEN @homeSubCluster IS NOT NULL AND [homeSubCluster] = @homeSubCluster THEN 1
134134
ELSE 0 END) = 1

0 commit comments

Comments
 (0)