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

Improve some null-related tests #34019

Merged
merged 5 commits into from
Jun 18, 2024
Merged

Conversation

ranma42
Copy link
Contributor

@ranma42 ranma42 commented Jun 18, 2024

This PR improves some tests. Specifically:

  • it ensures that COALESCE operations cannot be trivially optimized away
  • it extends the GearsOfWar dataset with some explicit null in the Eradicated field

Because of the changes, it regresses some tests. They are handled as follows:

ranma42 added 5 commits June 18, 2024 10:53
This change aims at ensuring that the expressions within the queries being
tested cannot be trivially optimized away.

Based on the suggestion by @maumar in
dotnet#33938 (comment)
The property type is `bool?`, not `bool`.
The new dataset shows that the current implementation does not actually behave
as intended (aka as expected by the test).
@maumar maumar merged commit 9a80b6b into dotnet:main Jun 18, 2024
7 checks passed
@ranma42 ranma42 deleted the more-bool-null-tests branch June 18, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants