Skip to content

fix double negatives#2919

Merged
jycor merged 3 commits intomainfrom
james/not
Mar 31, 2025
Merged

fix double negatives#2919
jycor merged 3 commits intomainfrom
james/not

Conversation

@jycor
Copy link
Copy Markdown
Contributor

@jycor jycor commented Mar 31, 2025

We can't apply NOT(NOT(expr)) -> expr optimization if there will be a type conversion involved.

This PR also fixes bad test involving current timestamps.

fixes: dolthub/dolt#9054

Copy link
Copy Markdown
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jycor jycor merged commit c88082e into main Mar 31, 2025
8 checks passed
@jycor jycor deleted the james/not branch March 31, 2025 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Double negation is treated as original value in WHERE clause

2 participants