mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-26 18:00:41 +00:00
* fix(table): return correct table types Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local> * fix: NumbersTable to be Temporary table Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local> * fix(test): fix affected cases Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local> * fix(test): fix affected cases Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local> * fix: fmt Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local> * fix(tests): fix instance_test expected result * retrigger action Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> --------- Signed-off-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local> Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> Co-authored-by: zhongzc <zhongzc@zhongzcs-MacBook-Pro.local>
63 lines
9.7 KiB
Plaintext
63 lines
9.7 KiB
Plaintext
explain select * from numbers;
|
|
|
|
+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| logical_plan | TableScan: numbers projection=[number] |
|
|
| physical_plan | StreamScanAdapter { stream: "<SendableRecordBatchStream>", schema: [Field { name: "number", data_type: UInt32, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }] } |
|
|
| | |
|
|
+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
explain select * from numbers order by number desc;
|
|
|
|
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| logical_plan | Sort: numbers.number DESC NULLS FIRST |
|
|
| | TableScan: numbers projection=[number] |
|
|
| physical_plan | SortExec: expr=[number@0 DESC] |
|
|
| | StreamScanAdapter { stream: "<SendableRecordBatchStream>", schema: [Field { name: "number", data_type: UInt32, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }] } |
|
|
| | |
|
|
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
explain select * from numbers order by number asc;
|
|
|
|
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
| logical_plan | Sort: numbers.number ASC NULLS LAST |
|
|
| | TableScan: numbers projection=[number] |
|
|
| physical_plan | SortExec: expr=[number@0 ASC NULLS LAST] |
|
|
| | StreamScanAdapter { stream: "<SendableRecordBatchStream>", schema: [Field { name: "number", data_type: UInt32, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }] } |
|
|
| | |
|
|
+---------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
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 |
|
|
| | TableScan: numbers projection=[number] |
|
|
| physical_plan | GlobalLimitExec: skip=0, fetch=10 |
|
|
| | SortExec: fetch=10, expr=[number@0 DESC] |
|
|
| | StreamScanAdapter { stream: "<SendableRecordBatchStream>", schema: [Field { name: "number", data_type: UInt32, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }] } |
|
|
| | |
|
|
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
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 |
|
|
| | TableScan: numbers projection=[number] |
|
|
| physical_plan | GlobalLimitExec: skip=0, fetch=10 |
|
|
| | SortExec: fetch=10, expr=[number@0 ASC NULLS LAST] |
|
|
| | StreamScanAdapter { stream: "<SendableRecordBatchStream>", schema: [Field { name: "number", data_type: UInt32, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }] } |
|
|
| | |
|
|
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|