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

[Optimizer] Eliminate self compare self #2252

Closed
Tracked by #2255
jackwener opened this issue Apr 17, 2022 · 0 comments
Closed
Tracked by #2255

[Optimizer] Eliminate self compare self #2252

jackwener opened this issue Apr 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jackwener
Copy link
Member

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Eliminate self compare self.

select * from t1 where c1 = c1;
-- infer is not null -->
select * from t1 where c1 = c1 and c1 is not null;
-- this rule to eliminate self compare -->
select * from t1 where c1 is not null;

Describe the solution you'd like
It depend on infer is not null from where clause;

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant