pingcap/tidb
Auf GitHub ansehenExpression inside window should not support legacy position indication
Open
#10.521 geöffnet am 17. Mai 2019
help wantedpriority/P4type/compatibility
Repository-Metriken
- Stars
- (40.090 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 14T 4h) (346 gemergte PRs in 30 T)
Beschreibung
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)?