We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d309ac5 commit e96f796Copy full SHA for e96f796
hadoop-yarn-project/hadoop-yarn/bin/FederationStateStore/SQLServer/FederationStateStoreStoreProcs.sql
@@ -126,9 +126,9 @@ AS BEGIN
126
[applicationId],
127
[homeSubCluster],
128
[createTime],
129
- row_number() over(order by [createTime] desc) as row_num
+ row_number() over(partition by [homeSubCluster] order by [createTime] desc) as row_num
130
FROM [dbo].[applicationsHomeSubCluster]) AS t
131
- WHERE row_num < @limit
+ WHERE row_num <= @limit
132
AND (CASE WHEN @homeSubCluster IS NULL THEN 1
133
WHEN @homeSubCluster IS NOT NULL AND [homeSubCluster] = @homeSubCluster THEN 1
134
ELSE 0 END) = 1
0 commit comments