32 lines
3.5 KiB
Plaintext
32 lines
3.5 KiB
Plaintext
-- Test Setup: OldTwoMeasurementsManyFieldsOneRubChunk
|
|
-- SQL: EXPLAIN SELECT count(*) from h2o;
|
|
+---------------+-------------------------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+-------------------------------------------------------------+
|
|
| logical_plan | Projection: #COUNT(UInt8(1)) |
|
|
| | Aggregate: groupBy=[[]], aggr=[[COUNT(UInt8(1))]] |
|
|
| | TableScan: h2o projection=Some([0]) |
|
|
| physical_plan | ProjectionExec: expr=[COUNT(UInt8(1))@0 as COUNT(UInt8(1))] |
|
|
| | ProjectionExec: expr=[3 as COUNT(UInt8(1))] |
|
|
| | EmptyExec: produce_one_row=true |
|
|
| | |
|
|
+---------------+-------------------------------------------------------------+
|
|
-- SQL: EXPLAIN SELECT count(*) from h2o where temp > 70.0 and temp < 72.0;
|
|
+---------------+---------------------------------------------------------------------------------------------------------------------------------+
|
|
| plan_type | plan |
|
|
+---------------+---------------------------------------------------------------------------------------------------------------------------------+
|
|
| logical_plan | Projection: #COUNT(UInt8(1)) |
|
|
| | Aggregate: groupBy=[[]], aggr=[[COUNT(UInt8(1))]] |
|
|
| | Filter: #h2o.temp > Float64(70) AND #h2o.temp < Float64(72) |
|
|
| | TableScan: h2o projection=Some([3]), partial_filters=[#h2o.temp > Float64(70), #h2o.temp < Float64(72)] |
|
|
| physical_plan | ProjectionExec: expr=[COUNT(UInt8(1))@0 as COUNT(UInt8(1))] |
|
|
| | HashAggregateExec: mode=Final, gby=[], aggr=[COUNT(UInt8(1))] |
|
|
| | CoalescePartitionsExec |
|
|
| | HashAggregateExec: mode=Partial, gby=[], aggr=[COUNT(UInt8(1))] |
|
|
| | CoalesceBatchesExec: target_batch_size=500 |
|
|
| | FilterExec: temp@0 > 70 AND temp@0 < 72 |
|
|
| | RepartitionExec: partitioning=RoundRobinBatch(4) |
|
|
| | IOxReadFilterNode: table_name=h2o, chunks=1 predicate=Predicate exprs: [#temp > Float64(70), #temp < Float64(72)] |
|
|
| | |
|
|
+---------------+---------------------------------------------------------------------------------------------------------------------------------+
|