mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 21:32:58 +00:00
* generate exec plan Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * move DatanodeClients to client crate Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * wip MergeScanExec::to_stream Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix compile errors Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix default catalog Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix expand order of new stage Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * move sqlness cases contains plan out of common dir Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * refactor information schema to allow duplicated scan call Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix: ignore two cases due to substrait Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * reorganise sqlness common cases Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix typos Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * redact round robin partition number Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * Apply suggestions from code review Co-authored-by: Yingwen <realevenyag@gmail.com> * skip tranforming projection Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update sqlness result Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * revert common/order Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix clippy Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * Update src/query/src/dist_plan/merge_scan.rs Co-authored-by: JeremyHi <jiachun_feng@proton.me> * update sqlness result Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update sqlness result again Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * resolve CR comments Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * ignore region failover IT Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update sqlness result again and again Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * unignore some tests about projection Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * enable failover tests Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com> Co-authored-by: JeremyHi <jiachun_feng@proton.me>
78 lines
4.4 KiB
Plaintext
78 lines
4.4 KiB
Plaintext
explain select * from numbers;
|
|
|
|
+---------------+--------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+--------------------------------------------+
|
|
| logical_plan | Projection: numbers.number |
|
|
| | MergeScan [is_placeholder=false] |
|
|
| | TableScan: numbers projection=[number] |
|
|
| physical_plan | ProjectionExec: expr=[number@0 as number] |
|
|
| | ExecutionPlan(PlaceHolder) |
|
|
| | |
|
|
+---------------+--------------------------------------------+
|
|
|
|
explain select * from numbers order by number desc;
|
|
|
|
+---------------+----------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+----------------------------------------------+
|
|
| logical_plan | Sort: numbers.number DESC NULLS FIRST |
|
|
| | Projection: numbers.number |
|
|
| | MergeScan [is_placeholder=false] |
|
|
| | TableScan: numbers projection=[number] |
|
|
| physical_plan | SortExec: expr=[number@0 DESC] |
|
|
| | ProjectionExec: expr=[number@0 as number] |
|
|
| | ExecutionPlan(PlaceHolder) |
|
|
| | |
|
|
+---------------+----------------------------------------------+
|
|
|
|
explain select * from numbers order by number asc;
|
|
|
|
+---------------+----------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+----------------------------------------------+
|
|
| logical_plan | Sort: numbers.number ASC NULLS LAST |
|
|
| | Projection: numbers.number |
|
|
| | MergeScan [is_placeholder=false] |
|
|
| | TableScan: numbers projection=[number] |
|
|
| physical_plan | SortExec: expr=[number@0 ASC NULLS LAST] |
|
|
| | ProjectionExec: expr=[number@0 as number] |
|
|
| | ExecutionPlan(PlaceHolder) |
|
|
| | |
|
|
+---------------+----------------------------------------------+
|
|
|
|
explain select * from numbers order by number desc limit 10;
|
|
|
|
+---------------+---------------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+---------------------------------------------------+
|
|
| logical_plan | Limit: skip=0, fetch=10 |
|
|
| | Sort: numbers.number DESC NULLS FIRST, fetch=10 |
|
|
| | Projection: numbers.number |
|
|
| | MergeScan [is_placeholder=false] |
|
|
| | TableScan: numbers projection=[number] |
|
|
| physical_plan | GlobalLimitExec: skip=0, fetch=10 |
|
|
| | SortExec: fetch=10, expr=[number@0 DESC] |
|
|
| | ProjectionExec: expr=[number@0 as number] |
|
|
| | ExecutionPlan(PlaceHolder) |
|
|
| | |
|
|
+---------------+---------------------------------------------------+
|
|
|
|
explain select * from numbers order by number asc limit 10;
|
|
|
|
+---------------+------------------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+------------------------------------------------------+
|
|
| logical_plan | Limit: skip=0, fetch=10 |
|
|
| | Sort: numbers.number ASC NULLS LAST, fetch=10 |
|
|
| | Projection: numbers.number |
|
|
| | MergeScan [is_placeholder=false] |
|
|
| | TableScan: numbers projection=[number] |
|
|
| physical_plan | GlobalLimitExec: skip=0, fetch=10 |
|
|
| | SortExec: fetch=10, expr=[number@0 ASC NULLS LAST] |
|
|
| | ProjectionExec: expr=[number@0 as number] |
|
|
| | ExecutionPlan(PlaceHolder) |
|
|
| | |
|
|
+---------------+------------------------------------------------------+
|
|
|