Skip to content

Commit

Permalink
Update baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
ranma42 committed Dec 23, 2024
1 parent 68e274c commit eaaaa40
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ where l1.Id < 3
SELECT (
SELECT TOP(1) [l1].[Name]
FROM (
SELECT TOP(1) [l0].[Id], [l0].[Name]
SELECT TOP(1) [l0].[Name]
FROM [LevelThree] AS [l0]
) AS [l1]
ORDER BY [l1].[Id])
) AS [l1])
FROM [LevelOne] AS [l]
WHERE [l].[Id] < 3
""");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ where l1.Id < 3
SELECT (
SELECT TOP(1) [l1].[Name]
FROM (
SELECT TOP(1) [l0].[Id], [l0].[Name]
SELECT TOP(1) [l0].[Name]
FROM [LevelThree] AS [l0]
) AS [l1]
ORDER BY [l1].[Id])
) AS [l1])
FROM [LevelOne] AS [l]
WHERE [l].[Id] < 3
""");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ where l1.Id < 3
SELECT (
SELECT TOP(1) [s].[Level3_Name]
FROM (
SELECT TOP(1) [l4].[Id], [l4].[Level2_Required_Id], [l4].[Level3_Name], [l4].[OneToMany_Required_Inverse3Id]
SELECT TOP(1) [l4].[Level3_Name]
FROM [Level1] AS [l0]
LEFT JOIN (
SELECT [l1].[Id], [l1].[OneToOne_Required_PK_Date], [l1].[Level1_Required_Id], [l1].[OneToMany_Required_Inverse2Id]
Expand All @@ -106,10 +106,7 @@ WHEN [l2].[OneToOne_Required_PK_Date] IS NOT NULL AND [l2].[Level1_Required_Id]
WHEN [l4].[Level2_Required_Id] IS NOT NULL AND [l4].[OneToMany_Required_Inverse3Id] IS NOT NULL THEN [l4].[Id]
END
WHERE [l2].[OneToOne_Required_PK_Date] IS NOT NULL AND [l2].[Level1_Required_Id] IS NOT NULL AND [l2].[OneToMany_Required_Inverse2Id] IS NOT NULL AND [l4].[Level2_Required_Id] IS NOT NULL AND [l4].[OneToMany_Required_Inverse3Id] IS NOT NULL
) AS [s]
ORDER BY CASE
WHEN [s].[Level2_Required_Id] IS NOT NULL AND [s].[OneToMany_Required_Inverse3Id] IS NOT NULL THEN [s].[Id]
END)
) AS [s])
FROM [Level1] AS [l]
WHERE [l].[Id] < 3
""");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ where l1.Id < 3
SELECT (
SELECT TOP(1) [s].[Level3_Name]
FROM (
SELECT TOP(1) [l4].[Id], [l4].[Level2_Required_Id], [l4].[Level3_Name], [l4].[OneToMany_Required_Inverse3Id]
SELECT TOP(1) [l4].[Level3_Name]
FROM [Level1] AS [l0]
LEFT JOIN (
SELECT [l1].[Id], [l1].[OneToOne_Required_PK_Date], [l1].[Level1_Required_Id], [l1].[OneToMany_Required_Inverse2Id]
Expand All @@ -108,10 +108,7 @@ WHEN [l2].[OneToOne_Required_PK_Date] IS NOT NULL AND [l2].[Level1_Required_Id]
WHEN [l4].[Level2_Required_Id] IS NOT NULL AND [l4].[OneToMany_Required_Inverse3Id] IS NOT NULL THEN [l4].[Id]
END
WHERE [l2].[OneToOne_Required_PK_Date] IS NOT NULL AND [l2].[Level1_Required_Id] IS NOT NULL AND [l2].[OneToMany_Required_Inverse2Id] IS NOT NULL AND [l4].[Level2_Required_Id] IS NOT NULL AND [l4].[OneToMany_Required_Inverse3Id] IS NOT NULL
) AS [s]
ORDER BY CASE
WHEN [s].[Level2_Required_Id] IS NOT NULL AND [s].[OneToMany_Required_Inverse3Id] IS NOT NULL THEN [s].[Id]
END)
) AS [s])
FROM [Level1] AS [l]
WHERE [l].[Id] < 3
""");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -776,16 +776,14 @@ public override async Task Project_single_element_from_collection_with_OrderBy_T
"""
SELECT [o1].[OrderID], [o1].[CustomerID], [o1].[EmployeeID], [o1].[OrderDate]
FROM [Customers] AS [c]
OUTER APPLY (
SELECT TOP(1) [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate]
LEFT JOIN (
SELECT [o0].[OrderID], [o0].[CustomerID], [o0].[EmployeeID], [o0].[OrderDate]
FROM (
SELECT TOP(1) [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate]
SELECT [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate], ROW_NUMBER() OVER(PARTITION BY [o].[CustomerID] ORDER BY [o].[OrderID]) AS [row]
FROM [Orders] AS [o]
WHERE [c].[CustomerID] = [o].[CustomerID]
ORDER BY [o].[OrderID]
) AS [o0]
ORDER BY [o0].[OrderDate]
) AS [o1]
WHERE [o0].[row] <= 1
) AS [o1] ON [c].[CustomerID] = [o1].[CustomerID]
""");
}

Expand Down

0 comments on commit eaaaa40

Please sign in to comment.