Why does nested `RANK()` fail with `Unknown ranking type` while direct and `DENSE_RANK()` queries work?
I am selecting the highest operator score for each production line. In Apache IoTDB 2.0.10 table model, a direct RANK() projection succeeds, but wrapping the same window expression in a subquery and filtering rk = 1 returns a 301 error. Replacing only RANK() with DENSE_RANK() makes the nested query work. Reproducible setup: CREATE DATABASE operator_rankings; USE operator_rankings; CREATE TABLE shift_scores (line STRING TAG, score INT32 FIELD); INSERT INTO shift_scores(time,line,score) VALUES (1000,'north',10),(2000,'north',30),(3000,'north',20), (1000,'south',3),(2000,'south',5); Direct RANK()
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.