pingcap/tidb

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

Open

#10,551 创建于 2019年5月21日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Go (6,186 fork)batch import
help wantedpriority/P4type/compatibilitytype/usability

仓库指标

Star
 (40,090 star)
PR 合并指标
 (平均合并 14天 4小时) (30 天内合并 346 个 PR)

描述

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

贡献者指南