pingcap/tidb
View on GitHubExpression inside window should not support legacy position indication
Open
#10,521 opened on May 17, 2019
help wantedpriority/P4type/compatibility
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
- What did you do? If possible, provide a recipe for reproducing the error.
CREATE TABLE t(i INT, j INT, k INT);
SELECT i/SUM(j) OVER (PARTITION BY kk) AS x FROM t;
- What did you expect to see?
ERROR HY000: Window '<unnamed window>': ORDER BY or PARTITION BY uses legacy position indication which is not supported, use expression.
- What did you see instead?
Unknown column 'i' in 'field list'
- What version of TiDB are you using (
tidb-server -Vor runselect tidb_version();on TiDB)?