-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Eliminate the scalar value filter #2002
Conversation
PTAL @Dandandan @houqp ❤ |
2771629
to
f6021c3
Compare
}) => { | ||
if !*v { | ||
return Ok(LogicalPlan::EmptyRelation(EmptyRelation { | ||
produce_one_row: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have checked in pg , it will return 0 row. 👍
postgres=# select 1 from user_tbl where false;
?column?
----------
(0 rows)
postgres=# select * from user_tbl where false;
name | signup_date
------+-------------
(0 rows)
false
filterThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @jackwener
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jackwener !
Thanks @jackwener |
Which issue does this PR close?
Closes #1724.
What changes are included in this PR?
Add rule
eliminate_filter
, which can eliminate the filter using scalar and add unit test.Are there any user-facing changes?
None.