Closed
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 NTH_VALUE(fieldA, -1) OVER (w1 PARTITION BY fieldB ORDER BY fieldB , fieldA ) AS 'ntile', fieldA, fieldB FROM ( SELECT `pk` AS fieldA, `col_date_key` AS fieldB FROM `table70_int_autoinc` ) as t WINDOW w1 AS ( ORDER BY fieldB ASC, fieldA DESC );
- What did you expect to see?
ERROR 1210 (HY000): Incorrect arguments to nth_value
- What did you see instead?
ERROR 3581 (HY000): A window which depends on another cannot define partitioning.
- What version of TiDB are you using (
tidb-server -V
or runselect tidb_version();
on TiDB)?
Activity