pingcap/tidb
Ver no GitHubUse a better error message for some error in window function.
Open
#10.551 aberto em 21 de mai. de 2019
help wantedpriority/P4type/compatibilitytype/usability
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.
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.
- What did you expect to see?
Unknown column 'jj' in 'window order by'
- What did you see instead?
Unknown column 'jj' in 'field list'
- What version of TiDB are you using (
tidb-server -Vor runselect tidb_version();on TiDB)?