mark some file to been opensource for ce-farm
This commit is contained in:
18
tools/deploy/mysql_test/test_suite/px/t/agg.test
Normal file
18
tools/deploy/mysql_test/test_suite/px/t/agg.test
Normal file
@ -0,0 +1,18 @@
|
||||
#owner: dachuan.sdc
|
||||
#owner group: SQL3
|
||||
# tags: optimizer
|
||||
|
||||
# test aggregation
|
||||
|
||||
--source mysql_test/test_suite/px/include/exam_data.inc
|
||||
|
||||
# 计算全年级平均分,最高分,最低分
|
||||
explain select /*+ USE_PX parallel(2) */ subject, avg(score), max(score), min(score) from score group by subject;
|
||||
--sorted_result
|
||||
select /*+ USE_PX parallel(2) */ subject, avg(score), max(score), min(score) from score group by subject;
|
||||
|
||||
# 计算各个班级平均分,最高分,最低分
|
||||
explain select /*+ USE_PX parallel(2) */ cls, subject, avg(score), max(score), min(score) from score join stu using (sid) group by cls, subject;
|
||||
--sorted_result
|
||||
select /*+ USE_PX parallel(2) */ cls, subject, avg(score), max(score), min(score) from score join stu using (sid) group by cls, subject;
|
||||
|
||||
Reference in New Issue
Block a user