pingcap/tidb

Use a better error message for some error in window function.

Open

#10.551 geöffnet am 21. Mai 2019

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (6.186 Forks)batch import
help wantedpriority/P4type/compatibilitytype/usability

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.
SELECT i, j, SUM(i+j) OVER (ORDER BY jj DESC ROWS UNBOUNDED PRECEDING) foo FROM t;

jj is a column name from table t.

  1. What did you expect to see?
Unknown column 'jj' in 'window order by'
  1. What did you see instead?
Unknown column 'jj' in 'field list'
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?

Contributor Guide