Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.0.0
Description
Queries returning wrong result:
select c_integer, row_number() over(order by c_integer) from j1 order by 2; select c_integer, row_number() over(order by c_integer) from j1 order by 2 desc; select c_integer, row_number() over(order by c_integer desc) from j1 order by 2; select c_integer, row_number() over(order by c_integer desc) from j1 order by 2; select c_integer, row_number() over(order by c_integer nulls first) from j1 order by c_integer nulls last, row_number() over(order by c_integer nulls first); select c_integer, row_number() over(order by c_integer nulls last) from j1 order by c_integer nulls first, row_number() over(order by c_integer nulls last);
In attached tar file (row_number_wrong_result.tar) you will find:
1. *.sql - file that contains query
2. *.res - expected result (generated from Postgres)
3. *.out - result returned by drill
Attachments
Attachments
Issue Links
- depends upon
-
DRILL-3345 TestWindowFrame fails to properly check cases involving multiple batches
- Closed
- is duplicated by
-
DRILL-3358 CUME_DIST window function provides wrong result when only ORDER BY clause is specified
- Closed