Skip to content

Revert "feat: Add rewrite for IN special form"#15649

Closed
kagamiori wants to merge 1 commit intofacebookincubator:mainfrom
kagamiori:export-D87955860
Closed

Revert "feat: Add rewrite for IN special form"#15649
kagamiori wants to merge 1 commit intofacebookincubator:mainfrom
kagamiori:export-D87955860

Conversation

@kagamiori
Copy link
Contributor

Summary:
This diff reverts D87598240
This change introduced incorrect behavior as described in #15648.

Depends on D87598240

Differential Revision: D87955860

Summary:
This diff reverts D87598240
This change introduced incorrect behavior as described in facebookincubator#15648.

Depends on D87598240

Differential Revision: D87955860
@netlify
Copy link

netlify bot commented Nov 26, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 59cf3c8
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/69278fb1168ee800081d528c

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 26, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 26, 2025

@kagamiori has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87955860.

@kagamiori kagamiori changed the title Revert D87598240 Revert "feat: Add rewrite for IN special form" Nov 26, 2025
bool,
Generic<T1>,
Variadic<Generic<T1>>>({"in"});
InRewrite::registerRewrite();
Copy link
Collaborator

Choose a reason for hiding this comment

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

@kagamiori, could you please remove the registration of the rewrite and retain InRewrite.h/.cpp? Reference: #15549 (comment) .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @pramodsatya, sorry that I just saw your message, but this PR is already merged. Could you create another PR to add InRewrite.h/.cpp back? (By the way, we found that IN after rewrite can produce incorrect result, so it's probably safer for your use case too to fix this bug before continue using it.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

@kagamiori, no worries, I reintroduced the IN-rewrite here: #15663, avoiding the rewrite for expressions of form NULL IN [a, b, ...] in order to respect the kNullAsIndeterminate null compare flag and fix the result change. Could you please take a look when you get a chance?

Copy link
Collaborator

@pramodsatya pramodsatya left a comment

Choose a reason for hiding this comment

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

Thanks @kagamiori, could you please remove just the registration of the rewrite until #15648 is resolved? That way it can still be used outside of Velox expression eval, please see discussion in #15549 (comment).

@meta-codesync
Copy link

meta-codesync bot commented Nov 27, 2025

This pull request has been merged in c045573.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants