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

Window Function syntax error #1423

Open
holyhe opened this issue Jul 13, 2022 · 0 comments
Open

Window Function syntax error #1423

holyhe opened this issue Jul 13, 2022 · 0 comments

Comments

@holyhe
Copy link

holyhe commented Jul 13, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

// use d1;
// CREATE TABLE t1 (qty INT, price INT);

ddl = "CREATE VIEW t8 AS SELECT qty, price, ROW_NUMBER() OVER(PARTITION BY qty ORDER BY price) AS row_num FROM t1;"
nodes, _, err := parser.New().Parse(ddl, "", "")

  1. What did you expect to see?

parser.New().Parse(ddl, "", "")
return success

  1. What did you see instead?
    parser.New().Parse(ddl, "", "")
    return error
    error msg:
    line 1 column 150 near "(PARTITION BY t1.qty ORDER BY t1.price ) AS row_num from t1"

  2. What version of TiDB SQL Parser are you using?
    github.com/pingcap/parser v0.0.0-20200623164729-3a18f1e5dceb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant