Skip to content

Panic in NTH_VALUE() window function (SQLancer) #12073

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
2010YOUY01 opened this issue Aug 20, 2024 · 1 comment · Fixed by #12076
Closed

Panic in NTH_VALUE() window function (SQLancer) #12073

2010YOUY01 opened this issue Aug 20, 2024 · 1 comment · Fixed by #12076
Assignees
Labels
bug Something isn't working

Comments

@2010YOUY01
Copy link
Contributor

Describe the bug

See reproducer in datafusion-cli
(datafusion-cli is compiled from latest main, with cargo run, at commit 574dfeb)

DataFusion CLI v41.0.0
> /*DML*/CREATE TABLE t1(v1 BIGINT);
0 row(s) fetched.
Elapsed 0.067 seconds.

> SELECT NTH_VALUE('+Inf'::Double, v1) OVER (PARTITION BY v1) FROM t1;
thread 'main' panicked at /Users/yongting/Desktop/code/my_datafusion/arrow-datafusion/datafusion/physical-plan/src/windows/mod.rs:286:22:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

To Reproduce

No response

Expected behavior

No response

Additional context

Found by SQLancer #11030

@2010YOUY01 2010YOUY01 added the bug Something isn't working label Aug 20, 2024
@Weijun-H
Copy link
Member

take

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

Successfully merging a pull request may close this issue.

2 participants