pingcap/tidb

Expression inside window should not support legacy position indication

Open

#10.521 aperta il 17 mag 2019

Vedi su GitHub
 (2 commenti) (0 reazioni) (1 assegnatario)Go (6186 fork)batch import
help wantedpriority/P4type/compatibility

Metriche repository

Star
 (40.090 star)
Metriche merge PR
 (Merge medio 14g 4h) (346 PR mergiate in 30 g)

Descrizione

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)?

Guida contributor