pingcap/tidb
Ver no GitHubExpression inside window should not support legacy position indication
Open
#10.521 aberto em 17 de mai. de 2019
help wantedpriority/P4type/compatibility
Métricas do repositório
- Stars
- (40.090 stars)
- Métricas de merge de PR
- (Mesclagem média 14d 4h) (346 fundiu PRs em 30d)
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)?