Skip to content

Commit 023bb5c

Browse files
author
slfan1989
committed
YARN-11290. Fix SqlServer Script.
1 parent e1ee2a3 commit 023bb5c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,8 @@ AS BEGIN
130130
FROM [dbo].[applicationsHomeSubCluster]) AS t
131131
WHERE row_num < @limit
132132
AND (CASE WHEN @homeSubCluster IS NULL THEN 1
133-
WHEN @homeSubCluster IS NOT NULL
134-
AND [homeSubCluster] = @homeSubCluster
135-
THEN 1 END) = 1
133+
WHEN @homeSubCluster IS NOT NULL AND [homeSubCluster] = @homeSubCluster THEN 1
134+
ELSE 0 END) = 1
136135
END TRY
137136

138137
BEGIN CATCH

0 commit comments

Comments
 (0)