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

bug: window function entered unreachable code #17294

Closed
1 of 2 tasks
b41sh opened this issue Jan 15, 2025 · 0 comments · Fixed by #17316
Closed
1 of 2 tasks

bug: window function entered unreachable code #17294

b41sh opened this issue Jan 15, 2025 · 0 comments · Fixed by #17316
Assignees
Labels
C-bug Category: something isn't working found-by-sqlsmith

Comments

@b41sh
Copy link
Member

b41sh commented Jan 15, 2025

Search before asking

  • I had searched in the issues and found no similar issues.

Version

main

What's Wrong?

window function entered unreachable code
found by fuzz sqlite test

panicked at src/query/service/src/pipelines/processors/transforms/window/transform_window.rs:959:17:
internal error: entered unreachable code

How to Reproduce?

root@0.0.0.0:48000/tt> CREATE TABLE t2 (a Int32, b Int32);
root@0.0.0.0:48000/tt> INSERT INTO t2(a, b) VALUES (10,89), (11,81);
root@0.0.0.0:48000/tt> SELECT last_value(a + b) RESPECT NULLS OVER (PARTITION BY b % 10 ORDER BY b ROWS BETWEEN UNBOUNDED FOLLOWING AND UNBOUNDED FOLLOWING) FROM t2;
error: APIError: QueryFailed: [1104]internal error: entered unreachable code

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@b41sh b41sh added C-bug Category: something isn't working found-by-sqlsmith labels Jan 15, 2025
@sundy-li sundy-li self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: something isn't working found-by-sqlsmith
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants