Skip to content

Commit 6820eb6

Browse files
committed
Update baselines
1 parent 8413964 commit 6820eb6

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

test/EFCore.SqlServer.FunctionalTests/Query/NorthwindGroupByQuerySqlServerTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,7 +2475,7 @@ public override async Task GroupBy_Select_Distinct_aggregate(bool async)
24752475

24762476
AssertSql(
24772477
"""
2478-
SELECT [o].[CustomerID] AS [Key], AVG(DISTINCT (CAST([o].[OrderID] AS float))) AS [Average], COUNT(DISTINCT ([o].[EmployeeID])) AS [Count], COUNT_BIG(DISTINCT ([o].[EmployeeID])) AS [LongCount], MAX(DISTINCT ([o].[OrderDate])) AS [Max], MIN(DISTINCT ([o].[OrderDate])) AS [Min], COALESCE(SUM(DISTINCT ([o].[OrderID])), 0) AS [Sum]
2478+
SELECT [o].[CustomerID] AS [Key], AVG(DISTINCT (CAST([o].[OrderID] AS float))) AS [Average], COUNT(DISTINCT ([o].[EmployeeID])) AS [Count], COUNT_BIG(DISTINCT ([o].[EmployeeID])) AS [LongCount], MAX([o].[OrderDate]) AS [Max], MIN([o].[OrderDate]) AS [Min], COALESCE(SUM(DISTINCT ([o].[OrderID])), 0) AS [Sum]
24792479
FROM [Orders] AS [o]
24802480
GROUP BY [o].[CustomerID]
24812481
""");
@@ -2487,7 +2487,7 @@ public override async Task GroupBy_group_Distinct_Select_Distinct_aggregate(bool
24872487

24882488
AssertSql(
24892489
"""
2490-
SELECT [o].[CustomerID] AS [Key], MAX(DISTINCT ([o].[OrderDate])) AS [Max]
2490+
SELECT [o].[CustomerID] AS [Key], MAX([o].[OrderDate]) AS [Max]
24912491
FROM [Orders] AS [o]
24922492
GROUP BY [o].[CustomerID]
24932493
""");
@@ -2499,9 +2499,9 @@ public override async Task GroupBy_group_Where_Select_Distinct_aggregate(bool as
24992499

25002500
AssertSql(
25012501
"""
2502-
SELECT [o].[CustomerID] AS [Key], MAX(DISTINCT (CASE
2502+
SELECT [o].[CustomerID] AS [Key], MAX(CASE
25032503
WHEN [o].[OrderDate] IS NOT NULL THEN [o].[OrderDate]
2504-
END)) AS [Max]
2504+
END) AS [Max]
25052505
FROM [Orders] AS [o]
25062506
GROUP BY [o].[CustomerID]
25072507
""");

test/EFCore.SqlServer.FunctionalTests/Query/NorthwindMiscellaneousQuerySqlServerTest.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4744,11 +4744,8 @@ public override async Task Select_distinct_max(bool async)
47444744

47454745
AssertSql(
47464746
"""
4747-
SELECT MAX([o0].[OrderID])
4748-
FROM (
4749-
SELECT DISTINCT [o].[OrderID]
4750-
FROM [Orders] AS [o]
4751-
) AS [o0]
4747+
SELECT MAX([o].[OrderID])
4748+
FROM [Orders] AS [o]
47524749
""");
47534750
}
47544751

@@ -4758,11 +4755,8 @@ public override async Task Select_distinct_min(bool async)
47584755

47594756
AssertSql(
47604757
"""
4761-
SELECT MIN([o0].[OrderID])
4762-
FROM (
4763-
SELECT DISTINCT [o].[OrderID]
4764-
FROM [Orders] AS [o]
4765-
) AS [o0]
4758+
SELECT MIN([o].[OrderID])
4759+
FROM [Orders] AS [o]
47664760
""");
47674761
}
47684762

0 commit comments

Comments
 (0)