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

Overflow bug in negate arithmetic operator (found by SQLancer) #11076

Closed
2010YOUY01 opened this issue Jun 23, 2024 · 1 comment · Fixed by #11084
Closed

Overflow bug in negate arithmetic operator (found by SQLancer) #11076

2010YOUY01 opened this issue Jun 23, 2024 · 1 comment · Fixed by #11084
Assignees
Labels
bug Something isn't working

Comments

@2010YOUY01
Copy link
Contributor

Describe the bug

The following statement should return an error instead of directly crash

DataFusion CLI v39.0.0
> select (- -9223372036854775808);
thread 'main' panicked at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/arith.rs:699:1:
attempt to negate with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Found by SQLancer #11030

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants