RupengWang commented on pull request #1024: URL: https://github.com/apache/kylin/pull/1024#issuecomment-643742229
## Design test cases ### Prepare test env - create cube and build segment (2012-01-01 ~ 2013-01-01) - dimension : LSTG_FORMAT_NAME, ops_region, part_dt - measure : sum(price) ### Case-1 Make sure query-1 and query-2 has the same result. - query-1 (Hive) ```sql select LSTG_FORMAT_NAME, stddev_pop(SUM_M) from ( select LSTG_FORMAT_NAME, ops_region, sum(price) as SUM_M from KYLIN_SALES where part_dt >= '2012-01-01' and part_dt < '2012-06-01' group by LSTG_FORMAT_NAME, ops_region ) a group by LSTG_FORMAT_NAME order by LSTG_FORMAT_NAME ``` - query-2 (Kylin) ```sql select LSTG_FORMAT_NAME, stddev_sum(ops_region, price) from KYLIN_SALES where part_dt >= '2012-01-01' and part_dt < '2012-06-01' group by LSTG_FORMAT_NAME order by LSTG_FORMAT_NAME ``` ### Case-2 Make sure query-1 and query-2 has the same result. - query-1 (Hive) ```sql select stddev_pop(SUM_M) from ( select LSTG_FORMAT_NAME, ops_region, sum(price) as SUM_M from KYLIN_SALES where part_dt >= '2012-01-01' and part_dt < '2012-06-01' group by LSTG_FORMAT_NAME, ops_region ) a ``` - query-2(Kylin) ```sql select stddev_sum(ops_region, price) from KYLIN_SALES where part_dt >= '2012-01-01' and part_dt < '2012-06-01' ``` ---------------------------------------------------------------- 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: us...@infra.apache.org