语句1
Projection_32 10.00 root room_id, begin_time, end_time
└─TopN_35 10.00 root end_time:asc, offset:0, count:10
└─Union_39 120.00 root
├─Limit_45 10.00 root offset:0, count:10
│ └─Projection_68 9.21 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_67 9.21 root
│ ├─IndexScan_65 9.21 cop table:t_example, partition:p1, index:_id, END_TIME, range:[626308755,626308755], keep order:true
│ └─TableScan_66 9.21 cop table:t_example, partition:p1, keep order:false
├─Limit_73 10.00 root offset:0, count:10
│ └─Projection_93 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_92 10.00 root
│ ├─Limit_91 10.00 cop offset:0, count:10
│ │ └─IndexScan_89 72477.48 cop table:t_example, partition:p2, index:_id, END_TIME, range:[626308755,626308755], keep order:true
│ └─TableScan_90 10.00 cop table:t_example, partition:p2, keep order:false, stats:pseudo
├─Limit_102 10.00 root offset:0, count:10
│ └─Projection_122 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_121 10.00 root
│ ├─Limit_120 10.00 cop offset:0, count:10
│ │ └─IndexScan_118 146627.19 cop table:t_example, partition:p3, index:_id, END_TIME, range:[626308755,626308755], keep order:true, stats:pseudo
│ └─TableScan_119 10.00 cop table:t_example, partition:p3, keep order:false, stats:pseudo
├─Limit_131 10.00 root offset:0, count:10
│ └─Projection_151 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_150 10.00 root
│ ├─Limit_149 10.00 cop offset:0, count:10
│ │ └─IndexScan_147 146627.19 cop table:t_example, partition:p4, index:_id, END_TIME, range:[626308755,626308755], keep order:true, stats:pseudo
│ └─TableScan_148 10.00 cop table:t_example, partition:p4, keep order:false, stats:pseudo
├─Limit_160 10.00 root offset:0, count:10
│ └─Projection_180 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_179 10.00 root
│ ├─Limit_178 10.00 cop offset:0, count:10
│ │ └─IndexScan_176 146627.19 cop table:t_example, partition:p5, index:_id, END_TIME, range:[626308755,626308755], keep order:true, stats:pseudo
│ └─TableScan_177 10.00 cop table:t_example, partition:p5, keep order:false, stats:pseudo
├─Limit_189 10.00 root offset:0, count:10
│ └─Projection_209 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_208 10.00 root
│ ├─Limit_207 10.00 cop offset:0, count:10
│ │ └─IndexScan_205 146627.19 cop table:t_example, partition:p6, index:_id, END_TIME, range:[626308755,626308755], keep order:true, stats:pseudo
│ └─TableScan_206 10.00 cop table:t_example, partition:p6, keep order:false, stats:pseudo
├─Limit_218 10.00 root offset:0, count:10
│ └─Projection_238 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_237 10.00 root
│ ├─Limit_236 10.00 cop offset:0, count:10
│ │ └─IndexScan_234 146627.19 cop table:t_example, partition:p7, index:_id, END_TIME, range:[626308755,626308755], keep order:true, stats:pseudo
│ └─TableScan_235 10.00 cop table:t_example, partition:p7, keep order:false, stats:pseudo
├─Limit_247 10.00 root offset:0, count:10
│ └─Projection_267 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_266 10.00 root
│ ├─Limit_265 10.00 cop offset:0, count:10
│ │ └─IndexScan_263 31.26 cop table:t_example, partition:p8, index:_id, END_TIME, range:[626308755,626308755], keep order:true
│ └─TableScan_264 10.00 cop table:t_example, partition:p8, keep order:false, stats:pseudo
├─Limit_277 10.00 root offset:0, count:10
│ └─Projection_300 9.80 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_299 9.80 root
│ ├─IndexScan_297 9.80 cop table:t_example, partition:p9, index:_id, END_TIME, range:[626308755,626308755], keep order:true
│ └─TableScan_298 9.80 cop table:t_example, partition:p9, keep order:false
├─Limit_305 10.00 root offset:0, count:10
│ └─Projection_325 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_324 10.00 root
│ ├─Limit_323 10.00 cop offset:0, count:10
│ │ └─IndexScan_321 89.33 cop table:t_example, partition:p10, index:_id, END_TIME, range:[626308755,626308755], keep order:true
│ └─TableScan_322 10.00 cop table:t_example, partition:p10, keep order:false, stats:pseudo
├─Limit_334 10.00 root offset:0, count:10
│ └─Projection_354 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_353 10.00 root
│ ├─Limit_352 10.00 cop offset:0, count:10
│ │ └─IndexScan_350 32.74 cop table:t_example, partition:p11, index:_id, END_TIME, range:[626308755,626308755], keep order:true
│ └─TableScan_351 10.00 cop table:t_example, partition:p11, keep order:false, stats:pseudo
└─Limit_363 10.00 root offset:0, count:10
└─Projection_383 10.00 root _id, room_id, begin_time, end_time
└─IndexLookUp_382 10.00 root
├─Limit_381 10.00 cop offset:0, count:10
│ └─IndexScan_379 10.00 cop table:t_example, partition:p12, index:_id, END_TIME, range:[626308755,626308755], keep order:true
└─TableScan_380 10.00 cop table:t_example, partition:p12, keep order:false, stats:pseudo
语句2
Projection_32 10.00 root room_id, begin_time, end_time
└─TopN_35 10.00 root end_time:asc, offset:0, count:10
└─Union_39 120.00 root
├─Limit_44 10.00 root offset:0, count:10
│ └─Projection_64 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_63 10.00 root
│ ├─IndexScan_60 1138.92 cop table:t_example, partition:p1, index:END_TIME, range:[NULL,+inf], keep order:true
│ └─Selection_62 10.00 cop in(_id, 626308755)
│ └─TableScan_61 1138.92 cop table:t_example, partition:p1, keep order:false
├─TopN_71 10.00 root end_time:asc, offset:0, count:10
│ └─IndexLookUp_83 10.00 root
│ ├─TopN_82 10.00 cop end_time:asc, offset:0, count:10
│ │ └─IndexScan_80 146627.19 cop table:t_example, partition:p2, index:_id, END_TIME, range:[626308755,626308755], keep order:false
│ └─TableScan_81 10.00 cop table:t_example, partition:p2, keep order:false, stats:pseudo
├─TopN_101 10.00 root end_time:asc, offset:0, count:10
│ └─IndexLookUp_113 10.00 root
│ ├─TopN_112 10.00 cop end_time:asc, offset:0, count:10
│ │ └─IndexScan_110 146627.19 cop table:t_example, partition:p3, index:_id, END_TIME, range:[626308755,626308755], keep order:false, stats:pseudo
│ └─TableScan_111 10.00 cop table:t_example, partition:p3, keep order:false, stats:pseudo
├─TopN_131 10.00 root end_time:asc, offset:0, count:10
│ └─IndexLookUp_143 10.00 root
│ ├─TopN_142 10.00 cop end_time:asc, offset:0, count:10
│ │ └─IndexScan_140 146627.19 cop table:t_example, partition:p4, index:_id, END_TIME, range:[626308755,626308755], keep order:false, stats:pseudo
│ └─TableScan_141 10.00 cop table:t_example, partition:p4, keep order:false, stats:pseudo
├─TopN_161 10.00 root end_time:asc, offset:0, count:10
│ └─IndexLookUp_173 10.00 root
│ ├─TopN_172 10.00 cop end_time:asc, offset:0, count:10
│ │ └─IndexScan_170 146627.19 cop table:t_example, partition:p5, index:_id, END_TIME, range:[626308755,626308755], keep order:false, stats:pseudo
│ └─TableScan_171 10.00 cop table:t_example, partition:p5, keep order:false, stats:pseudo
├─TopN_191 10.00 root end_time:asc, offset:0, count:10
│ └─IndexLookUp_203 10.00 root
│ ├─TopN_202 10.00 cop end_time:asc, offset:0, count:10
│ │ └─IndexScan_200 146627.19 cop table:t_example, partition:p6, index:_id, END_TIME, range:[626308755,626308755], keep order:false, stats:pseudo
│ └─TableScan_201 10.00 cop table:t_example, partition:p6, keep order:false, stats:pseudo
├─TopN_221 10.00 root end_time:asc, offset:0, count:10
│ └─IndexLookUp_233 10.00 root
│ ├─TopN_232 10.00 cop end_time:asc, offset:0, count:10
│ │ └─IndexScan_230 146627.19 cop table:t_example, partition:p7, index:_id, END_TIME, range:[626308755,626308755], keep order:false, stats:pseudo
│ └─TableScan_231 10.00 cop table:t_example, partition:p7, keep order:false, stats:pseudo
├─Limit_254 10.00 root offset:0, count:10
│ └─Projection_274 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_273 10.00 root
│ ├─IndexScan_270 3865.01 cop table:t_example, partition:p8, index:END_TIME, range:[NULL,+inf], keep order:true
│ └─Selection_272 10.00 cop in(_id, 626308755)
│ └─TableScan_271 3865.01 cop table:t_example, partition:p8, keep order:false
├─Limit_284 10.00 root offset:0, count:10
│ └─Projection_304 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_303 10.00 root
│ ├─IndexScan_300 1211.14 cop table:t_example, partition:p9, index:END_TIME, range:[NULL,+inf], keep order:true
│ └─Selection_302 10.00 cop in(_id, 626308755)
│ └─TableScan_301 1211.14 cop table:t_example, partition:p9, keep order:false
├─Limit_314 10.00 root offset:0, count:10
│ └─Projection_334 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_333 10.00 root
│ ├─IndexScan_330 11045.32 cop table:t_example, partition:p10, index:END_TIME, range:[NULL,+inf], keep order:true
│ └─Selection_332 10.00 cop in(_id, 626308755)
│ └─TableScan_331 11045.32 cop table:t_example, partition:p10, keep order:false
├─Limit_344 10.00 root offset:0, count:10
│ └─Projection_364 10.00 root _id, room_id, begin_time, end_time
│ └─IndexLookUp_363 10.00 root
│ ├─IndexScan_360 4048.83 cop table:t_example, partition:p11, index:END_TIME, range:[NULL,+inf], keep order:true
│ └─Selection_362 10.00 cop in(_id, 626308755)
│ └─TableScan_361 4048.83 cop table:t_example, partition:p11, keep order:false
└─Limit_374 10.00 root offset:0, count:10
└─Projection_394 10.00 root _id, room_id, begin_time, end_time
└─IndexLookUp_393 10.00 root
├─IndexScan_390 1236.48 cop table:t_example, partition:p12, index:END_TIME, range:[NULL,+inf], keep order:true
└─Selection_392 10.00 cop in(_id, 626308755)
└─TableScan_391 1236.48 cop table:t_example, partition:p12, keep order:false
发现区别在keep order上