-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: vectorized engine incorrectly evaluates NOT (x IN ())
#88141
Comments
I am confused why the |
Ahh, it looks like the failure is only possible when some normalization rules do not fire. I'll narrow down which ones. This is most likely not a release blocker. |
NOT (x INT ())
NOT (x INT ())
NOT (x IN ())
I've confirmed that when |
These normalization rules are essential for costfuzz and unoptimized-query-oracle tests until cockroachdb#88141 is fixed. Release note: None
88075: codeowners, roachtest, team: rename bulk-io to disaster-recovery r=celiala a=celiala Reflecting `bulk-io` to `disaster-recovery` team rename in: - github CODEOWNERS - pkg/cmd/roachtest owners - pkg/internal/team team - TEAMS.yaml Release note: None Partially fixes: DEVINFHD-652 88152: opt: mark FoldInEmpty and FoldNotInEmpty as essential r=mgartner a=mgartner These normalization rules are essential for costfuzz and unoptimized-query-oracle tests until #88141 is fixed. Release note: None Co-authored-by: Celia La <[email protected]> Co-authored-by: Marcus Gartner <[email protected]>
These normalization rules are essential for costfuzz and unoptimized-query-oracle tests until cockroachdb#88141 is fixed. Release note: None
The unoptimized-query-oracle found a bug which appears to be in the vectorized engine.
The issue is that the vectorized engine does not correctly evaluate the expression
NOT (x IN ())
. Under normal operation, such an expression is normalized totrue
by the optimizer byFoldInEmpty
andFoldNotInEmpty
, so the vectorized engine never evaluates this expression.The query plans for both queries are the same:
Jira issue: CRDB-19708
The text was updated successfully, but these errors were encountered: