Skip to content

Overflow bug in POW scalar function (found by SQLancer)  #11075

Closed
@2010YOUY01

Description

@2010YOUY01

Describe the bug

The following statement should return an error instead of directly crash

DataFusion CLI v39.0.0
> select pow(2107754225, 1221660777);
thread 'main' panicked at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/num/mod.rs:358:5:
attempt to multiply 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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions