Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0.2] Fix baselines for IS NULL change #27166

Merged
merged 1 commit into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1895,10 +1895,10 @@ FROM [Orders] AS [o0]
WHERE (CAST([o0].[EmployeeID] AS bigint) = CAST(((
SELECT MAX([o1].[OrderID])
FROM [Orders] AS [o1]
WHERE ([o].[EmployeeID] = [o1].[EmployeeID]) OR ([o].[EmployeeID] IS NULL AND [o1].[EmployeeID] IS NULL)) * 6) AS bigint)) OR ([o0].[EmployeeID] IS NULL AND (
WHERE ([o].[EmployeeID] = [o1].[EmployeeID]) OR (([o].[EmployeeID] IS NULL) AND ([o1].[EmployeeID] IS NULL))) * 6) AS bigint)) OR (([o0].[EmployeeID] IS NULL) AND ((
SELECT MAX([o1].[OrderID])
FROM [Orders] AS [o1]
WHERE ([o].[EmployeeID] = [o1].[EmployeeID]) OR ([o].[EmployeeID] IS NULL AND [o1].[EmployeeID] IS NULL)) IS NULL)) AS [Max]
WHERE ([o].[EmployeeID] = [o1].[EmployeeID]) OR (([o].[EmployeeID] IS NULL) AND ([o1].[EmployeeID] IS NULL))) IS NULL))) AS [Max]
FROM [Orders] AS [o]
GROUP BY [o].[EmployeeID]");
}
Expand Down Expand Up @@ -2823,7 +2823,7 @@ OUTER APPLY (
SELECT TOP(1) [e].[City] AS [Key], COUNT(*) + (
SELECT COUNT(*)
FROM [Orders] AS [o0]
WHERE ([t].[CustomerID] = [o0].[CustomerID]) OR ([t].[CustomerID] IS NULL AND [o0].[CustomerID] IS NULL)) AS [C], 1 AS [c0]
WHERE ([t].[CustomerID] = [o0].[CustomerID]) OR (([t].[CustomerID] IS NULL) AND ([o0].[CustomerID] IS NULL))) AS [C], 1 AS [c0]
FROM [Employees] AS [e]
WHERE [e].[City] = N'Seattle'
GROUP BY [e].[City]
Expand Down Expand Up @@ -2855,14 +2855,14 @@ public override async Task GroupBy_aggregate_from_multiple_query_in_same_project
SELECT TOP(1) COUNT(*) + (
SELECT COUNT(*)
FROM [Orders] AS [o0]
WHERE ([o].[CustomerID] = [o0].[CustomerID]) OR ([o].[CustomerID] IS NULL AND [o0].[CustomerID] IS NULL))
WHERE ([o].[CustomerID] = [o0].[CustomerID]) OR (([o].[CustomerID] IS NULL) AND ([o0].[CustomerID] IS NULL)))
FROM [Employees] AS [e]
WHERE [e].[City] = N'Seattle'
GROUP BY [e].[City]
ORDER BY COUNT(*) + (
SELECT COUNT(*)
FROM [Orders] AS [o0]
WHERE ([o].[CustomerID] = [o0].[CustomerID]) OR ([o].[CustomerID] IS NULL AND [o0].[CustomerID] IS NULL))), 0) AS [A]
WHERE ([o].[CustomerID] = [o0].[CustomerID]) OR (([o].[CustomerID] IS NULL) AND ([o0].[CustomerID] IS NULL)))), 0) AS [A]
FROM [Orders] AS [o]
GROUP BY [o].[CustomerID]");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ SELECT MIN([o0].[HourlyRate])
FROM [Order] AS [o0]
WHERE [o0].[CustomerId] = [o].[CustomerId]) AS [CustomerMinHourlyRate], MIN([o].[HourlyRate]) AS [HourlyRate], COUNT(*) AS [Count]
FROM [Order] AS [o]
WHERE ([o].[Number] <> N'A1') OR [o].[Number] IS NULL
WHERE ([o].[Number] <> N'A1') OR ([o].[Number] IS NULL)
GROUP BY [o].[CustomerId], [o].[Number]");
}

Expand All @@ -189,10 +189,10 @@ FROM [Table] AS [t0]
WHERE ([t0].[Value] = ((
SELECT MAX([t1].[Id])
FROM [Table] AS [t1]
WHERE ([t].[Value] = [t1].[Value]) OR ([t].[Value] IS NULL AND [t1].[Value] IS NULL)) * 6)) OR ([t0].[Value] IS NULL AND (
WHERE ([t].[Value] = [t1].[Value]) OR (([t].[Value] IS NULL) AND ([t1].[Value] IS NULL))) * 6)) OR (([t0].[Value] IS NULL) AND ((
SELECT MAX([t1].[Id])
FROM [Table] AS [t1]
WHERE ([t].[Value] = [t1].[Value]) OR ([t].[Value] IS NULL AND [t1].[Value] IS NULL)) IS NULL)) AS [B]
WHERE ([t].[Value] = [t1].[Value]) OR (([t].[Value] IS NULL) AND ([t1].[Value] IS NULL))) IS NULL))) AS [B]
FROM [Table] AS [t]
GROUP BY [t].[Value]");
}
Expand All @@ -206,7 +206,7 @@ public override async Task Group_by_aggregate_in_subquery_projection_after_group
SELECT TOP(1) (
SELECT COALESCE(SUM([t1].[Id]), 0)
FROM [Table] AS [t1]
WHERE ([t].[Value] = [t1].[Value]) OR ([t].[Value] IS NULL AND [t1].[Value] IS NULL)) + COALESCE(SUM([t0].[Id]), 0)
WHERE ([t].[Value] = [t1].[Value]) OR (([t].[Value] IS NULL) AND ([t1].[Value] IS NULL))) + COALESCE(SUM([t0].[Id]), 0)
FROM [Table] AS [t0]
GROUP BY [t0].[Value]
ORDER BY (SELECT 1)), 0) AS [C]
Expand Down