RupengWang edited a comment on pull request #1198:
URL: https://github.com/apache/kylin/pull/1198#issuecomment-644599963
## Design test cases
### Prepare test env
- create cube and build segment (2012-01-01 ~ 2015-01-01)
- make sure the sql like "Query ... row_number over(order by c1) ... order
by c2"
- compare
### Case-1
```sql
select t.*, row_number() over (order by t.lstg_format_name) as row_num from (
select lstg_format_name, sum(price) as GMV from
KYLIN_SALES
where lstg_format_name is not null
group by lstg_format_name
) as t
order by t.GMV desc limit 5;
```
1. Get Kylin result
2. Get Hive result
### Case-2
```sql
```
1. Get Kylin result
2. Get Hive result
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]