pingcap/tidb

Expression inside window should not support legacy position indication

Open

#10.521 geöffnet am 17. Mai 2019

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Go (6.186 Forks)batch import
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!

  1. 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;
  1. 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.
  1. What did you see instead?
Unknown column 'i' in 'field list'
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

Contributor Guide