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

Tracking: Short-circuit evaluation in expressions #6202

Closed
4 tasks done
TennyZhuang opened this issue Nov 4, 2022 · 1 comment
Closed
4 tasks done

Tracking: Short-circuit evaluation in expressions #6202

TennyZhuang opened this issue Nov 4, 2022 · 1 comment
Assignees
Labels
component/common Common components, such as array, data chunk, expression. type/feature

Comments

@TennyZhuang
Copy link
Contributor

TennyZhuang commented Nov 4, 2022

Some expressions can be evaluated with short-circuit optimization.

Semantic guaranteed in SQL:

Implementation detail without semantic guarantee.

select * from a, b where a1 > b1*b1 and 3 / a1 < 5;

Optimizer is allowed to filter with 3 / a1 < 5 before join on a1 > b1*b1.
This can lead to division by zero error not observed if semantic guarantee was provided.

PostgreSQL:

@TennyZhuang TennyZhuang added type/feature component/common Common components, such as array, data chunk, expression. labels Nov 4, 2022
@github-actions github-actions bot added this to the release-0.1.14 milestone Nov 4, 2022
@soundOfDestiny soundOfDestiny self-assigned this Nov 28, 2022
@soundOfDestiny
Copy link
Contributor

It should be automatically closed when task list items are all done 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/common Common components, such as array, data chunk, expression. type/feature
Projects
None yet
Development

No branches or pull requests

2 participants