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

panicked when using window function #10435

Closed
winoros opened this issue May 13, 2019 · 0 comments · Fixed by #10452
Closed

panicked when using window function #10435

winoros opened this issue May 13, 2019 · 0 comments · Fixed by #10452
Assignees
Labels
sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@winoros
Copy link
Member

winoros commented May 13, 2019

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
CREATE TABLE t1(i INT, j INT, k INT);
INSERT INTO t1 VALUES (1,1,1),(2,2,2),(3,3,3),(4,4,4);
INSERT INTO t1 SELECT 10*i,j,5*j FROM t1 UNION SELECT 20*i,j,5*j FROM t1
UNION SELECT 30*i,j,5*j FROM t1;

SELECT SUM(i) OVER W FROM t1 WINDOW w AS (PARTITION BY j ORDER BY i)
  ORDER BY 1+SUM(i) OVER w;
  1. What did you expect to see?

Execute successfully

  1. What did you see instead?

Panicked

  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

master 373317f

@winoros winoros added type/bug The issue is confirmed as a bug. sig/execution SIG execution labels May 13, 2019
@winoros winoros self-assigned this May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant