From eca3731e583ba4f1a754aa7d7679fd4318d796ca Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Tue, 25 Aug 2026 09:38:15 +0000 Subject: [PATCH] Hyper: Add external ANALYZE plan mode Regenerate Hyper examples with a new build. Hyper renamed its operators and expressions, so all plans changed. Also include a `FORMAT JSON, ANALYZE, EXPAND_VIEWS true` plan, which is a slightly different plan flavor in Hyper. --- plan-dumper/README.md | 1 + plan-dumper/dump-plans.py | 3 +- plan-dumper/queries/tpch/tpch-q1.sql | 1 + .../examples/hyper/cte-analyze.plan.json | 37 +- .../hyper/cte-recursive-analyze.plan.json | 22 +- .../hyper/forkshare-pipelines.plan.json | 43 +- .../examples/hyper/groupby-analyze.plan.json | 21 +- .../examples/hyper/insert.plan.json | 35 +- .../hyper/magicunnesting-analyze.plan.json | 48 +- .../hyper/magicunnesting-pipelines.plan.json | 6 +- .../examples/hyper/markjoin-analyze.plan.json | 26 +- .../hyper/materialized-pipelines.plan.json | 29 +- .../hyper/metadata-describe-table.plan.json | 35 +- .../hyper/setoperation-analyze.plan.json | 61 +- .../hyper/tableconstruction.plan.json | 14 +- .../examples/hyper/tablefunction.plan.json | 16 +- .../hyper/tablescan-analyze.plan.json | 11 +- .../hyper/tpch-q11-error-analyze.plan.json | 143 ++- .../hyper/tpch/tpch-q1-analyze.plan.json | 37 +- .../tpch/tpch-q1-external-analyze.plan.json | 45 + .../hyper/tpch/tpch-q10-analyze.plan.json | 91 +- .../hyper/tpch/tpch-q11-analyze.plan.json | 143 ++- .../hyper/tpch/tpch-q12-analyze.plan.json | 59 +- .../hyper/tpch/tpch-q13-analyze.plan.json | 67 +- .../hyper/tpch/tpch-q14-analyze.plan.json | 53 +- .../hyper/tpch/tpch-q15-analyze.plan.json | 88 +- .../hyper/tpch/tpch-q16-analyze.plan.json | 77 +- .../hyper/tpch/tpch-q17-analyze.plan.json | 91 +- .../hyper/tpch/tpch-q18-analyze.plan.json | 111 +- .../hyper/tpch/tpch-q19-analyze.plan.json | 48 +- .../hyper/tpch/tpch-q2-analyze.plan.json | 179 +-- .../hyper/tpch/tpch-q2-steps.plan.json | 1131 ++++++++++------- .../examples/hyper/tpch/tpch-q2.plan.json | 139 +- .../hyper/tpch/tpch-q20-analyze.plan.json | 123 +- .../hyper/tpch/tpch-q21-analyze.plan.json | 133 +- .../hyper/tpch/tpch-q22-analyze.plan.json | 97 +- .../hyper/tpch/tpch-q3-analyze.plan.json | 73 +- .../hyper/tpch/tpch-q4-analyze.plan.json | 57 +- .../hyper/tpch/tpch-q5-analyze.plan.json | 127 +- .../hyper/tpch/tpch-q6-analyze.plan.json | 27 +- .../hyper/tpch/tpch-q7-analyze.plan.json | 134 +- .../hyper/tpch/tpch-q8-analyze.plan.json | 177 +-- .../hyper/tpch/tpch-q9-analyze.plan.json | 135 +- .../hyper/unionall-pipelines.plan.json | 25 +- .../examples/hyper/window-analyze.plan.json | 19 +- standalone-app/examples/index.json | 5 +- 46 files changed, 2233 insertions(+), 1810 deletions(-) create mode 100644 standalone-app/examples/hyper/tpch/tpch-q1-external-analyze.plan.json diff --git a/plan-dumper/README.md b/plan-dumper/README.md index 191f91ae..cbef2a2b 100644 --- a/plan-dumper/README.md +++ b/plan-dumper/README.md @@ -27,6 +27,7 @@ The available modes are: * `simple` → a plain JSON `EXPLAIN`. * `analyze` → an executing plan with runtime measurements. Hyper, Postgres, DuckDB, Umbra, CedarDB, and MariaDB use their JSON `EXPLAIN ANALYZE` variants. +* `external-analyze` → Hyper's external JSON executing plan (`FORMAT JSON, ANALYZE`). * `steps` → optimizer internals: * Hyper: `EXPLAIN (FORMAT INTERNAL, OPTIMIZE STEPS)`. * DuckDB: logical, optimized, and physical plans from `explain_output='all'`. diff --git a/plan-dumper/dump-plans.py b/plan-dumper/dump-plans.py index 2f077e1c..9f99be43 100644 --- a/plan-dumper/dump-plans.py +++ b/plan-dumper/dump-plans.py @@ -44,7 +44,7 @@ def parse_unsupported(sql): return {db.strip().lower() for db in match.group(1).split(",")} -# A `-- MODES: simple, analyze, pipelines` comment anywhere in a query file lists the +# A `-- MODES: simple, analyze, external-analyze, pipelines` comment anywhere in a query file lists the # EXPLAIN modes to dump it under (one output file per mode); defaults to `analyze` alone # when absent, since that's what most queries want. modes_re = re.compile(r"^--\s*MODES:\s*(.+)$", re.MULTILINE | re.IGNORECASE) @@ -341,6 +341,7 @@ def get_plan(sql, mode): "simple": "FORMAT INTERNAL", "steps": "FORMAT INTERNAL, OPTIMIZE STEPS", "analyze": "FORMAT INTERNAL, ANALYZE", + "external-analyze": "FORMAT JSON, ANALYZE, EXPAND_VIEWS true", "pipelines": ( "FORMAT INTERNAL, PIPELINES, EXPAND_VIEWS true, EXPRESSIONS SQL" ), diff --git a/plan-dumper/queries/tpch/tpch-q1.sql b/plan-dumper/queries/tpch/tpch-q1.sql index 9cd34baa..dd83eb46 100644 --- a/plan-dumper/queries/tpch/tpch-q1.sql +++ b/plan-dumper/queries/tpch/tpch-q1.sql @@ -1,3 +1,4 @@ +-- MODES: analyze, external-analyze -- This query is derived from TPC-H query 1 -- THE TPC SOFTWARE IS AVAILABLE WITHOUT CHARGE FROM TPC. diff --git a/standalone-app/examples/hyper/cte-analyze.plan.json b/standalone-app/examples/hyper/cte-analyze.plan.json index 52c4980e..9e741c1a 100644 --- a/standalone-app/examples/hyper/cte-analyze.plan.json +++ b/standalone-app/examples/hyper/cte-analyze.plan.json @@ -1,57 +1,58 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 256, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["union", ["Integer"]]}, {"expression": "iuref", "iu": ["union2", ["BigNumeric", 38, 2]]}, {"expression": "iuref", "iu": ["union3", ["Numeric", 16, 6]]}], + "output": [{"expression": "iu-ref", "iu": ["union", ["Integer"]]}, {"expression": "iu-ref", "iu": ["union2", ["BigNumeric", 38, 2]]}, {"expression": "iu-ref", "iu": ["union3", ["Numeric", 16, 6]]}], "output-names": ["l_orderkey", "sum", "avg"], "inputs": [{ - "operator": "unionall", + "operator": "union-all", "operator-id": 2, - "sqlpos": [[183, 192]], + "sqlpos": [[165, 174]], "estimated-rows": 256, "inputs": [{ - "operator": "explicitscan", + "operator": "explicit-scan", "operator-id": 3, "estimated-rows": 128, - "mapping": [{"source": {"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, "target": ["GroupByKey2", ["Integer"]]}, {"source": {"expression": "iuref", "iu": ["avg", ["Numeric", 16, 6]]}, "target": ["avg2", ["Numeric", 16, 6]]}, {"source": {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}, "target": ["sum2", ["BigNumeric", 38, 2]]}], + "mapping": [{"source": {"expression": "iu-ref", "iu": ["GroupByKey", ["Integer"]]}, "target": ["GroupByKey2", ["Integer"]]}, {"source": {"expression": "iu-ref", "iu": ["avg", ["Numeric", 16, 6]]}, "target": ["avg2", ["Numeric", 16, 6]]}, {"source": {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 2]]}, "target": ["sum2", ["BigNumeric", 38, 2]]}], "input": { - "operator": "groupby", + "operator": "group-by", "operator-id": 4, - "sqlpos": [[143, 162], [85, 100], [102, 122]], + "sqlpos": [[125, 144], [67, 82], [84, 104]], "estimated-rows": 128, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 5, - "sqlpos": [[131, 139]], + "sqlpos": [[113, 121]], "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "selectivity": 1, - "statistics": {"pipeline": 3, "column-count": 3, "cpu-cycles": 7949, "output-rows": 572, "processed-rows": 572, "running": false} + "statistics": {"pipeline": 3, "column-count": 3, "cpu-cycles": 67662, "output-rows": 572, "processed-rows": 572, "running": false} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_orderkey"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_orderkey"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}, {"value": {"expression": "iuref", "iu": "scan_extended"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_quantity"}}, {"value": {"expression": "iu-ref", "iu": "scan_extended"}}], "aggregates": [{"source": 1, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6]]}, {"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2]]}], "statistics": {"pipeline": 2, "column-count": 3, "cpu-cycles": 0, "memory-bytes": 18552, "output-rows": 0, "running": false} }, - "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 494, "output-rows": 128, "running": false} + "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 55087, "output-rows": 128, "running": false} }, { - "operator": "explicitscan", + "operator": "explicit-scan", "operator-id": 6, "estimated-rows": 128, - "mapping": [{"source": {"expression": "iuref", "iu": "GroupByKey"}, "target": ["GroupByKey3", ["Integer"]]}, {"source": {"expression": "iuref", "iu": "avg"}, "target": ["avg3", ["Numeric", 16, 6]]}, {"source": {"expression": "iuref", "iu": "sum"}, "target": ["sum3", ["BigNumeric", 38, 2]]}], + "mapping": [{"source": {"expression": "iu-ref", "iu": "GroupByKey"}, "target": ["GroupByKey3", ["Integer"]]}, {"source": {"expression": "iu-ref", "iu": "avg"}, "target": ["avg3", ["Numeric", 16, 6]]}, {"source": {"expression": "iu-ref", "iu": "sum"}, "target": ["sum3", ["BigNumeric", 38, 2]]}], "input": 4, - "statistics": {"pipeline": 4, "column-count": 3, "cpu-cycles": 176, "output-rows": 128, "running": false} + "statistics": {"pipeline": 4, "column-count": 3, "cpu-cycles": 47088, "output-rows": 128, "running": false} }], "ius": [["union", ["Integer"]], ["union2", ["BigNumeric", 38, 2]], ["union3", ["Numeric", 16, 6]]], - "values": [[{"expression": "iuref", "iu": "GroupByKey2"}, {"expression": "iuref", "iu": "sum2"}, {"expression": "iuref", "iu": "avg2"}], [{"expression": "iuref", "iu": "GroupByKey3"}, {"expression": "iuref", "iu": "sum3"}, {"expression": "iuref", "iu": "avg3"}]], + "values": [[{"expression": "iu-ref", "iu": "GroupByKey2"}, {"expression": "iu-ref", "iu": "sum2"}, {"expression": "iu-ref", "iu": "avg2"}], [{"expression": "iu-ref", "iu": "GroupByKey3"}, {"expression": "iu-ref", "iu": "sum3"}, {"expression": "iu-ref", "iu": "avg3"}]], "collates": [null, null, null], "statistics": {"pipeline": 0, "column-count": 3, "output-rows": 256} }], diff --git a/standalone-app/examples/hyper/cte-recursive-analyze.plan.json b/standalone-app/examples/hyper/cte-recursive-analyze.plan.json index efd2519f..fdb8e582 100644 --- a/standalone-app/examples/hyper/cte-recursive-analyze.plan.json +++ b/standalone-app/examples/hyper/cte-recursive-analyze.plan.json @@ -1,26 +1,26 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 11, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["map", ["Integer"]]}], + "output": [{"expression": "iu-ref", "iu": ["map", ["Integer"]]}], "output-names": ["i"], "inputs": [{ "operator": "iteration", "operator-id": 2, "estimated-rows": 11, "result-ius": [["map", ["Integer"]]], - "left-values": [{"expression": "iuref", "iu": ["map2", ["Integer"]]}], - "right-values": [{"expression": "iuref", "iu": ["map3", ["Integer"]]}], + "left-values": [{"expression": "iu-ref", "iu": ["map2", ["Integer"]]}], + "right-values": [{"expression": "iu-ref", "iu": ["map3", ["Integer"]]}], "union-all": true, "inputs": [{ - "operator": "tableconstruction", + "operator": "table-construction", "operator-id": 3, "estimated-rows": 1, "output": [["map2", ["Integer"]]], "values": [[{"expression": "const", "value": {"type": ["Integer"], "value": 1}}]], "inputs": [], - "statistics": {"pipeline": 1, "column-count": 1, "cpu-cycles": 16917, "output-rows": 1, "running": false} + "statistics": {"pipeline": 1, "column-count": 1, "cpu-cycles": 12699, "output-rows": 1, "running": false} }, { "operator": "map", "operator-id": 4, @@ -32,23 +32,23 @@ "sqlpos": [[117, 123]], "estimated-rows": 1, "inputs": [{ - "operator": "iterationincrement", + "operator": "iteration-increment", "operator-id": 6, "sqlpos": [[109, 110]], "estimated-rows": 1, "values": [["map_increment", ["Integer"]]], "source": 2, - "statistics": {"pipeline": 2, "column-count": 1, "cpu-cycles": 32438754, "output-rows": 10, "running": false} + "statistics": {"pipeline": 2, "column-count": 1, "cpu-cycles": 18063162, "output-rows": 10, "running": false} }], - "condition": {"expression": "comparison", "mode": "<", "left": {"expression": "iuref", "iu": "map_increment"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 10}}}, + "condition": {"expression": "comparison", "mode": "<", "left": {"expression": "iu-ref", "iu": "map_increment"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 10}}}, "statistics": {"pipeline": 2, "column-count": 1, "output-rows": 9} }], - "values": [{"iu": ["map3", ["Integer"]], "value": {"expression": "add", "left": {"expression": "iuref", "iu": "map_increment"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 1}}}}], + "values": [{"iu": ["map3", ["Integer"]], "value": {"expression": "add", "left": {"expression": "iu-ref", "iu": "map_increment"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 1}}}}], "statistics": {"pipeline": 2, "column-count": 1, "output-rows": 9} }], "collates": [null], "algorithm": "materializing", - "statistics": {"pipeline": 0, "column-count": 1, "cpu-cycles": 18972021, "output-rows": 10, "running": false} + "statistics": {"pipeline": 0, "column-count": 1, "cpu-cycles": 14870526, "output-rows": 10, "running": false} }], "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/forkshare-pipelines.plan.json b/standalone-app/examples/hyper/forkshare-pipelines.plan.json index d94a7bc4..803dfe1d 100644 --- a/standalone-app/examples/hyper/forkshare-pipelines.plan.json +++ b/standalone-app/examples/hyper/forkshare-pipelines.plan.json @@ -1,45 +1,46 @@ { "tree": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["min", ["Integer", "nullable"]]}, {"expression": "iuref", "iu": ["max", ["Integer", "nullable"]]}], + "output": [{"expression": "iu-ref", "iu": ["min", ["Integer", "nullable"]]}, {"expression": "iu-ref", "iu": ["max", ["Integer", "nullable"]]}], "output-names": ["mn", "mx"], "inputs": [{ - "operator": "fullouterjoin", + "operator": "full-outer-join", "operator-id": 2, "estimated-rows": 1, "method": "hash", "single-match": true, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[375, 382]], + "sqlpos": [[395, 402]], "estimated-rows": 1, "inputs": [{ - "operator": "explicitscan", + "operator": "explicit-scan", "operator-id": 4, - "sqlpos": [[394, 395]], + "sqlpos": [[414, 415]], "estimated-rows": 1000, - "mapping": [{"source": {"expression": "iuref", "iu": ["scan_a1", ["Integer"]]}, "target": ["scan_a12", ["Integer"]]}], + "mapping": [{"source": {"expression": "iu-ref", "iu": ["scan_a1", ["Integer"]]}, "target": ["scan_a12", ["Integer"]]}], "input": { "operator": "share", "operator-id": 5, - "sqlpos": [[315, 316]], + "sqlpos": [[335, 336]], "estimated-rows": 1000, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 6, - "sqlpos": [[336, 338]], + "sqlpos": [[356, 358]], "estimated-rows": 1000, "volatility": "stable", "relation-id": 0, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]},{"col-id": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b1", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "t1"}, - "restrictions": [{"expression": "sql", "sql": "\"scan_b1\" < CAST('5' AS INTEGER)", "arguments": [{"expression": "iuref", "iu": "scan_b1"}], "type": ["Bool"]}], + "restrictions": [{"expression": "sql", "sql": "\"scan_b1\" < CAST('5' AS INTEGER)", "arguments": [{"expression": "iu-ref", "iu": "scan_b1"}], "type": ["Bool"]}], "selectivity": 0.5 }], "strategy": "fork" @@ -47,28 +48,28 @@ }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_a12"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_a12"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Integer", "nullable"]]}] }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 7, - "sqlpos": [[421, 428]], + "sqlpos": [[441, 448]], "estimated-rows": 1, "inputs": [{ - "operator": "explicitscan", + "operator": "explicit-scan", "operator-id": 8, - "sqlpos": [[440, 441]], + "sqlpos": [[460, 461]], "estimated-rows": 1000, - "mapping": [{"source": {"expression": "iuref", "iu": "scan_a1"}, "target": ["scan_a13", ["Integer"]]}], + "mapping": [{"source": {"expression": "iu-ref", "iu": "scan_a1"}, "target": ["scan_a13", ["Integer"]]}], "input": 5 }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_a13"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_a13"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "max"}, "iu": ["max", ["Integer", "nullable"]]}] }], - "condition": {"expression": "sql", "sql": "\"min\" = \"max\"", "arguments": [{"expression": "iuref", "iu": "max"}, {"expression": "iuref", "iu": "min"}], "type": ["Bool", "nullable"]}, - "predicates": [{"left": {"expression": "iuref", "iu": "min"}, "right": {"expression": "iuref", "iu": "max"}, "comparison": "="}] + "condition": {"expression": "sql", "sql": "\"min\" = \"max\"", "arguments": [{"expression": "iu-ref", "iu": "max"}, {"expression": "iu-ref", "iu": "min"}], "type": ["Bool", "nullable"]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "max"}, "comparison": "="}] }] }, "pipelines": [ diff --git a/standalone-app/examples/hyper/groupby-analyze.plan.json b/standalone-app/examples/hyper/groupby-analyze.plan.json index 8cbae7d4..ca7ac1a4 100644 --- a/standalone-app/examples/hyper/groupby-analyze.plan.json +++ b/standalone-app/examples/hyper/groupby-analyze.plan.json @@ -1,35 +1,36 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 3, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char1"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}, {"expression": "iuref", "iu": ["avg", ["Numeric", 16, 6]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Char1"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 2]]}, {"expression": "iu-ref", "iu": ["avg", ["Numeric", 16, 6]]}], "output-names": ["l_returnflag", "sum", "avg"], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 2, - "sqlpos": [[121, 142], [74, 89], [91, 106]], + "sqlpos": [[103, 124], [56, 71], [73, 88]], "estimated-rows": 3, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 3, - "sqlpos": [[112, 120]], + "sqlpos": [[94, 102]], "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"col-id": 8, "name": "l_returnflag", "type": ["Char1"], "iu": ["scan_returnfl", ["Char1"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "selectivity": 1, - "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 7537, "output-rows": 572, "processed-rows": 572, "running": false} + "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 43476, "output-rows": 572, "processed-rows": 572, "running": false} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_returnfl"}}, "iu": ["GroupByKey", ["Char1"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_returnfl"}}, "iu": ["GroupByKey", ["Char1"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}, {"value": {"expression": "iuref", "iu": "scan_discount"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_quantity"}}, {"value": {"expression": "iu-ref", "iu": "scan_discount"}}], "aggregates": [{"source": 1, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6]]}, {"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2]]}], - "statistics": {"pipeline": 0, "column-count": 3, "cpu-cycles": 4723, "memory-bytes": 18552, "output-rows": 3, "running": false} + "statistics": {"pipeline": 0, "column-count": 3, "cpu-cycles": 10542, "memory-bytes": 18552, "output-rows": 3, "running": false} }], "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/insert.plan.json b/standalone-app/examples/hyper/insert.plan.json index 74bb22d0..951e787c 100644 --- a/standalone-app/examples/hyper/insert.plan.json +++ b/standalone-app/examples/hyper/insert.plan.json @@ -1,53 +1,56 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 4000, + "estimated-rows": 4000, "produces-rows": false, "output": [], "output-names": [], "inputs": [{ "operator": "insert", "operator-id": 2, - "cardinality": 4000, + "estimated-rows": 4000, "volatility": "volatile", "relation-id": 1, "schema": {"type":"sessionschema"}, "output": [["cast", ["Integer", "nullable"]], ["cast2", ["Integer", "nullable"]], ["cast3", ["Integer", "nullable"]]], - "values": [{"expression": "cast", "value": {"expression": "iuref", "iu": ["map", ["Integer"]]}, "type": ["Integer", "nullable"], "error-handling": "trap", "allowTrustedCasts": false}, {"expression": "cast", "value": {"expression": "iuref", "iu": ["map2", ["Integer"]]}, "type": ["Integer", "nullable"], "error-handling": "trap", "allowTrustedCasts": false}, {"expression": "cast", "value": {"expression": "iuref", "iu": ["map3", ["Integer"]]}, "type": ["Integer", "nullable"], "error-handling": "trap", "allowTrustedCasts": false}], + "values": [{"expression": "cast", "value": {"expression": "iu-ref", "iu": ["map", ["Integer"]]}, "type": ["Integer", "nullable"], "error-handling": "trap"}, {"expression": "cast", "value": {"expression": "iu-ref", "iu": ["map2", ["Integer"]]}, "type": ["Integer", "nullable"], "error-handling": "trap"}, {"expression": "cast", "value": {"expression": "iu-ref", "iu": ["map3", ["Integer"]]}, "type": ["Integer", "nullable"], "error-handling": "trap"}], "inputs": [{ "operator": "map", "operator-id": 3, - "sqlpos": [[44, 48]], - "cardinality": 4000, + "sqlpos": [[170, 174]], + "estimated-rows": 4000, "inputs": [{ "operator": "join", "operator-id": 4, - "cardinality": 4000, + "estimated-rows": 4000, "method": "bnl", "inputs": [{ - "operator": "tableconstruction", + "operator": "table-construction", "operator-id": 5, - "sqlpos": [[71, 80]], - "cardinality": 2, - "output": [["tableconstruction", ["Integer"]]], + "sqlpos": [[197, 206]], + "estimated-rows": 2, + "output": [["table-construction", ["Integer"]]], "values": [[{"expression": "const", "value": {"type": ["Integer"], "value": 1}}], [{"expression": "const", "value": {"type": ["Integer"], "value": 2}}]], "inputs": [] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 6, - "sqlpos": [[66, 68]], - "cardinality": 2000, + "sqlpos": [[192, 194]], + "estimated-rows": 2000, "volatility": "stable", "relation-id": 0, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]},{"col-id": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b1", ["Integer"]]},{"col-id": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c1", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "t1"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }], - "values": [{"iu": ["map", ["Integer"]], "value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_a1"}, "right": {"expression": "iuref", "iu": "tableconstruction"}}}, {"iu": ["map2", ["Integer"]], "value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_b1"}, "right": {"expression": "iuref", "iu": "tableconstruction"}}}, {"iu": ["map3", ["Integer"]], "value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_c1"}, "right": {"expression": "iuref", "iu": "tableconstruction"}}}] + "values": [{"iu": ["map", ["Integer"]], "value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "scan_a1"}, "right": {"expression": "iu-ref", "iu": "table-construction"}}}, {"iu": ["map2", ["Integer"]], "value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "scan_b1"}, "right": {"expression": "iu-ref", "iu": "table-construction"}}}, {"iu": ["map3", ["Integer"]], "value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "scan_c1"}, "right": {"expression": "iu-ref", "iu": "table-construction"}}}] }], "tid": ["tid", ["Numeric", 18]], "table-oid": ["tableOid", ["RegClass"]], diff --git a/standalone-app/examples/hyper/magicunnesting-analyze.plan.json b/standalone-app/examples/hyper/magicunnesting-analyze.plan.json index ce3f29ff..8d2341cf 100644 --- a/standalone-app/examples/hyper/magicunnesting-analyze.plan.json +++ b/standalone-app/examples/hyper/magicunnesting-analyze.plan.json @@ -1,32 +1,33 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 174.904, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_orderkey", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2, "nullable"]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_orderkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 2, "nullable"]]}], "output-names": ["o_orderkey", "2"], "inputs": [{ - "operator": "leftouterjoin", + "operator": "left-outer-join", "operator-id": 2, "estimated-rows": 174.904, "method": "hash", "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 3, - "sqlpos": [[310, 316]], + "sqlpos": [[329, 335]], "estimated-rows": 128, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 3, "name": "o_totalprice", "type": ["Numeric", 12, 2], "iu": ["scan_totalpri", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, "selectivity": 1, - "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 77, "output-rows": 128, "processed-rows": 128, "running": false} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 39060, "output-rows": 128, "processed-rows": 128, "running": false} }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 4, - "sqlpos": [[237, 252]], + "sqlpos": [[256, 271]], "estimated-rows": 128, "inputs": [{ "operator": "join", @@ -34,50 +35,51 @@ "estimated-rows": 36608, "method": "bnl", "inputs": [{ - "operator": "explicitscan", + "operator": "explicit-scan", "operator-id": 6, "estimated-rows": 128, - "mapping": [{"source": {"expression": "iuref", "iu": ["GroupByKey", ["Numeric", 12, 2]]}, "target": ["GroupByKey2", ["Numeric", 12, 2]]}], + "mapping": [{"source": {"expression": "iu-ref", "iu": ["GroupByKey", ["Numeric", 12, 2]]}, "target": ["GroupByKey2", ["Numeric", 12, 2]]}], "input": { - "operator": "groupby", + "operator": "group-by", "operator-id": 7, "estimated-rows": 128, "inputs": [], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_totalpri"}}, "iu": ["GroupByKey", ["Numeric", 12, 2]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_totalpri"}}, "iu": ["GroupByKey", ["Numeric", 12, 2]]}], "grouping-sets": [{"key-indices": [0], "core-indices": null, "behavior": "regular"}], "empty-groups": false, "aggregates": [], "statistics": {"pipeline": 4, "column-count": 1, "cpu-cycles": 0, "memory-bytes": 18552, "output-rows": 0, "running": false} }, - "statistics": {"pipeline": 3, "column-count": 1, "cpu-cycles": 47, "output-rows": 128, "running": false} + "statistics": {"pipeline": 3, "column-count": 1, "cpu-cycles": 9905, "output-rows": 128, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[258, 266]], + "sqlpos": [[277, 285]], "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "selectivity": 1, - "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 6640, "output-rows": 572, "processed-rows": 572, "running": false} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 1983183, "output-rows": 572, "processed-rows": 572, "running": false} }], - "condition": {"expression": "comparison", "mode": "<", "left": {"expression": "iuref", "iu": "scan_extended"}, "right": {"expression": "iuref", "iu": "GroupByKey2"}}, - "predicates": [{"left": {"expression": "iuref", "iu": "GroupByKey2"}, "right": {"expression": "iuref", "iu": "scan_extended"}, "comparison": ">"}], + "condition": {"expression": "comparison", "mode": "<", "left": {"expression": "iu-ref", "iu": "scan_extended"}, "right": {"expression": "iu-ref", "iu": "GroupByKey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "GroupByKey2"}, "right": {"expression": "iu-ref", "iu": "scan_extended"}, "comparison": ">"}], "statistics": {"pipeline": 2, "column-count": 2, "memory-bytes": 18552, "output-rows": 67181} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "GroupByKey2"}}, "iu": ["GroupByKey3", ["Numeric", 12, 2]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "GroupByKey2"}}, "iu": ["GroupByKey3", ["Numeric", 12, 2]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_quantity"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2, "nullable"]]}], - "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 146, "memory-bytes": 18552, "output-rows": 128, "running": false} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 37012, "memory-bytes": 18552, "output-rows": 128, "running": false} }], - "condition": {"expression": "comparison", "mode": "is", "left": {"expression": "iuref", "iu": "scan_totalpri"}, "right": {"expression": "iuref", "iu": "GroupByKey3"}}, + "condition": {"expression": "comparison", "mode": "is", "left": {"expression": "iu-ref", "iu": "scan_totalpri"}, "right": {"expression": "iu-ref", "iu": "GroupByKey3"}}, "magic": 7, - "predicates": [{"left": {"expression": "iuref", "iu": "scan_totalpri"}, "right": {"expression": "iuref", "iu": "GroupByKey3"}, "comparison": "is"}], + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_totalpri"}, "right": {"expression": "iu-ref", "iu": "GroupByKey3"}, "comparison": "is"}], "statistics": {"pipeline": 0, "column-count": 2, "memory-bytes": 18560, "output-rows": 128} }], "statistics": {"error": null, "pipeline": 0, "column-count": 0} diff --git a/standalone-app/examples/hyper/magicunnesting-pipelines.plan.json b/standalone-app/examples/hyper/magicunnesting-pipelines.plan.json index dd5bd82c..7ea1980e 100644 --- a/standalone-app/examples/hyper/magicunnesting-pipelines.plan.json +++ b/standalone-app/examples/hyper/magicunnesting-pipelines.plan.json @@ -14,7 +14,7 @@ "inputs": [{ "operator": "table-scan", "operator-id": 3, - "sqlpos": [[348, 354]], + "sqlpos": [[367, 373]], "estimated-rows": 128, "volatility": "stable", "relation-id": 6, @@ -27,7 +27,7 @@ }, { "operator": "group-by", "operator-id": 4, - "sqlpos": [[275, 290]], + "sqlpos": [[294, 309]], "estimated-rows": 128, "inputs": [{ "operator": "join", @@ -52,7 +52,7 @@ }, { "operator": "table-scan", "operator-id": 8, - "sqlpos": [[296, 304]], + "sqlpos": [[315, 323]], "estimated-rows": 572, "volatility": "stable", "relation-id": 7, diff --git a/standalone-app/examples/hyper/markjoin-analyze.plan.json b/standalone-app/examples/hyper/markjoin-analyze.plan.json index 79cf1fb6..570149d5 100644 --- a/standalone-app/examples/hyper/markjoin-analyze.plan.json +++ b/standalone-app/examples/hyper/markjoin-analyze.plan.json @@ -1,48 +1,50 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 518, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_suppkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_nationke", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}, {"expression": "iuref", "iu": ["joinMarker", ["Bool"]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_suppkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_nationke", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}, {"expression": "iu-ref", "iu": ["joinMarker", ["Bool"]]}], "output-names": ["s_suppkey", "s_name", "s_address", "s_nationkey", "s_phone", "s_acctbal", "s_comment", "2"], "inputs": [{ - "operator": "leftmarkjoin", + "operator": "left-mark-join", "operator-id": 2, "estimated-rows": 518, "method": "hash", "compute-left-bounds": [0, 1], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 3, - "sqlpos": [[159, 167]], + "sqlpos": [[141, 149]], "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, "selectivity": 1, - "statistics": {"pipeline": 1, "column-count": 7, "cpu-cycles": 349, "output-rows": 518, "processed-rows": 518, "running": false} + "statistics": {"pipeline": 1, "column-count": 7, "cpu-cycles": 119337, "output-rows": 518, "processed-rows": 518, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[85, 93]], + "sqlpos": [[67, 75]], "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 2, "attributes": [1, 3], "num-equality-predicates": 1, "selectivities": [1, null], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 2, "attributes": [1, 3], "num-equality-predicates": 1, "selectivities": [1, null], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 9207, "output-rows": 537, "processed-rows": 537, "running": false} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 81204, "output-rows": 537, "processed-rows": 537, "running": false} }], "early-probed-by": [4], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey2"}, "right": {"expression": "iuref", "iu": "scan_suppkey"}}, {"expression": "comparison", "mode": "<", "left": {"expression": "iuref", "iu": "scan_acctbal"}, "right": {"expression": "iuref", "iu": "scan_supplyco"}}]}, + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey"}}, {"expression": "comparison", "mode": "<", "left": {"expression": "iu-ref", "iu": "scan_acctbal"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco"}}]}, "marker": ["joinMarker", ["Bool"]], - "predicates": [{"left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}, "comparison": "="}, {"left": {"expression": "iuref", "iu": "scan_acctbal"}, "right": {"expression": "iuref", "iu": "scan_supplyco"}, "comparison": "<"}], + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_acctbal"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco"}, "comparison": "<"}], "statistics": {"pipeline": 0, "column-count": 8, "memory-bytes": 94576, "output-rows": 518} }], "statistics": {"error": null, "pipeline": 0, "column-count": 0} diff --git a/standalone-app/examples/hyper/materialized-pipelines.plan.json b/standalone-app/examples/hyper/materialized-pipelines.plan.json index 718941cf..243c3aa7 100644 --- a/standalone-app/examples/hyper/materialized-pipelines.plan.json +++ b/standalone-app/examples/hyper/materialized-pipelines.plan.json @@ -1,10 +1,10 @@ { "tree": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 10000, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_a1", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_a12", ["Integer"]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_a1", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_a12", ["Integer"]]}], "output-names": ["a1", "a1"], "inputs": [{ "operator": "join", @@ -12,42 +12,43 @@ "estimated-rows": 10000, "method": "hash", "inputs": [{ - "operator": "explicitscan", + "operator": "explicit-scan", "operator-id": 3, - "sqlpos": [[408, 409]], + "sqlpos": [[428, 429]], "estimated-rows": 1000, - "mapping": [{"source": {"expression": "iuref", "iu": ["scan_a13", ["Integer"]]}, "target": ["scan_a12", ["Integer"]]}], + "mapping": [{"source": {"expression": "iu-ref", "iu": ["scan_a13", ["Integer"]]}, "target": ["scan_a12", ["Integer"]]}], "input": { "operator": "share", "operator-id": 4, - "sqlpos": [[347, 348]], + "sqlpos": [[367, 368]], "estimated-rows": 1000, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 5, - "sqlpos": [[368, 370]], + "sqlpos": [[388, 390]], "estimated-rows": 1000, "volatility": "stable", "relation-id": 0, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a13", ["Integer"]]},{"col-id": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b1", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "t1"}, - "restrictions": [{"expression": "sql", "sql": "\"scan_b1\" < CAST('5' AS INTEGER)", "arguments": [{"expression": "iuref", "iu": "scan_b1"}], "type": ["Bool"]}], + "restrictions": [{"expression": "sql", "sql": "\"scan_b1\" < CAST('5' AS INTEGER)", "arguments": [{"expression": "iu-ref", "iu": "scan_b1"}], "type": ["Bool"]}], "selectivity": 0.5 }], "strategy": "materialize" } }, { - "operator": "explicitscan", + "operator": "explicit-scan", "operator-id": 6, - "sqlpos": [[399, 400]], + "sqlpos": [[419, 420]], "estimated-rows": 1000, - "mapping": [{"source": {"expression": "iuref", "iu": "scan_a13"}, "target": ["scan_a1", ["Integer"]]}], + "mapping": [{"source": {"expression": "iu-ref", "iu": "scan_a13"}, "target": ["scan_a1", ["Integer"]]}], "input": 4 }], - "condition": {"expression": "sql", "sql": "\"scan_a1\" = \"scan_a12\"", "arguments": [{"expression": "iuref", "iu": "scan_a1"}, {"expression": "iuref", "iu": "scan_a12"}], "type": ["Bool"]}, - "predicates": [{"left": {"expression": "iuref", "iu": "scan_a12"}, "right": {"expression": "iuref", "iu": "scan_a1"}, "comparison": "="}] + "condition": {"expression": "sql", "sql": "\"scan_a1\" = \"scan_a12\"", "arguments": [{"expression": "iu-ref", "iu": "scan_a1"}, {"expression": "iu-ref", "iu": "scan_a12"}], "type": ["Bool"]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_a12"}, "right": {"expression": "iu-ref", "iu": "scan_a1"}, "comparison": "="}] }] }, "pipelines": [ diff --git a/standalone-app/examples/hyper/metadata-describe-table.plan.json b/standalone-app/examples/hyper/metadata-describe-table.plan.json index a455ed42..2dae5678 100644 --- a/standalone-app/examples/hyper/metadata-describe-table.plan.json +++ b/standalone-app/examples/hyper/metadata-describe-table.plan.json @@ -1,27 +1,28 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1.36603, + "estimated-rows": 1.36603, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["c.relcheck", ["SmallInt"]]}, {"expression": "iuref", "iu": ["c.relkind", ["Char1"]]}, {"expression": "iuref", "iu": ["c.relhasin", ["Bool"]]}, {"expression": "iuref", "iu": ["c.relhasru", ["Bool"]]}, {"expression": "iuref", "iu": ["c.relhastr", ["Bool"]]}, {"expression": "const", "value": {"type": ["Bool"], "value": false}}, {"expression": "iuref", "iu": ["c.reltable", ["Oid"]]}, {"expression": "iuref", "iu": ["map", ["Varchar"]]}, {"expression": "iuref", "iu": ["c.relpersi", ["Char1"]]}], + "output": [{"expression": "iu-ref", "iu": ["c.relcheck", ["SmallInt"]]}, {"expression": "iu-ref", "iu": ["c.relkind", ["Char1"]]}, {"expression": "iu-ref", "iu": ["c.relhasin", ["Bool"]]}, {"expression": "iu-ref", "iu": ["c.relhasru", ["Bool"]]}, {"expression": "iu-ref", "iu": ["c.relhastr", ["Bool"]]}, {"expression": "const", "value": {"type": ["Bool"], "value": false}}, {"expression": "iu-ref", "iu": ["c.reltable", ["Oid"]]}, {"expression": "iu-ref", "iu": ["map", ["Varchar"]]}, {"expression": "iu-ref", "iu": ["c.relpersi", ["Char1"]]}], "output-names": ["relchecks", "relkind", "relhasindex", "relhasrules", "relhastriggers", "relispartition", "reltablespace", "case", "relpersistence"], "inputs": [{ "operator": "map", "operator-id": 2, - "sqlpos": [[29, 40]], - "cardinality": 1.36603, + "sqlpos": [[253, 264]], + "estimated-rows": 1.36603, "inputs": [{ - "operator": "leftouterjoin", + "operator": "left-outer-join", "operator-id": 3, - "cardinality": 1.36603, + "estimated-rows": 1.36603, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "virtualtable", + "operator": "virtual-table", "operator-id": 4, - "sqlpos": [[279, 298]], - "cardinality": 1, + "sqlpos": [[503, 522]], + "estimated-rows": 1, "volatility": "volatile", + "scan-type": "virtual-table", "attribute-count": 27, "attributes": [{"col-id": 0, "name": "oid", "type": ["Oid"], "iu": ["c.oid", ["Oid"]]},{"col-id": 4, "name": "reloftype", "type": ["Oid"], "iu": ["c.reloftyp", ["Oid"]]},{"col-id": 8, "name": "reltablespace", "type": ["Oid"], "iu": ["c.reltable", ["Oid"]]},{"col-id": 11, "name": "reltoastrelid", "type": ["Oid"], "iu": ["c.reltoast", ["Oid"]]},{"col-id": 13, "name": "relhasindex", "type": ["Bool"], "iu": ["c.relhasin", ["Bool"]]},{"col-id": 15, "name": "relpersistence", "type": ["Char1"], "iu": ["c.relpersi", ["Char1"]]},{"col-id": 16, "name": "relkind", "type": ["Char1"], "iu": ["c.relkind", ["Char1"]]},{"col-id": 18, "name": "relchecks", "type": ["SmallInt"], "iu": ["c.relcheck", ["SmallInt"]]},{"col-id": 21, "name": "relhasrules", "type": ["Bool"], "iu": ["c.relhasru", ["Bool"]]},{"col-id": 22, "name": "relhastriggers", "type": ["Bool"], "iu": ["c.relhastr", ["Bool"]]}], "debug-name": {"classification": "nonsensitive", "value": "c"}, @@ -29,21 +30,23 @@ "schema": {"type":"builtinschema"}, "id": 1259 }, { - "operator": "virtualtable", + "operator": "virtual-table", "operator-id": 5, - "sqlpos": [[311, 330]], - "cardinality": 100, + "sqlpos": [[535, 554]], + "estimated-rows": 100, "volatility": "volatile", + "scan-type": "virtual-table", "attribute-count": 27, "attributes": [{"col-id": 0, "name": "oid", "type": ["Oid"], "iu": ["tc.oid", ["Oid", "nullable"]]}], "debug-name": {"classification": "nonsensitive", "value": "tc"}, - "early-probes": [{"builder": 3, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.01], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 3, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.01], "type": "hash-probe", "pass-on-nulls": false}], "schema": {"type":"builtinschema"}, "id": 1259 }], "early-probed-by": [5], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "c.reltoast"}, "right": {"expression": "iuref", "iu": "tc.oid"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "c.reltoast"}, "right": {"expression": "iu-ref", "iu": "tc.oid"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "c.reltoast"}, "right": {"expression": "iu-ref", "iu": "tc.oid"}, "comparison": "="}] }], - "values": [{"iu": ["map", ["Varchar"]], "value": {"expression": "simplecase", "value": {"expression": "iuref", "iu": "c.reloftyp"}, "cases": [{"cases": [{"expression": "const", "value": {"type": ["Integer"], "value": 0}}], "value": {"expression": "const", "value": {"type": ["Varchar"], "value": ""}}}], "else": {"expression": "cast", "value": {"expression": "cast", "value": {"expression": "iuref", "iu": "c.reloftyp"}, "type": ["RegType"], "error-handling": "trap", "allowTrustedCasts": false}, "type": ["Varchar"], "error-handling": "trap", "allowTrustedCasts": false}}}] + "values": [{"iu": ["map", ["Varchar"]], "value": {"expression": "simple-case", "value": {"expression": "iu-ref", "iu": "c.reloftyp"}, "cases": [{"cases": [{"expression": "const", "value": {"type": ["Integer"], "value": 0}}], "value": {"expression": "const", "value": {"type": ["Varchar"], "value": ""}}}], "else": {"expression": "cast", "value": {"expression": "cast", "value": {"expression": "iu-ref", "iu": "c.reloftyp"}, "type": ["RegType"], "error-handling": "trap"}, "type": ["Varchar"], "error-handling": "trap"}}}] }] } diff --git a/standalone-app/examples/hyper/setoperation-analyze.plan.json b/standalone-app/examples/hyper/setoperation-analyze.plan.json index 172cc159..bb35f910 100644 --- a/standalone-app/examples/hyper/setoperation-analyze.plan.json +++ b/standalone-app/examples/hyper/setoperation-analyze.plan.json @@ -1,106 +1,111 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 1183.1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["union", ["Integer"]]}, {"expression": "iuref", "iu": ["union2", ["Integer"]]}], + "output": [{"expression": "iu-ref", "iu": ["union", ["Integer"]]}, {"expression": "iu-ref", "iu": ["union2", ["Integer"]]}], "output-names": ["l_orderkey", "l_partkey"], "inputs": [{ - "operator": "unionall", + "operator": "union-all", "operator-id": 2, - "sqlpos": [[149, 158], [96, 105]], + "sqlpos": [[131, 140], [78, 87]], "estimated-rows": 1183.1, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 3, - "sqlpos": [[87, 95]], + "sqlpos": [[69, 77]], "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "selectivity": 1, - "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 330, "output-rows": 572, "processed-rows": 572, "running": false} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 114502, "output-rows": 572, "processed-rows": 572, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[140, 148]], + "sqlpos": [[122, 130]], "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "selectivity": 1, - "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 267, "output-rows": 572, "processed-rows": 572, "running": false} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 87540, "output-rows": 572, "processed-rows": 572, "running": false} }, { - "operator": "exceptall", + "operator": "except-all", "operator-id": 5, - "sqlpos": [[322, 332]], + "sqlpos": [[304, 314]], "estimated-rows": 39.0955, "inputs": [{ - "operator": "intersectall", + "operator": "intersect-all", "operator-id": 6, - "sqlpos": [[234, 247]], + "sqlpos": [[216, 229]], "estimated-rows": 55.3353, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 7, - "sqlpos": [[197, 205]], + "sqlpos": [[179, 187]], "estimated-rows": 286, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 4, "mode": "<", "value": {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2500}}}], "selectivity": 0.5, - "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 133, "output-rows": 286, "processed-rows": 572, "running": false} + "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 40953, "output-rows": 286, "processed-rows": 572, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[284, 292]], + "sqlpos": [[266, 274]], "estimated-rows": 286, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 4, "mode": ">=", "value": {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2500}}}], "selectivity": 0.5, - "statistics": {"pipeline": 6, "column-count": 2, "cpu-cycles": 133, "output-rows": 286, "processed-rows": 572, "running": false} + "statistics": {"pipeline": 6, "column-count": 2, "cpu-cycles": 54863, "output-rows": 286, "processed-rows": 572, "running": false} }], "ius": [["union3", ["Integer"]], ["union4", ["Integer"]]], - "values": [[{"expression": "iuref", "iu": "scan_suppkey2"}, {"expression": "iuref", "iu": "scan_partkey2"}], [{"expression": "iuref", "iu": "scan_suppkey3"}, {"expression": "iuref", "iu": "scan_partkey3"}]], + "values": [[{"expression": "iu-ref", "iu": "scan_suppkey2"}, {"expression": "iu-ref", "iu": "scan_partkey2"}], [{"expression": "iu-ref", "iu": "scan_suppkey3"}, {"expression": "iu-ref", "iu": "scan_partkey3"}]], "collates": [null, null], - "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 6546, "output-rows": 16, "running": false} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 1979405, "output-rows": 16, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[369, 377]], + "sqlpos": [[351, 359]], "estimated-rows": 286, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey4", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity3", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 4, "mode": ">=", "value": {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2500}}}], "selectivity": 0.5, - "statistics": {"pipeline": 7, "column-count": 2, "cpu-cycles": 96, "output-rows": 286, "processed-rows": 572, "running": false} + "statistics": {"pipeline": 7, "column-count": 2, "cpu-cycles": 34470, "output-rows": 286, "processed-rows": 572, "running": false} }], "ius": [["union5", ["Integer"]], ["union6", ["Integer"]]], - "values": [[{"expression": "iuref", "iu": "union3"}, {"expression": "iuref", "iu": "union4"}], [{"expression": "iuref", "iu": "scan_suppkey4"}, {"expression": "iuref", "iu": "scan_partkey4"}]], + "values": [[{"expression": "iu-ref", "iu": "union3"}, {"expression": "iu-ref", "iu": "union4"}], [{"expression": "iu-ref", "iu": "scan_suppkey4"}, {"expression": "iu-ref", "iu": "scan_partkey4"}]], "collates": [null, null], - "statistics": {"pipeline": 3, "column-count": 2, "cpu-cycles": 4340, "output-rows": 0, "running": false} + "statistics": {"pipeline": 3, "column-count": 2, "cpu-cycles": 1494633, "output-rows": 0, "running": false} }], "ius": [["union", ["Integer"]], ["union2", ["Integer"]]], - "values": [[{"expression": "iuref", "iu": "scan_orderkey"}, {"expression": "iuref", "iu": "scan_partkey"}], [{"expression": "iuref", "iu": "scan_orderkey2"}, {"expression": "iuref", "iu": "scan_suppkey"}], [{"expression": "iuref", "iu": "union5"}, {"expression": "iuref", "iu": "union6"}]], + "values": [[{"expression": "iu-ref", "iu": "scan_orderkey"}, {"expression": "iu-ref", "iu": "scan_partkey"}], [{"expression": "iu-ref", "iu": "scan_orderkey2"}, {"expression": "iu-ref", "iu": "scan_suppkey"}], [{"expression": "iu-ref", "iu": "union5"}, {"expression": "iu-ref", "iu": "union6"}]], "collates": [null, null], "statistics": {"pipeline": 0, "column-count": 2, "output-rows": 1144} }], diff --git a/standalone-app/examples/hyper/tableconstruction.plan.json b/standalone-app/examples/hyper/tableconstruction.plan.json index abf2d3ed..84500317 100644 --- a/standalone-app/examples/hyper/tableconstruction.plan.json +++ b/standalone-app/examples/hyper/tableconstruction.plan.json @@ -1,16 +1,16 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 2, + "estimated-rows": 2, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["tableconstruction", ["Varchar"]]}, {"expression": "iuref", "iu": ["tableconstruction2", ["Varchar"]]}], + "output": [{"expression": "iu-ref", "iu": ["table-construction", ["Varchar"]]}, {"expression": "iu-ref", "iu": ["table-construction2", ["Varchar"]]}], "output-names": ["column1", "column2"], "inputs": [{ - "operator": "tableconstruction", + "operator": "table-construction", "operator-id": 2, - "sqlpos": [[22, 38]], - "cardinality": 2, - "output": [["tableconstruction", ["Varchar"]], ["tableconstruction2", ["Varchar"]]], + "sqlpos": [[43, 59]], + "estimated-rows": 2, + "output": [["table-construction", ["Varchar"]], ["table-construction2", ["Varchar"]]], "values": [[{"expression": "const", "value": {"type": ["Varchar"], "value": "a"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "b"}}], [{"expression": "const", "value": {"type": ["Varchar"], "value": "c"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "d"}}]], "inputs": [] }] diff --git a/standalone-app/examples/hyper/tablefunction.plan.json b/standalone-app/examples/hyper/tablefunction.plan.json index f31c1958..947be0d0 100644 --- a/standalone-app/examples/hyper/tablefunction.plan.json +++ b/standalone-app/examples/hyper/tablefunction.plan.json @@ -1,19 +1,19 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 10, + "estimated-rows": 10, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["sequence", ["Integer"]]}], + "output": [{"expression": "iu-ref", "iu": ["sequence", ["Integer"]]}], "output-names": ["generate_series"], "inputs": [{ - "operator": "tablefunction", + "operator": "table-function", "operator-id": 2, - "sqlpos": [[36, 51]], - "cardinality": 10, + "sqlpos": [[81, 96]], + "estimated-rows": 10, "inputs": [{ - "operator": "tableconstruction", + "operator": "table-construction", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "output": [], "values": [[]], "inputs": [] diff --git a/standalone-app/examples/hyper/tablescan-analyze.plan.json b/standalone-app/examples/hyper/tablescan-analyze.plan.json index 7807069d..fb0e776d 100644 --- a/standalone-app/examples/hyper/tablescan-analyze.plan.json +++ b/standalone-app/examples/hyper/tablescan-analyze.plan.json @@ -1,23 +1,24 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 5, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_r_name", ["Char", 25]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_r_name", ["Char", 25]]}], "output-names": ["r_name"], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 2, - "sqlpos": [[72, 78]], + "sqlpos": [[54, 60]], "estimated-rows": 5, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "selectivity": 1, - "statistics": {"pipeline": 0, "column-count": 1, "cpu-cycles": 27, "output-rows": 5, "processed-rows": 5, "running": false} + "statistics": {"pipeline": 0, "column-count": 1, "cpu-cycles": 14625, "output-rows": 5, "processed-rows": 5, "running": false} }], "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch-q11-error-analyze.plan.json b/standalone-app/examples/hyper/tpch-q11-error-analyze.plan.json index 88903105..8621c9c3 100644 --- a/standalone-app/examples/hyper/tpch-q11-error-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch-q11-error-analyze.plan.json @@ -1,182 +1,193 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 10.74, + "estimated-rows": 10.74, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 2]]}], "output-names": ["ps_partkey", "value"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1090, 1102]], - "cardinality": 10.74, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}], + "sqlpos": [[1333, 1345]], + "estimated-rows": 10.74, + "criterion": [{"value": {"expression": "iu-ref", "iu": "sum"}, "descending": true, "null-first": true}], "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 10.74, + "estimated-rows": 10.74, "method": "hash", "single-match": true, "inputs": [{ "operator": "map", "operator-id": 4, - "sqlpos": [[655, 696]], - "cardinality": 1, + "sqlpos": [[898, 939]], + "estimated-rows": 1, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 5, - "sqlpos": [[655, 687]], - "cardinality": 1, + "sqlpos": [[898, 930]], + "estimated-rows": 1, "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 21.48, + "estimated-rows": 21.48, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 20.72, + "estimated-rows": 20.72, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[842, 848]], - "cardinality": 1, + "sqlpos": [[1085, 1091]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "GERMANY"}}}], "selectivity": 0.04, - "analyze": {"pipeline": 5, "column-count": 1, "cpu-cycles": 655, "processed-rows": 25, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 5, "column-count": 1, "cpu-cycles": 28196, "output-rows": 1, "processed-rows": 25, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[800, 808]], - "cardinality": 518, + "sqlpos": [[1043, 1051]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 7, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 401, "processed-rows": 518, "running": false, "tuple-count": 19} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 15796, "output-rows": 19, "processed-rows": 518, "running": false} }], "early-probed-by": [9], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}}, - "analyze": {"pipeline": 4, "column-count": 1, "memory-bytes": 18552, "tuple-count": 19} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 1, "memory-bytes": 18552, "output-rows": 19} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[758, 766]], - "cardinality": 537, + "sqlpos": [[1001, 1009]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 6, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 3, "column-count": 3, "cpu-cycles": 408, "processed-rows": 537, "running": false, "tuple-count": 58} + "statistics": {"pipeline": 3, "column-count": 3, "cpu-cycles": 19450, "output-rows": 24, "processed-rows": 537, "running": false} }], "early-probed-by": [10], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey2"}, "right": {"expression": "iuref", "iu": "scan_suppkey"}}, - "analyze": {"pipeline": 3, "column-count": 2, "memory-bytes": 18552, "tuple-count": 21} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 2, "memory-bytes": 18552, "output-rows": 21} }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_supplyco"}, "right": {"expression": "iuref", "iu": "scan_availqty"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "scan_supplyco"}, "right": {"expression": "iu-ref", "iu": "scan_availqty"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum2", ["BigNumeric", 38, 2, "nullable"]]}], - "analyze": {"pipeline": 2, "column-count": 1, "cpu-cycles": 1207, "memory-bytes": 0, "running": true, "tuple-count": 1} + "statistics": {"pipeline": 2, "column-count": 1, "cpu-cycles": 415301, "memory-bytes": 0, "output-rows": 1, "running": true} }], - "values": [{"iu": ["map", ["BigNumeric", 38, 6, "nullable"]], "value": {"expression": "mul", "left": {"expression": "iuref", "iu": "sum2"}, "right": {"expression": "const", "value": {"type": ["Numeric", 5, 4], "value": 1}}}}], - "analyze": {"pipeline": 2, "column-count": 1, "tuple-count": 1} + "values": [{"iu": ["map", ["BigNumeric", 38, 6, "nullable"]], "value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "sum2"}, "right": {"expression": "const", "value": {"type": ["Numeric", 5, 4], "value": 1}}}}], + "statistics": {"pipeline": 2, "column-count": 1, "output-rows": 1} }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 11, - "sqlpos": [[504, 531], [555, 587], [298, 330]], - "cardinality": 21.48, + "sqlpos": [[747, 774], [798, 830], [541, 573]], + "estimated-rows": 21.48, "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 21.48, + "estimated-rows": 21.48, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 20.72, + "estimated-rows": 20.72, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[391, 397]], - "cardinality": 1, + "sqlpos": [[634, 640]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "GERMANY"}}}], "selectivity": 0.04, - "analyze": {"pipeline": 8, "column-count": 1, "cpu-cycles": 0, "processed-rows": 0, "running": false, "tuple-count": 0} + "statistics": {"pipeline": 8, "column-count": 1, "cpu-cycles": 0, "output-rows": 0, "processed-rows": 0, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[373, 381]], - "cardinality": 518, + "sqlpos": [[616, 624]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 13, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 7, "column-count": 2, "cpu-cycles": 0, "processed-rows": 0, "running": false, "tuple-count": 0} + "statistics": {"pipeline": 7, "column-count": 2, "cpu-cycles": 0, "output-rows": 0, "processed-rows": 0, "running": false} }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke4"}, "right": {"expression": "iuref", "iu": "scan_nationke3"}}, - "analyze": {"pipeline": 7, "column-count": 1, "memory-bytes": 0, "tuple-count": 0} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke4"}, "right": {"expression": "iu-ref", "iu": "scan_nationke3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}], + "statistics": {"pipeline": 7, "column-count": 1, "memory-bytes": 0, "output-rows": 0} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[355, 363]], - "cardinality": 537, + "sqlpos": [[598, 606]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 12, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 6, "column-count": 4, "cpu-cycles": 0, "processed-rows": 0, "running": false, "tuple-count": 0} + "statistics": {"pipeline": 6, "column-count": 4, "cpu-cycles": 0, "output-rows": 0, "processed-rows": 0, "running": false} }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}}, - "analyze": {"pipeline": 6, "column-count": 3, "memory-bytes": 0, "tuple-count": 0} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}], + "statistics": {"pipeline": 6, "column-count": 3, "memory-bytes": 0, "output-rows": 0} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "scan_availqty2"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "scan_availqty2"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2]]}], - "analyze": {"pipeline": 1, "column-count": 2, "cpu-cycles": 0, "memory-bytes": 0, "running": false, "tuple-count": 0} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 0, "memory-bytes": 0, "output-rows": 0, "running": false} }], - "condition": {"expression": "comparison", "mode": ">", "left": {"expression": "iuref", "iu": "sum"}, "right": {"expression": "div", "left": {"expression": "iuref", "iu": "map"}, "right": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 0}}}}, - "analyze": {"pipeline": 1, "column-count": 2, "memory-bytes": 0, "tuple-count": 0} + "condition": {"expression": "comparison", "mode": ">", "left": {"expression": "iu-ref", "iu": "sum"}, "right": {"expression": "div", "left": {"expression": "iu-ref", "iu": "map"}, "right": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 0}}}}, + "predicates": [{"left": {"expression": "div", "left": {"expression": "iu-ref", "iu": "map"}, "right": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 0}}}, "right": {"expression": "iu-ref", "iu": "sum"}, "comparison": "<"}], + "statistics": {"pipeline": 1, "column-count": 2, "memory-bytes": 0, "output-rows": 0} }], - "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 0, "memory-bytes": 0, "running": false, "tuple-count": 0} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 0, "memory-bytes": 0, "output-rows": 0, "running": false} }], - "analyze": {"error": {"code": "22012", "message": {"original": "division by zero", "translation": "division by zero"}, "detail": null, "internal-detail": null, "hint": null, "source": "User"}, "pipeline": 0, "column-count": 0} + "statistics": {"error": {"code": "22012", "message": {"original": "division by zero", "translation": "division by zero"}, "detail": null, "internal-detail": null, "hint": null, "source": "User"}, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q1-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q1-analyze.plan.json index d398436e..237b7261 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q1-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q1-analyze.plan.json @@ -1,44 +1,45 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 4, + "estimated-rows": 4, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char1"]]}, {"expression": "iuref", "iu": ["GroupByKey2", ["Char1"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}, {"expression": "iuref", "iu": ["sum2", ["BigNumeric", 38, 2]]}, {"expression": "iuref", "iu": ["sum3", ["BigNumeric", 38, 4]]}, {"expression": "iuref", "iu": ["sum4", ["BigNumeric", 38, 6]]}, {"expression": "iuref", "iu": ["avg", ["Numeric", 16, 6]]}, {"expression": "iuref", "iu": ["avg2", ["Numeric", 16, 6]]}, {"expression": "iuref", "iu": ["avg3", ["Numeric", 16, 6]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Char1"]]}, {"expression": "iu-ref", "iu": ["GroupByKey2", ["Char1"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 2]]}, {"expression": "iu-ref", "iu": ["sum2", ["BigNumeric", 38, 2]]}, {"expression": "iu-ref", "iu": ["sum3", ["BigNumeric", 38, 4]]}, {"expression": "iu-ref", "iu": ["sum4", ["BigNumeric", 38, 6]]}, {"expression": "iu-ref", "iu": ["avg", ["Numeric", 16, 6]]}, {"expression": "iu-ref", "iu": ["avg2", ["Numeric", 16, 6]]}, {"expression": "iu-ref", "iu": ["avg3", ["Numeric", 16, 6]]}, {"expression": "iu-ref", "iu": ["count", ["BigInt"]]}], "output-names": ["l_returnflag", "l_linestatus", "sum_qty", "sum_base_price", "sum_disc_price", "sum_charge", "avg_qty", "avg_price", "avg_disc", "count_order"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[718, 730]], - "cardinality": 4, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}], + "sqlpos": [[758, 770]], + "estimated-rows": 4, + "criterion": [{"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[649, 700], [193, 208], [229, 249], [277, 316], [344, 397], [421, 436], [457, 477], [500, 515], [537, 545]], - "cardinality": 4, + "sqlpos": [[689, 740], [233, 248], [269, 289], [317, 356], [384, 437], [461, 476], [497, 517], [540, 555], [577, 585]], + "estimated-rows": 4, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[574, 582]], - "cardinality": 568, + "sqlpos": [[614, 622]], + "estimated-rows": 568, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"col-id": 7, "name": "l_tax", "type": ["Numeric", 12, 2], "iu": ["scan_l_tax", ["Numeric", 12, 2]]},{"col-id": 8, "name": "l_returnflag", "type": ["Char1"], "iu": ["scan_returnfl", ["Char1"]]},{"col-id": 9, "name": "l_linestatus", "type": ["Char1"], "iu": ["scan_linestat", ["Char1"]]},{"col-id": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 10, "mode": "<=", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2451059}}}], "selectivity": 0.993007, - "analyze": {"pipeline": 2, "column-count": 6, "cpu-cycles": 1794, "processed-rows": 572, "running": false, "tuple-count": 568} + "statistics": {"pipeline": 2, "column-count": 6, "cpu-cycles": 91181, "output-rows": 568, "processed-rows": 572, "running": false} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_returnfl"}}, "iu": ["GroupByKey", ["Char1"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_linestat"}}, "iu": ["GroupByKey2", ["Char1"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_returnfl"}}, "iu": ["GroupByKey", ["Char1"]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_linestat"}}, "iu": ["GroupByKey2", ["Char1"]]}], "grouping-sets": [{"key-indices": [0, 1], "core-indices": [0, 1], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}, {"value": {"expression": "iuref", "iu": "scan_extended"}}, {"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}, {"value": {"expression": "mul", "left": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}, "right": {"expression": "add", "left": {"expression": "iuref", "iu": "scan_l_tax"}, "right": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}}}}, {"value": {"expression": "iuref", "iu": "scan_discount"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_quantity"}}, {"value": {"expression": "iu-ref", "iu": "scan_extended"}}, {"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}, {"value": {"expression": "mul", "left": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}, "right": {"expression": "add", "left": {"expression": "iu-ref", "iu": "scan_l_tax"}, "right": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}}}}, {"value": {"expression": "iu-ref", "iu": "scan_discount"}}], "aggregates": [{"source": null, "operation": {"aggregate": "count"}, "iu": ["count", ["BigInt"]]}, {"source": 4, "operation": {"aggregate": "avg"}, "iu": ["avg3", ["Numeric", 16, 6]]}, {"source": 0, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6]]}, {"source": 3, "operation": {"aggregate": "sum"}, "iu": ["sum4", ["BigNumeric", 38, 6]]}, {"source": 1, "operation": {"aggregate": "avg"}, "iu": ["avg2", ["Numeric", 16, 6]]}, {"source": 1, "operation": {"aggregate": "sum"}, "iu": ["sum2", ["BigNumeric", 38, 2]]}, {"source": 2, "operation": {"aggregate": "sum"}, "iu": ["sum3", ["BigNumeric", 38, 4]]}, {"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2]]}], - "analyze": {"pipeline": 1, "column-count": 10, "cpu-cycles": 267, "memory-bytes": 18552, "running": false, "tuple-count": 4} + "statistics": {"pipeline": 1, "column-count": 10, "cpu-cycles": 42476, "memory-bytes": 18552, "output-rows": 4, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 10, "cpu-cycles": 103, "memory-bytes": 262176, "running": false, "tuple-count": 4} + "statistics": {"pipeline": 0, "column-count": 10, "cpu-cycles": 11707, "memory-bytes": 262176, "output-rows": 4, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q1-external-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q1-external-analyze.plan.json new file mode 100644 index 00000000..cbe5eb92 --- /dev/null +++ b/standalone-app/examples/hyper/tpch/tpch-q1-external-analyze.plan.json @@ -0,0 +1,45 @@ +{ + "operator": "output", + "operator-id": 1, + "statistics": { + "estimated-rows": 4, + "column-count": 0 + }, + "inputs": [{ + "operator": "sort", + "operator-id": 2, + "statistics": { + "estimated-rows": 4, + "output-rows": 4, + "memory-bytes": 262176, + "column-count": 10 + }, + "inputs": [{ + "operator": "group-by", + "operator-id": 3, + "statistics": { + "estimated-rows": 4, + "output-rows": 4, + "memory-bytes": 18552, + "column-count": 10 + }, + "inputs": [{ + "operator": "scan", + "type": "native", + "operator-id": 4, + "statistics": { + "estimated-rows": 568, + "output-rows": 568, + "processed-rows": 572, + "column-count": 6 + }, + "attributes": [{"defines": {"id": "scan_quantity", "type": {"type": "numeric", "precision": 12, "scale": 2, "nullable": false}}, "name": "l_quantity"}, {"defines": {"id": "scan_extended", "type": {"type": "numeric", "precision": 12, "scale": 2, "nullable": false}}, "name": "l_extendedprice"}, {"defines": {"id": "scan_discount", "type": {"type": "numeric", "precision": 12, "scale": 2, "nullable": false}}, "name": "l_discount"}, {"defines": {"id": "scan_l_tax", "type": {"type": "numeric", "precision": 12, "scale": 2, "nullable": false}}, "name": "l_tax"}, {"defines": {"id": "scan_returnfl", "type": {"type": "char", "length": 1, "nullable": false}}, "name": "l_returnflag"}, {"defines": {"id": "scan_linestat", "type": {"type": "char", "length": 1, "nullable": false}}, "name": "l_linestatus"}, {"defines": {"id": "scan_shipdate", "type": {"type": "date", "nullable": false}}, "name": "l_shipdate"}], + "restrictions": [{"expression": "sql", "sql": "\"scan_shipdate\" <= CAST('1998-09-02' AS DATE)", "arguments": [{"expression": "reference", "id": "scan_shipdate"}], "type": {"type": "bool", "nullable": false}}] + }], + "aggregates": [{"defines": {"id": "count", "type": {"type": "bigint", "nullable": false}}, "source": null, "operation": {"aggregate": "count"}}, {"defines": {"id": "avg3", "type": {"type": "numeric", "precision": 16, "scale": 6, "nullable": false}}, "source": {"expression": "reference", "id": "scan_discount"}, "operation": {"aggregate": "avg"}}, {"defines": {"id": "avg", "type": {"type": "numeric", "precision": 16, "scale": 6, "nullable": false}}, "source": {"expression": "reference", "id": "scan_quantity"}, "operation": {"aggregate": "avg"}}, {"defines": {"id": "sum4", "type": {"type": "numeric", "precision": 38, "scale": 6, "nullable": false}}, "source": {"expression": "sql", "sql": "((CAST('1' AS NUMERIC(1,0)) - \"scan_discount\") * \"scan_extended\") * (\"scan_l_tax\" + CAST('1' AS NUMERIC(1,0)))", "arguments": [{"expression": "reference", "id": "scan_discount"}, {"expression": "reference", "id": "scan_extended"}, {"expression": "reference", "id": "scan_l_tax"}], "type": {"type": "numeric", "precision": 38, "scale": 6, "nullable": false}}, "operation": {"aggregate": "sum"}}, {"defines": {"id": "avg2", "type": {"type": "numeric", "precision": 16, "scale": 6, "nullable": false}}, "source": {"expression": "reference", "id": "scan_extended"}, "operation": {"aggregate": "avg"}}, {"defines": {"id": "sum2", "type": {"type": "numeric", "precision": 38, "scale": 2, "nullable": false}}, "source": {"expression": "reference", "id": "scan_extended"}, "operation": {"aggregate": "sum"}}, {"defines": {"id": "sum3", "type": {"type": "numeric", "precision": 38, "scale": 4, "nullable": false}}, "source": {"expression": "sql", "sql": "(CAST('1' AS NUMERIC(1,0)) - \"scan_discount\") * \"scan_extended\"", "arguments": [{"expression": "reference", "id": "scan_discount"}, {"expression": "reference", "id": "scan_extended"}], "type": {"type": "numeric", "precision": 25, "scale": 4, "nullable": false}}, "operation": {"aggregate": "sum"}}, {"defines": {"id": "sum", "type": {"type": "numeric", "precision": 38, "scale": 2, "nullable": false}}, "source": {"expression": "reference", "id": "scan_quantity"}, "operation": {"aggregate": "sum"}}], + "grouping-sets": [{"key-expressions": [{"defines": {"id": "GroupByKey", "type": {"type": "char", "length": 1, "nullable": false}}, "expression": {"expression": "reference", "id": "scan_returnfl"}}, {"defines": {"id": "GroupByKey2", "type": {"type": "char", "length": 1, "nullable": false}}, "expression": {"expression": "reference", "id": "scan_linestat"}}]}] + }], + "order": [{"order": "ascending", "nulls": "last", "value": {"expression": "reference", "id": "GroupByKey"}}, {"order": "ascending", "nulls": "last", "value": {"expression": "reference", "id": "GroupByKey2"}}] + }], + "output": [{"name": "l_returnflag", "expression": {"expression": "reference", "id": "GroupByKey"}}, {"name": "l_linestatus", "expression": {"expression": "reference", "id": "GroupByKey2"}}, {"name": "sum_qty", "expression": {"expression": "reference", "id": "sum"}}, {"name": "sum_base_price", "expression": {"expression": "reference", "id": "sum2"}}, {"name": "sum_disc_price", "expression": {"expression": "reference", "id": "sum3"}}, {"name": "sum_charge", "expression": {"expression": "reference", "id": "sum4"}}, {"name": "avg_qty", "expression": {"expression": "reference", "id": "avg"}}, {"name": "avg_price", "expression": {"expression": "reference", "id": "avg2"}}, {"name": "avg_disc", "expression": {"expression": "reference", "id": "avg3"}}, {"name": "count_order", "expression": {"expression": "reference", "id": "count"}}] +} \ No newline at end of file diff --git a/standalone-app/examples/hyper/tpch/tpch-q10-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q10-analyze.plan.json index bbe540b1..5d1182bf 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q10-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q10-analyze.plan.json @@ -1,118 +1,125 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 9.61875, + "estimated-rows": 9.61875, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iuref", "iu": ["GroupByKey2", ["Varchar", 25]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4]]}, {"expression": "iuref", "iu": ["GroupByKey3", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["GroupByKey4", ["Char", 25]]}, {"expression": "iuref", "iu": ["GroupByKey5", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["GroupByKey6", ["Char", 15]]}, {"expression": "iuref", "iu": ["GroupByKey7", ["Varchar", 117]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["GroupByKey2", ["Varchar", 25]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 4]]}, {"expression": "iu-ref", "iu": ["GroupByKey3", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["GroupByKey4", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["GroupByKey5", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["GroupByKey6", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["GroupByKey7", ["Varchar", 117]]}], "output-names": ["c_custkey", "c_name", "revenue", "c_acctbal", "n_name", "c_address", "c_phone", "c_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[778, 790], [791, 800]], - "cardinality": 9.61875, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}], + "sqlpos": [[782, 794], [795, 804]], + "estimated-rows": 9.61875, + "criterion": [{"value": {"expression": "iu-ref", "iu": "sum"}, "descending": true, "null-first": true}], "limit": 20, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[628, 760], [185, 224]], - "cardinality": 9.61875, + "sqlpos": [[632, 764], [189, 228]], + "estimated-rows": 9.61875, "inputs": [{ "operator": "join", "operator-id": 4, - "cardinality": 10.6875, + "estimated-rows": 10.6875, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 5, - "cardinality": 9, + "estimated-rows": 9, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 9, + "estimated-rows": 9, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 7, - "sqlpos": [[357, 363]], - "cardinality": 9, + "sqlpos": [[361, 367]], + "estimated-rows": 9, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"col-id": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, "restrictions": [{"attribute": 4, "mode": "[)", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449262}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2449354}}}], "selectivity": 0.0703125, - "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 510, "processed-rows": 128, "running": false, "tuple-count": 9} + "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 26195, "output-rows": 9, "processed-rows": 128, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[339, 347]], - "cardinality": 129, + "sqlpos": [[343, 351]], + "estimated-rows": 129, "volatility": "stable", "relation-id": 5, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 8, "attributes": [{"col-id": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"col-id": 1, "name": "c_name", "type": ["Varchar", 25], "iu": ["scan_c_name", ["Varchar", 25]]},{"col-id": 2, "name": "c_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "c_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 4, "name": "c_phone", "type": ["Char", 15], "iu": ["scan_c_phone", ["Char", 15]]},{"col-id": 5, "name": "c_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 7, "name": "c_comment", "type": ["Varchar", 117], "iu": ["scan_comment", ["Varchar", 117]]}], "debug-name": {"classification": "nonsensitive", "value": "customer"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0697674], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0697674], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 7, "cpu-cycles": 198, "processed-rows": 129, "running": false, "tuple-count": 15} + "statistics": {"pipeline": 4, "column-count": 7, "cpu-cycles": 15056, "output-rows": 9, "processed-rows": 129, "running": false} }], "early-probed-by": [8], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_custkey2"}, "right": {"expression": "iuref", "iu": "scan_custkey"}}, - "analyze": {"pipeline": 4, "column-count": 8, "memory-bytes": 18552, "tuple-count": 9} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_custkey2"}, "right": {"expression": "iu-ref", "iu": "scan_custkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 8, "memory-bytes": 18552, "output-rows": 9} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[391, 397]], - "cardinality": 25, + "sqlpos": [[395, 401]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.36], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.36], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 3, "column-count": 2, "cpu-cycles": 131, "processed-rows": 25, "running": false, "tuple-count": 11} + "statistics": {"pipeline": 3, "column-count": 2, "cpu-cycles": 8595, "output-rows": 9, "processed-rows": 25, "running": false} }], "early-probed-by": [9], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke"}, "right": {"expression": "iuref", "iu": "scan_nationke2"}}, - "analyze": {"pipeline": 3, "column-count": 8, "memory-bytes": 18552, "tuple-count": 9} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 8, "memory-bytes": 18552, "output-rows": 9} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[373, 381]], - "cardinality": 152, + "sqlpos": [[377, 385]], + "estimated-rows": 152, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"col-id": 8, "name": "l_returnflag", "type": ["Char1"], "iu": ["scan_returnfl", ["Char1"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 8, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char1"], "value": 82}}}], - "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0703125], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0703125], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.265734, - "analyze": {"pipeline": 2, "column-count": 3, "cpu-cycles": 443, "processed-rows": 572, "running": false, "tuple-count": 37} + "statistics": {"pipeline": 2, "column-count": 3, "cpu-cycles": 29774, "output-rows": 25, "processed-rows": 572, "running": false} }], "early-probed-by": [10], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey2"}, "right": {"expression": "iuref", "iu": "scan_orderkey"}}, - "analyze": {"pipeline": 2, "column-count": 9, "memory-bytes": 18552, "tuple-count": 23} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 9, "memory-bytes": 18552, "output-rows": 23} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_custkey2"}}, "iu": ["GroupByKey", ["Integer"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_c_name"}}, "iu": ["GroupByKey2", ["Varchar", 25]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_acctbal"}}, "iu": ["GroupByKey3", ["Numeric", 12, 2]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_c_phone"}}, "iu": ["GroupByKey6", ["Char", 15]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_n_name"}}, "iu": ["GroupByKey4", ["Char", 25]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_address"}}, "iu": ["GroupByKey5", ["Varchar", 40]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_comment"}}, "iu": ["GroupByKey7", ["Varchar", 117]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_custkey2"}}, "iu": ["GroupByKey", ["Integer"]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_c_name"}}, "iu": ["GroupByKey2", ["Varchar", 25]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_acctbal"}}, "iu": ["GroupByKey3", ["Numeric", 12, 2]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_c_phone"}}, "iu": ["GroupByKey6", ["Char", 15]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_n_name"}}, "iu": ["GroupByKey4", ["Char", 25]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_address"}}, "iu": ["GroupByKey5", ["Varchar", 40]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_comment"}}, "iu": ["GroupByKey7", ["Varchar", 117]]}], "grouping-sets": [{"key-indices": [0, 1, 2, 3, 4, 5, 6], "core-indices": [0, 1, 2, 3, 4, 5, 6], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 4]]}], - "analyze": {"pipeline": 1, "column-count": 8, "cpu-cycles": 307, "memory-bytes": 18552, "running": false, "tuple-count": 8} + "statistics": {"pipeline": 1, "column-count": 8, "cpu-cycles": 11066, "memory-bytes": 18552, "output-rows": 8, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 8, "cpu-cycles": 180, "heap-gc-passes": 0, "memory-bytes": 262208, "running": false, "tuple-count": 8} + "statistics": {"pipeline": 0, "column-count": 8, "cpu-cycles": 11226, "heap-gc-passes": 0, "memory-bytes": 262208, "output-rows": 8, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q11-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q11-analyze.plan.json index d1b5a1ff..182a97d7 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q11-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q11-analyze.plan.json @@ -1,182 +1,193 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 10.74, + "estimated-rows": 10.74, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 2]]}], "output-names": ["ps_partkey", "value"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[958, 970]], - "cardinality": 10.74, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}], + "sqlpos": [[962, 974]], + "estimated-rows": 10.74, + "criterion": [{"value": {"expression": "iu-ref", "iu": "sum"}, "descending": true, "null-first": true}], "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 10.74, + "estimated-rows": 10.74, "method": "hash", "single-match": true, "inputs": [{ "operator": "map", "operator-id": 4, - "sqlpos": [[527, 568]], - "cardinality": 1, + "sqlpos": [[531, 572]], + "estimated-rows": 1, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 5, - "sqlpos": [[527, 559]], - "cardinality": 1, + "sqlpos": [[531, 563]], + "estimated-rows": 1, "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 21.48, + "estimated-rows": 21.48, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 20.72, + "estimated-rows": 20.72, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[714, 720]], - "cardinality": 1, + "sqlpos": [[718, 724]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "GERMANY"}}}], "selectivity": 0.04, - "analyze": {"pipeline": 5, "column-count": 1, "cpu-cycles": 501, "processed-rows": 25, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 5, "column-count": 1, "cpu-cycles": 58102, "output-rows": 1, "processed-rows": 25, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[672, 680]], - "cardinality": 518, + "sqlpos": [[676, 684]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 7, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 334, "processed-rows": 518, "running": false, "tuple-count": 19} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 13883, "output-rows": 19, "processed-rows": 518, "running": false} }], "early-probed-by": [9], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}}, - "analyze": {"pipeline": 4, "column-count": 1, "memory-bytes": 18552, "tuple-count": 19} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 1, "memory-bytes": 18552, "output-rows": 19} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[630, 638]], - "cardinality": 537, + "sqlpos": [[634, 642]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 6, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 3, "column-count": 3, "cpu-cycles": 451, "processed-rows": 537, "running": false, "tuple-count": 58} + "statistics": {"pipeline": 3, "column-count": 3, "cpu-cycles": 19934, "output-rows": 24, "processed-rows": 537, "running": false} }], "early-probed-by": [10], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey2"}, "right": {"expression": "iuref", "iu": "scan_suppkey"}}, - "analyze": {"pipeline": 3, "column-count": 2, "memory-bytes": 18552, "tuple-count": 21} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 2, "memory-bytes": 18552, "output-rows": 21} }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_supplyco"}, "right": {"expression": "iuref", "iu": "scan_availqty"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "scan_supplyco"}, "right": {"expression": "iu-ref", "iu": "scan_availqty"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum2", ["BigNumeric", 38, 2, "nullable"]]}], - "analyze": {"pipeline": 2, "column-count": 1, "cpu-cycles": 18, "memory-bytes": 0, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 2, "column-count": 1, "cpu-cycles": 710, "memory-bytes": 0, "output-rows": 1, "running": false} }], - "values": [{"iu": ["map", ["BigNumeric", 38, 6, "nullable"]], "value": {"expression": "mul", "left": {"expression": "iuref", "iu": "sum2"}, "right": {"expression": "const", "value": {"type": ["Numeric", 5, 4], "value": 1}}}}], - "analyze": {"pipeline": 2, "column-count": 1, "tuple-count": 1} + "values": [{"iu": ["map", ["BigNumeric", 38, 6, "nullable"]], "value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "sum2"}, "right": {"expression": "const", "value": {"type": ["Numeric", 5, 4], "value": 1}}}}], + "statistics": {"pipeline": 2, "column-count": 1, "output-rows": 1} }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 11, - "sqlpos": [[376, 403], [427, 459], [170, 202]], - "cardinality": 21.48, + "sqlpos": [[380, 407], [431, 463], [174, 206]], + "estimated-rows": 21.48, "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 21.48, + "estimated-rows": 21.48, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 20.72, + "estimated-rows": 20.72, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[263, 269]], - "cardinality": 1, + "sqlpos": [[267, 273]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "GERMANY"}}}], "selectivity": 0.04, - "analyze": {"pipeline": 8, "column-count": 1, "cpu-cycles": 111, "processed-rows": 25, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 8, "column-count": 1, "cpu-cycles": 2714, "output-rows": 1, "processed-rows": 25, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[245, 253]], - "cardinality": 518, + "sqlpos": [[249, 257]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 13, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 7, "column-count": 2, "cpu-cycles": 266, "processed-rows": 518, "running": false, "tuple-count": 19} + "statistics": {"pipeline": 7, "column-count": 2, "cpu-cycles": 5522, "output-rows": 19, "processed-rows": 518, "running": false} }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke4"}, "right": {"expression": "iuref", "iu": "scan_nationke3"}}, - "analyze": {"pipeline": 7, "column-count": 1, "memory-bytes": 18552, "tuple-count": 19} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke4"}, "right": {"expression": "iu-ref", "iu": "scan_nationke3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}], + "statistics": {"pipeline": 7, "column-count": 1, "memory-bytes": 18552, "output-rows": 19} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[227, 235]], - "cardinality": 537, + "sqlpos": [[231, 239]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 12, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 6, "column-count": 4, "cpu-cycles": 428, "processed-rows": 537, "running": false, "tuple-count": 58} + "statistics": {"pipeline": 6, "column-count": 4, "cpu-cycles": 16873, "output-rows": 24, "processed-rows": 537, "running": false} }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}}, - "analyze": {"pipeline": 6, "column-count": 3, "memory-bytes": 18552, "tuple-count": 21} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}], + "statistics": {"pipeline": 6, "column-count": 3, "memory-bytes": 18552, "output-rows": 21} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "scan_availqty2"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "scan_availqty2"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2]]}], - "analyze": {"pipeline": 1, "column-count": 2, "cpu-cycles": 310, "memory-bytes": 18552, "running": false, "tuple-count": 21} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 8328, "memory-bytes": 18552, "output-rows": 21, "running": false} }], - "condition": {"expression": "comparison", "mode": ">", "left": {"expression": "iuref", "iu": "sum"}, "right": {"expression": "iuref", "iu": "map"}}, - "analyze": {"pipeline": 1, "column-count": 2, "memory-bytes": 18552, "tuple-count": 21} + "condition": {"expression": "comparison", "mode": ">", "left": {"expression": "iu-ref", "iu": "sum"}, "right": {"expression": "iu-ref", "iu": "map"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "map"}, "right": {"expression": "iu-ref", "iu": "sum"}, "comparison": "<"}], + "statistics": {"pipeline": 1, "column-count": 2, "memory-bytes": 18552, "output-rows": 21} }], - "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 231, "memory-bytes": 262312, "running": false, "tuple-count": 21} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 7807, "memory-bytes": 262312, "output-rows": 21, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q12-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q12-analyze.plan.json index e3ebd3cb..1e86af4e 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q12-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q12-analyze.plan.json @@ -1,69 +1,72 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 7, + "estimated-rows": 7, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 10]]}, {"expression": "iuref", "iu": ["sum", ["BigInt"]]}, {"expression": "iuref", "iu": ["sum2", ["BigInt"]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Char", 10]]}, {"expression": "iu-ref", "iu": ["sum", ["BigInt"]]}, {"expression": "iu-ref", "iu": ["sum2", ["BigInt"]]}], "output-names": ["l_shipmode", "high_line_count", "low_line_count"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[915, 925]], - "cardinality": 7, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], + "sqlpos": [[919, 929]], + "estimated-rows": 7, + "criterion": [{"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[870, 897], [170, 349], [378, 560]], - "cardinality": 7, + "sqlpos": [[874, 901], [174, 353], [382, 564]], + "estimated-rows": 7, "inputs": [{ "operator": "join", "operator-id": 4, - "cardinality": 26.25, + "estimated-rows": 26.25, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 5, - "sqlpos": [[608, 616]], - "cardinality": 26.25, + "sqlpos": [[612, 620]], + "estimated-rows": 26.25, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]},{"col-id": 11, "name": "l_commitdate", "type": ["Date"], "iu": ["scan_commitda", ["Date"]]},{"col-id": 12, "name": "l_receiptdate", "type": ["Date"], "iu": ["scan_receiptd", ["Date"]]},{"col-id": 14, "name": "l_shipmode", "type": ["Char", 10], "iu": ["scan_shipmode", ["Char", 10]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, - "restrictions": [{"attribute": 12, "mode": "[)", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449354}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2449719}}}, {"attribute": 14, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "iuref", "iu": "scan_shipmode"}], "values": [{"type": ["Char", 10], "value": "MAIL"}, {"type": ["Char", 10], "value": "SHIP"}], "collates": [null], "modes": ["equals"]}}], - "residuals": [{"expression": "comparison", "mode": "<", "left": {"expression": "iuref", "iu": "scan_commitda"}, "right": {"expression": "iuref", "iu": "scan_receiptd"}}, {"expression": "comparison", "mode": "<", "left": {"expression": "iuref", "iu": "scan_shipdate"}, "right": {"expression": "iuref", "iu": "scan_commitda"}}], + "restrictions": [{"attribute": 12, "mode": "[)", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449354}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2449719}}}, {"attribute": 14, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_shipmode"}], "values": [{"type": ["Char", 10], "value": "MAIL"}, {"type": ["Char", 10], "value": "SHIP"}], "collates": [null], "modes": ["equals"]}}], + "residuals": [{"expression": "comparison", "mode": "<", "left": {"expression": "iu-ref", "iu": "scan_commitda"}, "right": {"expression": "iu-ref", "iu": "scan_receiptd"}}, {"expression": "comparison", "mode": "<", "left": {"expression": "iu-ref", "iu": "scan_shipdate"}, "right": {"expression": "iu-ref", "iu": "scan_commitda"}}], "selectivity": 0.0458916, - "analyze": {"pipeline": 3, "column-count": 2, "cpu-cycles": 789, "processed-rows": 572, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 3, "column-count": 2, "cpu-cycles": 63758, "output-rows": 2, "processed-rows": 572, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 6, - "sqlpos": [[592, 598]], - "cardinality": 128, + "sqlpos": [[596, 602]], + "estimated-rows": 128, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 5, "name": "o_orderpriority", "type": ["Char", 15], "iu": ["scan_orderpri", ["Char", 15]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, - "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.205078], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.205078], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 228, "processed-rows": 128, "running": false, "tuple-count": 4} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 25742, "output-rows": 3, "processed-rows": 128, "running": false} }], "early-probed-by": [6], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey2"}, "right": {"expression": "iuref", "iu": "scan_orderkey"}}, - "analyze": {"pipeline": 2, "column-count": 2, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 2, "memory-bytes": 18552, "output-rows": 2} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_shipmode"}}, "iu": ["GroupByKey", ["Char", 10]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_shipmode"}}, "iu": ["GroupByKey", ["Char", 10]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "simplecase", "value": {"expression": "iuref", "iu": "scan_orderpri"}, "cases": [{"cases": [{"expression": "const", "value": {"type": ["Varchar"], "value": "1-URGENT"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "2-HIGH"}}], "value": {"expression": "const", "value": {"type": ["Integer"], "value": 1}}}], "else": {"expression": "const", "value": {"type": ["Integer"], "value": 0}}}}, {"value": {"expression": "case", "cases": [{"case": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "<>", "left": {"expression": "iuref", "iu": "scan_orderpri"}, "right": {"expression": "const", "value": {"type": ["Char", 15], "value": "1-URGENT"}}}, {"expression": "comparison", "mode": "<>", "left": {"expression": "iuref", "iu": "scan_orderpri"}, "right": {"expression": "const", "value": {"type": ["Char", 15], "value": "2-HIGH"}}}]}, "value": {"expression": "const", "value": {"type": ["Integer"], "value": 1}}}], "else": {"expression": "const", "value": {"type": ["Integer"], "value": 0}}}}], + "agg-expressions": [{"value": {"expression": "simple-case", "value": {"expression": "iu-ref", "iu": "scan_orderpri"}, "cases": [{"cases": [{"expression": "const", "value": {"type": ["Varchar"], "value": "1-URGENT"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "2-HIGH"}}], "value": {"expression": "const", "value": {"type": ["Integer"], "value": 1}}}], "else": {"expression": "const", "value": {"type": ["Integer"], "value": 0}}}}, {"value": {"expression": "case", "cases": [{"case": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "<>", "left": {"expression": "iu-ref", "iu": "scan_orderpri"}, "right": {"expression": "const", "value": {"type": ["Char", 15], "value": "1-URGENT"}}}, {"expression": "comparison", "mode": "<>", "left": {"expression": "iu-ref", "iu": "scan_orderpri"}, "right": {"expression": "const", "value": {"type": ["Char", 15], "value": "2-HIGH"}}}]}, "value": {"expression": "const", "value": {"type": ["Integer"], "value": 1}}}], "else": {"expression": "const", "value": {"type": ["Integer"], "value": 0}}}}], "aggregates": [{"source": 1, "operation": {"aggregate": "sum"}, "iu": ["sum2", ["BigInt"]]}, {"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigInt"]]}], - "analyze": {"pipeline": 1, "column-count": 3, "cpu-cycles": 197, "memory-bytes": 18552, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 13151, "memory-bytes": 18552, "output-rows": 2, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 3, "cpu-cycles": 60, "memory-bytes": 262160, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 0, "column-count": 3, "cpu-cycles": 7157, "memory-bytes": 262160, "output-rows": 2, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q13-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q13-analyze.plan.json index bee9a8e2..13aafeb0 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q13-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q13-analyze.plan.json @@ -1,76 +1,79 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 3, + "estimated-rows": 3, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["BigInt"]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["BigInt"]]}, {"expression": "iu-ref", "iu": ["count", ["BigInt"]]}], "output-names": ["c_count", "custdist"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[644, 657]], - "cardinality": 3, - "criterion": [{"value": {"expression": "iuref", "iu": "count"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": true, "null-first": true}], + "sqlpos": [[648, 661]], + "estimated-rows": 3, + "criterion": [{"value": {"expression": "iu-ref", "iu": "count"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": true, "null-first": true}], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[602, 626], [167, 175]], - "cardinality": 3, + "sqlpos": [[606, 630], [171, 179]], + "estimated-rows": 3, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 4, - "sqlpos": [[537, 579], [285, 302]], - "cardinality": 129, + "sqlpos": [[541, 583], [289, 306]], + "estimated-rows": 129, "inputs": [{ - "operator": "rightouterjoin", + "operator": "right-outer-join", "operator-id": 5, - "cardinality": 175.641, + "estimated-rows": 175.641, "method": "hash", "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 6, - "sqlpos": [[381, 387]], - "cardinality": 128, + "sqlpos": [[385, 391]], + "estimated-rows": 128, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer", "nullable"]]},{"col-id": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer", "nullable"]]},{"col-id": 8, "name": "o_comment", "type": ["Varchar", 79], "iu": ["scan_comment", ["Varchar", 79, "nullable"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, - "restrictions": [{"attribute": 8, "mode": "lambda", "expression": {"expression": "not", "input": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_comment"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%special%requests%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}}], + "restrictions": [{"attribute": 8, "mode": "lambda", "expression": {"expression": "not", "input": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_comment"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%special%requests%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 824, "processed-rows": 128, "running": false, "tuple-count": 128} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 54735, "output-rows": 128, "processed-rows": 128, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 7, - "sqlpos": [[356, 364]], - "cardinality": 129, + "sqlpos": [[360, 368]], + "estimated-rows": 129, "volatility": "stable", "relation-id": 5, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 8, "attributes": [{"col-id": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "customer"}, "selectivity": 1, - "analyze": {"pipeline": 3, "column-count": 1, "cpu-cycles": 293, "processed-rows": 129, "running": false, "tuple-count": 129} + "statistics": {"pipeline": 3, "column-count": 1, "cpu-cycles": 66450, "output-rows": 129, "processed-rows": 129, "running": false} }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_custkey2"}, "right": {"expression": "iuref", "iu": "scan_custkey"}}, - "analyze": {"pipeline": 3, "column-count": 2, "memory-bytes": 18552, "tuple-count": 129} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_custkey2"}, "right": {"expression": "iu-ref", "iu": "scan_custkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 2, "memory-bytes": 18552, "output-rows": 129} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_custkey2"}}, "iu": ["GroupByKey2", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_custkey2"}}, "iu": ["GroupByKey2", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_orderkey"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_orderkey"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "count"}, "iu": ["count2", ["BigInt"]]}], - "analyze": {"pipeline": 2, "column-count": 1, "cpu-cycles": 175, "memory-bytes": 20600, "running": false, "tuple-count": 129} + "statistics": {"pipeline": 2, "column-count": 1, "cpu-cycles": 33877, "memory-bytes": 20600, "output-rows": 129, "running": false} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "count2"}}, "iu": ["GroupByKey", ["BigInt"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "count2"}}, "iu": ["GroupByKey", ["BigInt"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, "aggregates": [{"source": null, "operation": {"aggregate": "count"}, "iu": ["count", ["BigInt"]]}], - "analyze": {"pipeline": 1, "column-count": 2, "cpu-cycles": 100, "memory-bytes": 18552, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 12935, "memory-bytes": 18552, "output-rows": 2, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 52, "memory-bytes": 262160, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 7202, "memory-bytes": 262160, "output-rows": 2, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q14-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q14-analyze.plan.json index 722e2021..4b51b9a9 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q14-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q14-analyze.plan.json @@ -1,67 +1,70 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["map", ["BigNumeric", 38, 6, "nullable"]]}], + "output": [{"expression": "iu-ref", "iu": ["map", ["BigNumeric", 38, 6, "nullable"]]}], "output-names": ["promo_revenue"], "inputs": [{ "operator": "map", "operator-id": 2, - "sqlpos": [[150, 368]], - "cardinality": 1, + "sqlpos": [[154, 372]], + "estimated-rows": 1, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[159, 309], [312, 351]], - "cardinality": 1, + "sqlpos": [[163, 313], [316, 355]], + "estimated-rows": 1, "inputs": [{ "operator": "join", "operator-id": 4, - "cardinality": 11, + "estimated-rows": 11, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 5, - "sqlpos": [[382, 390]], - "cardinality": 11, + "sqlpos": [[386, 394]], + "estimated-rows": 11, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"col-id": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 10, "mode": "[)", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449962}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2449992}}}], "selectivity": 0.0192308, - "analyze": {"pipeline": 2, "column-count": 3, "cpu-cycles": 423, "processed-rows": 572, "running": false, "tuple-count": 11} + "statistics": {"pipeline": 2, "column-count": 3, "cpu-cycles": 43336, "output-rows": 11, "processed-rows": 572, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 6, - "sqlpos": [[400, 404]], - "cardinality": 533, + "sqlpos": [[404, 408]], + "estimated-rows": 533, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0206379], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0206379], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 1, "column-count": 2, "cpu-cycles": 356, "processed-rows": 533, "running": false, "tuple-count": 37} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 43349, "output-rows": 14, "processed-rows": 533, "running": false} }], "early-probed-by": [6], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey2"}}, - "analyze": {"pipeline": 1, "column-count": 3, "memory-bytes": 18552, "tuple-count": 11} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}, "comparison": "="}], + "statistics": {"pipeline": 1, "column-count": 3, "memory-bytes": 18552, "output-rows": 11} }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "case", "cases": [{"case": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "PROMO%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}, "value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}], "else": {"expression": "const", "value": {"type": ["BigNumeric", 25, 4], "low": 0, "high": 0}}}}, {"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}], + "agg-expressions": [{"value": {"expression": "case", "cases": [{"case": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "PROMO%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}, "value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}], "else": {"expression": "const", "value": {"type": ["BigNumeric", 25, 4], "low": 0, "high": 0}}}}, {"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}], "aggregates": [{"source": 1, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 4, "nullable"]]}, {"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum2", ["BigNumeric", 38, 4, "nullable"]]}], - "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 55, "memory-bytes": 0, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 8684, "memory-bytes": 0, "output-rows": 1, "running": false} }], - "values": [{"iu": ["map", ["BigNumeric", 38, 6, "nullable"]], "value": {"expression": "div", "left": {"expression": "mul", "left": {"expression": "iuref", "iu": "sum2"}, "right": {"expression": "const", "value": {"type": ["Numeric", 5, 2], "value": 10000}}}, "right": {"expression": "iuref", "iu": "sum"}}}], - "analyze": {"pipeline": 0, "column-count": 1, "tuple-count": 1} + "values": [{"iu": ["map", ["BigNumeric", 38, 6, "nullable"]], "value": {"expression": "div", "left": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "sum2"}, "right": {"expression": "const", "value": {"type": ["Numeric", 5, 2], "value": 10000}}}, "right": {"expression": "iu-ref", "iu": "sum"}}}], + "statistics": {"pipeline": 0, "column-count": 1, "output-rows": 1} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q15-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q15-analyze.plan.json index b6bdf167..a96c83c9 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q15-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q15-analyze.plan.json @@ -1,102 +1,106 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_suppkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_suppkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 4]]}], "output-names": ["s_suppkey", "s_name", "s_address", "s_phone", "total_revenue"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[572, 581]], - "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_suppkey"}, "descending": false, "null-first": false}], + "sqlpos": [[731, 740]], + "estimated-rows": 1, + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_suppkey"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 4, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "single-match": true, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 5, - "sqlpos": [[522, 540]], - "cardinality": 1, + "sqlpos": [[681, 699]], + "estimated-rows": 1, "inputs": [{ - "operator": "explicitscan", + "operator": "explicit-scan", "operator-id": 6, - "cardinality": 50, - "mapping": [{"source": {"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, "target": ["GroupByKey2", ["Integer"]]}, {"source": {"expression": "iuref", "iu": ["sum2", ["BigNumeric", 38, 4]]}, "target": ["sum3", ["BigNumeric", 38, 4]]}], + "estimated-rows": 50, + "mapping": [{"source": {"expression": "iu-ref", "iu": ["GroupByKey", ["Integer"]]}, "target": ["GroupByKey2", ["Integer"]]}, {"source": {"expression": "iu-ref", "iu": ["sum2", ["BigNumeric", 38, 4]]}, "target": ["sum3", ["BigNumeric", 38, 4]]}], "input": { - "operator": "groupby", + "operator": "group-by", "operator-id": 7, - "sqlpos": [[344, 364], [191, 230]], - "cardinality": 50, + "sqlpos": [[503, 523], [350, 389]], + "estimated-rows": 50, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[256, 264]], - "cardinality": 50, + "sqlpos": [[415, 423]], + "estimated-rows": 50, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"col-id": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 10, "mode": "[)", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2450084}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2450175}}}], "selectivity": 0.0874126, - "analyze": {"pipeline": 6, "column-count": 3, "cpu-cycles": 635, "processed-rows": 572, "running": false, "tuple-count": 50} + "statistics": {"pipeline": 6, "column-count": 3, "cpu-cycles": 38474, "output-rows": 50, "processed-rows": 572, "running": false} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_suppkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum2", ["BigNumeric", 38, 4]]}], - "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 0, "memory-bytes": 18552, "running": false, "tuple-count": 0} + "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 0, "memory-bytes": 18552, "output-rows": 0, "running": false} }, - "analyze": {"pipeline": 4, "column-count": 1, "cpu-cycles": 176, "running": false, "tuple-count": 50} + "statistics": {"pipeline": 4, "column-count": 1, "cpu-cycles": 13486, "output-rows": 50, "running": false} }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "sum3"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "sum3"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "max"}, "iu": ["max", ["BigNumeric", 38, 4, "nullable"]]}], - "analyze": {"pipeline": 3, "column-count": 1, "cpu-cycles": 37, "memory-bytes": 0, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 3, "column-count": 1, "cpu-cycles": 1797, "memory-bytes": 0, "output-rows": 1, "running": false} }, { - "operator": "explicitscan", + "operator": "explicit-scan", "operator-id": 9, - "cardinality": 50, - "mapping": [{"source": {"expression": "iuref", "iu": "GroupByKey"}, "target": ["GroupByKey3", ["Integer"]]}, {"source": {"expression": "iuref", "iu": "sum2"}, "target": ["sum", ["BigNumeric", 38, 4]]}], + "estimated-rows": 50, + "mapping": [{"source": {"expression": "iu-ref", "iu": "GroupByKey"}, "target": ["GroupByKey3", ["Integer"]]}, {"source": {"expression": "iu-ref", "iu": "sum2"}, "target": ["sum", ["BigNumeric", 38, 4]]}], "input": 7, - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 91, "running": false, "tuple-count": 50} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 11361, "output-rows": 50, "running": false} }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "sum"}, "right": {"expression": "iuref", "iu": "max"}}, - "analyze": {"pipeline": 2, "column-count": 2, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "sum"}, "right": {"expression": "iu-ref", "iu": "max"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "max"}, "right": {"expression": "iu-ref", "iu": "sum"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 2, "memory-bytes": 18552, "output-rows": 1} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[437, 445]], - "cardinality": 518, + "sqlpos": [[596, 604]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 3, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0019305], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 3, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0019305], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 1, "column-count": 4, "cpu-cycles": 261, "processed-rows": 518, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 1, "column-count": 4, "cpu-cycles": 24411, "output-rows": 1, "processed-rows": 518, "running": false} }], "early-probed-by": [10], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "GroupByKey3"}}, - "analyze": {"pipeline": 1, "column-count": 5, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "GroupByKey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey"}, "comparison": "="}], + "statistics": {"pipeline": 1, "column-count": 5, "memory-bytes": 18552, "output-rows": 1} }], - "analyze": {"pipeline": 0, "column-count": 5, "cpu-cycles": 65, "memory-bytes": 262152, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 5, "cpu-cycles": 7641, "memory-bytes": 262152, "output-rows": 1, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q16-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q16-analyze.plan.json index 1be7b371..fcdf4042 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q16-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q16-analyze.plan.json @@ -1,90 +1,95 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 81, + "estimated-rows": 81, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 10]]}, {"expression": "iuref", "iu": ["GroupByKey2", ["Varchar", 25]]}, {"expression": "iuref", "iu": ["GroupByKey3", ["Integer"]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Char", 10]]}, {"expression": "iu-ref", "iu": ["GroupByKey2", ["Varchar", 25]]}, {"expression": "iu-ref", "iu": ["GroupByKey3", ["Integer"]]}, {"expression": "iu-ref", "iu": ["count", ["BigInt"]]}], "output-names": ["p_brand", "p_type", "p_size", "supplier_cnt"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[761, 778]], - "cardinality": 81, - "criterion": [{"value": {"expression": "iuref", "iu": "count"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "GroupByKey3"}, "descending": false, "null-first": false}], + "sqlpos": [[765, 782]], + "estimated-rows": 81, + "criterion": [{"value": {"expression": "iu-ref", "iu": "count"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "GroupByKey3"}, "descending": false, "null-first": false}], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[687, 743], [199, 225]], - "cardinality": 81, + "sqlpos": [[691, 747], [203, 229]], + "estimated-rows": 81, "inputs": [{ - "operator": "rightantijoin", + "operator": "right-anti-join", "operator-id": 4, - "cardinality": 81.4503, + "estimated-rows": 81.4503, "method": "hash", "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 5, - "sqlpos": [[583, 591]], - "cardinality": 1, + "sqlpos": [[587, 595]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "restrictions": [{"attribute": 6, "mode": "lambda", "selectivity": 0.1, "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_comment"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%Customer%Complaints%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 6, "mode": "lambda", "selectivity": 0.1, "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_comment"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%Customer%Complaints%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.0019305, - "analyze": {"pipeline": 3, "column-count": 1, "cpu-cycles": 1055, "processed-rows": 518, "running": false, "tuple-count": 0} + "statistics": {"pipeline": 3, "column-count": 1, "cpu-cycles": 29520, "output-rows": 0, "processed-rows": 518, "running": false} }, { "operator": "join", "operator-id": 6, - "cardinality": 81.6079, + "estimated-rows": 81.6079, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 7, - "sqlpos": [[273, 277]], - "cardinality": 81, + "sqlpos": [[277, 281]], + "estimated-rows": 81, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 3, "name": "p_brand", "type": ["Char", 10], "iu": ["scan_p_brand", ["Char", 10]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 5, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "iuref", "iu": "scan_p_size"}], "values": [{"type": ["Integer"], "value": 3}, {"type": ["Integer"], "value": 9}, {"type": ["Integer"], "value": 14}, {"type": ["Integer"], "value": 19}, {"type": ["Integer"], "value": 23}, {"type": ["Integer"], "value": 36}, {"type": ["Integer"], "value": 45}, {"type": ["Integer"], "value": 49}], "collates": [null], "modes": ["equals"]}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "not", "input": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "MEDIUM POLISHED%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}}, {"attribute": 3, "mode": "lambda", "expression": {"expression": "comparison", "mode": "<>", "left": {"expression": "iuref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#45"}}}}], + "restrictions": [{"attribute": 3, "mode": "<>", "value": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#45"}}}, {"attribute": 5, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_p_size"}], "values": [{"type": ["Integer"], "value": 3}, {"type": ["Integer"], "value": 9}, {"type": ["Integer"], "value": 14}, {"type": ["Integer"], "value": 19}, {"type": ["Integer"], "value": 23}, {"type": ["Integer"], "value": 36}, {"type": ["Integer"], "value": 45}, {"type": ["Integer"], "value": 49}], "collates": [null], "modes": ["equals"]}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "not", "input": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "MEDIUM POLISHED%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}}], "selectivity": 0.15197, - "analyze": {"pipeline": 4, "column-count": 4, "cpu-cycles": 633, "processed-rows": 533, "running": false, "tuple-count": 81} + "statistics": {"pipeline": 4, "column-count": 4, "cpu-cycles": 69949, "output-rows": 81, "processed-rows": 533, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[255, 263]], - "cardinality": 537, + "sqlpos": [[259, 267]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.15197], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.15197], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 489, "processed-rows": 537, "running": false, "tuple-count": 185} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 63184, "output-rows": 92, "processed-rows": 537, "running": false} }], "early-probed-by": [8], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey2"}}, - "analyze": {"pipeline": 2, "column-count": 4, "memory-bytes": 18552, "tuple-count": 81} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 4, "memory-bytes": 18552, "output-rows": 81} }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey2"}, "right": {"expression": "iuref", "iu": "scan_suppkey"}}, - "analyze": {"pipeline": 2, "column-count": 4, "memory-bytes": 2048, "tuple-count": 81} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 4, "memory-bytes": 2048, "output-rows": 81} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_p_brand"}}, "iu": ["GroupByKey", ["Char", 10]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_p_type"}}, "iu": ["GroupByKey2", ["Varchar", 25]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_p_size"}}, "iu": ["GroupByKey3", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_p_brand"}}, "iu": ["GroupByKey", ["Char", 10]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_p_type"}}, "iu": ["GroupByKey2", ["Varchar", 25]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_p_size"}}, "iu": ["GroupByKey3", ["Integer"]]}], "grouping-sets": [{"key-indices": [0, 1, 2], "core-indices": [0, 1, 2], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_suppkey2"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_suppkey2"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "count", "distinct": true}, "iu": ["count", ["BigInt"]]}], - "analyze": {"pipeline": 1, "column-count": 4, "cpu-cycles": 173, "memory-bytes": 20600, "running": false, "tuple-count": 81} + "statistics": {"pipeline": 1, "column-count": 4, "cpu-cycles": 27216, "memory-bytes": 20600, "output-rows": 81, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 4, "cpu-cycles": 1054, "memory-bytes": 262792, "running": false, "tuple-count": 81} + "statistics": {"pipeline": 0, "column-count": 4, "cpu-cycles": 26615, "memory-bytes": 262792, "output-rows": 81, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q17-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q17-analyze.plan.json index 73269282..ea23b01e 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q17-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q17-analyze.plan.json @@ -1,112 +1,117 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["map", ["BigNumeric", 38, 6, "nullable"]]}], + "output": [{"expression": "iu-ref", "iu": ["map", ["BigNumeric", 38, 6, "nullable"]]}], "output-names": ["avg_yearly"], "inputs": [{ "operator": "map", "operator-id": 2, - "sqlpos": [[150, 190]], - "cardinality": 1, + "sqlpos": [[154, 194]], + "estimated-rows": 1, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[150, 170]], - "cardinality": 1, + "sqlpos": [[154, 174]], + "estimated-rows": 1, "inputs": [{ "operator": "join", "operator-id": 4, - "cardinality": 2.41463, + "estimated-rows": 2.41463, "method": "hash", "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", "operator-id": 5, - "cardinality": 3, + "estimated-rows": 3, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 6, - "sqlpos": [[222, 226]], - "cardinality": 3, + "sqlpos": [[226, 230]], + "estimated-rows": 3, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 3, "name": "p_brand", "type": ["Char", 10], "iu": ["scan_p_brand", ["Char", 10]]},{"col-id": 6, "name": "p_container", "type": ["Char", 10], "iu": ["scan_containe", ["Char", 10]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, "restrictions": [{"attribute": 6, "mode": "=", "selectivity": 0.025, "value": {"expression": "const", "value": {"type": ["Char", 10], "value": "MED BOX"}}}, {"attribute": 3, "mode": "=", "selectivity": 0.04, "value": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#23"}}}], "selectivity": 0.00562852, - "analyze": {"pipeline": 3, "column-count": 1, "cpu-cycles": 649, "processed-rows": 533, "running": false, "tuple-count": 3} + "statistics": {"pipeline": 3, "column-count": 1, "cpu-cycles": 28670, "output-rows": 3, "processed-rows": 533, "running": false} }, { "operator": "map", "operator-id": 7, - "sqlpos": [[406, 427]], - "cardinality": 533, + "sqlpos": [[410, 431]], + "estimated-rows": 533, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 8, - "sqlpos": [[412, 427]], - "cardinality": 533, + "sqlpos": [[416, 431]], + "estimated-rows": 533, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[473, 481]], - "cardinality": 572, + "sqlpos": [[477, 485]], + "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "residuals": [{"expression": "const", "value": {"type": ["Bool"], "value": true}}], - "early-probes": [{"builder": 5, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.00562852], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.00562852], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 300, "processed-rows": 572, "running": false, "tuple-count": 50} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 26842, "output-rows": 42, "processed-rows": 572, "running": false} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_quantity"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6, "nullable"]]}], - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 285, "memory-bytes": 18552, "running": false, "tuple-count": 12} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 10915, "memory-bytes": 18552, "output-rows": 4, "running": false} }], - "values": [{"iu": ["map2", ["Numeric", 18, 7, "nullable"]], "value": {"expression": "mul", "left": {"expression": "iuref", "iu": "avg"}, "right": {"expression": "const", "value": {"type": ["Numeric", 2, 1], "value": 2}}}}], - "analyze": {"pipeline": 2, "column-count": 2, "tuple-count": 12} + "values": [{"iu": ["map2", ["Numeric", 18, 7, "nullable"]], "value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "avg"}, "right": {"expression": "const", "value": {"type": ["Numeric", 2, 1], "value": 2}}}}], + "statistics": {"pipeline": 2, "column-count": 2, "output-rows": 4} }], "early-probed-by": [9], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}}, - "analyze": {"pipeline": 2, "column-count": 3, "memory-bytes": 18552, "tuple-count": 3} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 3, "memory-bytes": 18552, "output-rows": 3} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[204, 212]], - "cardinality": 572, + "sqlpos": [[208, 216]], + "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity2", ["Numeric", 12, 2]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, - "early-probes": [{"builder": 4, "attributes": [1, 1, 4], "num-equality-predicates": 2, "selectivities": [0.00562852, 0.00562852, null], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 4, "attributes": [1, 1, 4], "num-equality-predicates": 2, "selectivities": [0.00562852, 0.00562852, null], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 1, "column-count": 3, "cpu-cycles": 141, "processed-rows": 572, "running": false, "tuple-count": 572} + "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 28808, "output-rows": 572, "processed-rows": 572, "running": false} }], "early-probed-by": [10], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "GroupByKey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "<", "left": {"expression": "iuref", "iu": "scan_quantity2"}, "right": {"expression": "iuref", "iu": "map2"}}]}, - "analyze": {"pipeline": 1, "column-count": 1, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey3"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "<", "left": {"expression": "iu-ref", "iu": "scan_quantity2"}, "right": {"expression": "iu-ref", "iu": "map2"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "map2"}, "right": {"expression": "iu-ref", "iu": "scan_quantity2"}, "comparison": ">"}], + "statistics": {"pipeline": 1, "column-count": 1, "memory-bytes": 18552, "output-rows": 2} }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_extended"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_extended"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2, "nullable"]]}], - "analyze": {"pipeline": 0, "column-count": 1, "cpu-cycles": 48, "memory-bytes": 0, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 1, "cpu-cycles": 3171, "memory-bytes": 0, "output-rows": 1, "running": false} }], - "values": [{"iu": ["map", ["BigNumeric", 38, 6, "nullable"]], "value": {"expression": "div", "left": {"expression": "iuref", "iu": "sum"}, "right": {"expression": "const", "value": {"type": ["Numeric", 2, 1], "value": 70}}}}], - "analyze": {"pipeline": 0, "column-count": 1, "tuple-count": 1} + "values": [{"iu": ["map", ["BigNumeric", 38, 6, "nullable"]], "value": {"expression": "div", "left": {"expression": "iu-ref", "iu": "sum"}, "right": {"expression": "const", "value": {"type": ["Numeric", 2, 1], "value": 70}}}}], + "statistics": {"pipeline": 0, "column-count": 1, "output-rows": 1} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q18-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q18-analyze.plan.json index e8979f26..01ee87d0 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q18-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q18-analyze.plan.json @@ -1,38 +1,38 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 100, + "estimated-rows": 100, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Varchar", 25]]}, {"expression": "iuref", "iu": ["GroupByKey2", ["Integer"]]}, {"expression": "iuref", "iu": ["GroupByKey3", ["Integer"]]}, {"expression": "iuref", "iu": ["GroupByKey4", ["Date"]]}, {"expression": "iuref", "iu": ["GroupByKey5", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Varchar", 25]]}, {"expression": "iu-ref", "iu": ["GroupByKey2", ["Integer"]]}, {"expression": "iu-ref", "iu": ["GroupByKey3", ["Integer"]]}, {"expression": "iu-ref", "iu": ["GroupByKey4", ["Date"]]}, {"expression": "iu-ref", "iu": ["GroupByKey5", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 2]]}], "output-names": ["c_name", "c_custkey", "o_orderkey", "o_orderdate", "o_totalprice", "sum"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[786, 803], [825, 835]], - "cardinality": 100, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey5"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "GroupByKey4"}, "descending": false, "null-first": false}], + "sqlpos": [[790, 807], [829, 839]], + "estimated-rows": 100, + "criterion": [{"value": {"expression": "iu-ref", "iu": "GroupByKey5"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "GroupByKey4"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[663, 768], [248, 263]], - "cardinality": 203.17, + "sqlpos": [[667, 772], [252, 267]], + "estimated-rows": 203.17, "inputs": [{ "operator": "join", "operator-id": 4, - "cardinality": 225.745, + "estimated-rows": 225.745, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 5, - "cardinality": 50.5164, + "estimated-rows": 50.5164, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "rightsemijoin", + "operator": "right-semi-join", "operator-id": 6, - "cardinality": 50.5164, + "estimated-rows": 50.5164, "method": "hash", "single-match": true, "compute-left-bounds": [0], @@ -40,98 +40,105 @@ "inputs": [{ "operator": "filter", "operator-id": 7, - "cardinality": 64, + "estimated-rows": 64, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 8, - "sqlpos": [[478, 521], [561, 576]], - "cardinality": 128, + "sqlpos": [[482, 525], [565, 580]], + "estimated-rows": 128, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[453, 461]], - "cardinality": 572, + "sqlpos": [[457, 465]], + "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "selectivity": 1, - "analyze": {"pipeline": 6, "column-count": 2, "cpu-cycles": 652, "processed-rows": 572, "running": false, "tuple-count": 572} + "statistics": {"pipeline": 6, "column-count": 2, "cpu-cycles": 49924, "output-rows": 572, "processed-rows": 572, "running": false} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_orderkey2"}}, "iu": ["GroupByKey6", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_orderkey2"}}, "iu": ["GroupByKey6", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_quantity"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum2", ["BigNumeric", 38, 2]]}], - "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 204, "memory-bytes": 18552, "running": false, "tuple-count": 128} + "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 14653, "memory-bytes": 18552, "output-rows": 128, "running": false} }], - "condition": {"expression": "comparison", "mode": ">", "left": {"expression": "iuref", "iu": "sum2"}, "right": {"expression": "const", "value": {"type": ["BigNumeric", 38, 2], "low": 30000, "high": 0}}}, - "analyze": {"pipeline": 5, "column-count": 1, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": ">", "left": {"expression": "iu-ref", "iu": "sum2"}, "right": {"expression": "const", "value": {"type": ["BigNumeric", 38, 2], "low": 30000, "high": 0}}}, + "statistics": {"pipeline": 5, "column-count": 1, "output-rows": 2} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[295, 301]], - "cardinality": 128, + "sqlpos": [[299, 305]], + "estimated-rows": 128, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"col-id": 3, "name": "o_totalprice", "type": ["Numeric", 12, 2], "iu": ["scan_totalpri", ["Numeric", 12, 2]]},{"col-id": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.5], "type": "exactprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.5], "type": "exact-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 4, "cpu-cycles": 189, "processed-rows": 128, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 4, "column-count": 4, "cpu-cycles": 12782, "output-rows": 2, "processed-rows": 128, "running": false} }], "early-probed-by": [10], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey"}, "right": {"expression": "iuref", "iu": "GroupByKey6"}}, - "analyze": {"pipeline": 4, "column-count": 4, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey6"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "GroupByKey6"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 4, "memory-bytes": 18552, "output-rows": 2} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 11, - "sqlpos": [[277, 285]], - "cardinality": 129, + "sqlpos": [[281, 289]], + "estimated-rows": 129, "volatility": "stable", "relation-id": 5, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 8, "attributes": [{"col-id": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"col-id": 1, "name": "c_name", "type": ["Varchar", 25], "iu": ["scan_c_name", ["Varchar", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "customer"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.3916], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.3916], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 3, "column-count": 2, "cpu-cycles": 128, "processed-rows": 129, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 3, "column-count": 2, "cpu-cycles": 11661, "output-rows": 2, "processed-rows": 129, "running": false} }], "early-probed-by": [11], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_custkey2"}, "right": {"expression": "iuref", "iu": "scan_custkey"}}, - "analyze": {"pipeline": 3, "column-count": 5, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_custkey2"}, "right": {"expression": "iu-ref", "iu": "scan_custkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 5, "memory-bytes": 18552, "output-rows": 2} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 12, - "sqlpos": [[311, 319]], - "cardinality": 572, + "sqlpos": [[315, 323]], + "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey3", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, - "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.394659], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.394659], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 333, "processed-rows": 572, "running": false, "tuple-count": 15} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 21607, "output-rows": 14, "processed-rows": 572, "running": false} }], "early-probed-by": [12], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey"}, "right": {"expression": "iuref", "iu": "scan_orderkey3"}}, - "analyze": {"pipeline": 2, "column-count": 6, "memory-bytes": 18552, "tuple-count": 14} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey3"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 6, "memory-bytes": 18552, "output-rows": 14} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_c_name"}}, "iu": ["GroupByKey", ["Varchar", 25]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_custkey2"}}, "iu": ["GroupByKey2", ["Integer"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_orderkey"}}, "iu": ["GroupByKey3", ["Integer"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_orderdat"}}, "iu": ["GroupByKey4", ["Date"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_totalpri"}}, "iu": ["GroupByKey5", ["Numeric", 12, 2]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_c_name"}}, "iu": ["GroupByKey", ["Varchar", 25]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_custkey2"}}, "iu": ["GroupByKey2", ["Integer"]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_orderkey"}}, "iu": ["GroupByKey3", ["Integer"]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_orderdat"}}, "iu": ["GroupByKey4", ["Date"]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_totalpri"}}, "iu": ["GroupByKey5", ["Numeric", 12, 2]]}], "grouping-sets": [{"key-indices": [0, 1, 2, 3, 4], "core-indices": [0, 1, 2, 3, 4], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_quantity2"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_quantity2"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2]]}], - "analyze": {"pipeline": 1, "column-count": 6, "cpu-cycles": 235, "memory-bytes": 18552, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 1, "column-count": 6, "cpu-cycles": 9006, "memory-bytes": 18552, "output-rows": 2, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 6, "cpu-cycles": 130, "heap-gc-passes": 0, "memory-bytes": 262160, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 0, "column-count": 6, "cpu-cycles": 8317, "heap-gc-passes": 0, "memory-bytes": 262160, "output-rows": 2, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q19-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q19-analyze.plan.json index 2c902e11..5ab4c52b 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q19-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q19-analyze.plan.json @@ -1,59 +1,63 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4, "nullable"]]}], + "output": [{"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 4, "nullable"]]}], "output-names": ["revenue"], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 2, - "sqlpos": [[150, 188]], - "cardinality": 1, + "sqlpos": [[154, 192]], + "estimated-rows": 1, "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 11.8234, + "estimated-rows": 11.8234, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[213, 221]], - "cardinality": 23, + "sqlpos": [[217, 225]], + "estimated-rows": 23, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"col-id": 13, "name": "l_shipinstruct", "type": ["Char", 25], "iu": ["scan_shipinst", ["Char", 25]]},{"col-id": 14, "name": "l_shipmode", "type": ["Char", 10], "iu": ["scan_shipmode", ["Char", 10]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, - "restrictions": [{"attribute": 13, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "DELIVER IN PERSON"}}}, {"attribute": 14, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "iuref", "iu": "scan_shipmode"}], "values": [{"type": ["Char", 10], "value": "AIR"}, {"type": ["Char", 10], "value": "AIR REG"}], "collates": [null], "modes": ["equals"]}}], + "restrictions": [{"attribute": 13, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "DELIVER IN PERSON"}}}, {"attribute": 14, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_shipmode"}], "values": [{"type": ["Char", 10], "value": "AIR"}, {"type": ["Char", 10], "value": "AIR REG"}], "collates": [null], "modes": ["equals"]}}], "selectivity": 0.0402098, - "analyze": {"pipeline": 2, "column-count": 4, "cpu-cycles": 853, "processed-rows": 572, "running": false, "tuple-count": 23} + "statistics": {"pipeline": 2, "column-count": 4, "cpu-cycles": 40460, "output-rows": 23, "processed-rows": 572, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 5, - "sqlpos": [[231, 235]], - "cardinality": 533, + "sqlpos": [[235, 239]], + "estimated-rows": 533, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 3, "name": "p_brand", "type": ["Char", 10], "iu": ["scan_p_brand", ["Char", 10]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]},{"col-id": 6, "name": "p_container", "type": ["Char", 10], "iu": ["scan_containe", ["Char", 10]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "early-probes": [{"builder": 3, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.043152], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 3, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.043152], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 1, "column-count": 4, "cpu-cycles": 350, "processed-rows": 533, "running": false, "tuple-count": 65} + "statistics": {"pipeline": 1, "column-count": 4, "cpu-cycles": 23552, "output-rows": 27, "processed-rows": 533, "running": false} }], "early-probed-by": [5], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey2"}, "right": {"expression": "iuref", "iu": "scan_partkey"}}, {"expression": "or", "arguments": [{"expression": "and", "arguments": [{"expression": "between", "arguments": [{"expression": "iuref", "iu": "scan_quantity"}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 100}}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 1100}}]}, {"expression": "between", "arguments": [{"expression": "iuref", "iu": "scan_p_size"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 5}}]}, {"expression": "lookup", "input": [{"expression": "iuref", "iu": "scan_containe"}], "values": [{"type": ["Char", 10], "value": "SM BOX"}, {"type": ["Char", 10], "value": "SM CASE"}, {"type": ["Char", 10], "value": "SM PACK"}, {"type": ["Char", 10], "value": "SM PKG"}], "collates": [null], "modes": ["equals"]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#12"}}}]}, {"expression": "and", "arguments": [{"expression": "between", "arguments": [{"expression": "iuref", "iu": "scan_quantity"}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 1000}}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2000}}]}, {"expression": "between", "arguments": [{"expression": "iuref", "iu": "scan_p_size"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 10}}]}, {"expression": "lookup", "input": [{"expression": "iuref", "iu": "scan_containe"}], "values": [{"type": ["Char", 10], "value": "MED BAG"}, {"type": ["Char", 10], "value": "MED BOX"}, {"type": ["Char", 10], "value": "MED PACK"}, {"type": ["Char", 10], "value": "MED PKG"}], "collates": [null], "modes": ["equals"]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#23"}}}]}, {"expression": "and", "arguments": [{"expression": "between", "arguments": [{"expression": "iuref", "iu": "scan_quantity"}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2000}}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 3000}}]}, {"expression": "between", "arguments": [{"expression": "iuref", "iu": "scan_p_size"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 15}}]}, {"expression": "lookup", "input": [{"expression": "iuref", "iu": "scan_containe"}], "values": [{"type": ["Char", 10], "value": "LG BOX"}, {"type": ["Char", 10], "value": "LG CASE"}, {"type": ["Char", 10], "value": "LG PACK"}, {"type": ["Char", 10], "value": "LG PKG"}], "collates": [null], "modes": ["equals"]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#34"}}}]}]}]}, - "analyze": {"pipeline": 1, "column-count": 2, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey2"}, "right": {"expression": "iu-ref", "iu": "scan_partkey"}}, {"expression": "or", "arguments": [{"expression": "and", "arguments": [{"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_quantity"}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 100}}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 1100}}]}, {"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_p_size"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 5}}]}, {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_containe"}], "values": [{"type": ["Char", 10], "value": "SM BOX"}, {"type": ["Char", 10], "value": "SM CASE"}, {"type": ["Char", 10], "value": "SM PACK"}, {"type": ["Char", 10], "value": "SM PKG"}], "collates": [null], "modes": ["equals"]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#12"}}}]}, {"expression": "and", "arguments": [{"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_quantity"}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 1000}}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2000}}]}, {"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_p_size"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 10}}]}, {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_containe"}], "values": [{"type": ["Char", 10], "value": "MED BAG"}, {"type": ["Char", 10], "value": "MED BOX"}, {"type": ["Char", 10], "value": "MED PACK"}, {"type": ["Char", 10], "value": "MED PKG"}], "collates": [null], "modes": ["equals"]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#23"}}}]}, {"expression": "and", "arguments": [{"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_quantity"}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2000}}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 3000}}]}, {"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_p_size"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 15}}]}, {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_containe"}], "values": [{"type": ["Char", 10], "value": "LG BOX"}, {"type": ["Char", 10], "value": "LG CASE"}, {"type": ["Char", 10], "value": "LG PACK"}, {"type": ["Char", 10], "value": "LG PKG"}], "collates": [null], "modes": ["equals"]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#34"}}}]}]}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}, "comparison": "="}], + "residual": {"expression": "or", "arguments": [{"expression": "and", "arguments": [{"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_quantity"}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 100}}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 1100}}]}, {"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_p_size"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 5}}]}, {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_containe"}], "values": [{"type": ["Char", 10], "value": "SM BOX"}, {"type": ["Char", 10], "value": "SM CASE"}, {"type": ["Char", 10], "value": "SM PACK"}, {"type": ["Char", 10], "value": "SM PKG"}], "collates": [null], "modes": ["equals"]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#12"}}}]}, {"expression": "and", "arguments": [{"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_quantity"}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 1000}}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2000}}]}, {"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_p_size"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 10}}]}, {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_containe"}], "values": [{"type": ["Char", 10], "value": "MED BAG"}, {"type": ["Char", 10], "value": "MED BOX"}, {"type": ["Char", 10], "value": "MED PACK"}, {"type": ["Char", 10], "value": "MED PKG"}], "collates": [null], "modes": ["equals"]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#23"}}}]}, {"expression": "and", "arguments": [{"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_quantity"}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2000}}, {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 3000}}]}, {"expression": "between", "arguments": [{"expression": "iu-ref", "iu": "scan_p_size"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 15}}]}, {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_containe"}], "values": [{"type": ["Char", 10], "value": "LG BOX"}, {"type": ["Char", 10], "value": "LG CASE"}, {"type": ["Char", 10], "value": "LG PACK"}, {"type": ["Char", 10], "value": "LG PKG"}], "collates": [null], "modes": ["equals"]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_p_brand"}, "right": {"expression": "const", "value": {"type": ["Char", 10], "value": "Brand#34"}}}]}]}, + "statistics": {"pipeline": 1, "column-count": 2, "memory-bytes": 18552, "output-rows": 1} }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 4, "nullable"]]}], - "analyze": {"pipeline": 0, "column-count": 1, "cpu-cycles": 35, "memory-bytes": 0, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 1, "cpu-cycles": 2478, "memory-bytes": 0, "output-rows": 1, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q2-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q2-analyze.plan.json index 075bf465..12bd5906 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q2-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q2-analyze.plan.json @@ -1,237 +1,254 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1149, 1163], [1209, 1218]], - "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1349, 1363], [1409, 1418]], + "estimated-rows": 1, + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[360, 366]], - "cardinality": 1, + "sqlpos": [[560, 566]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2, - "analyze": {"pipeline": 2, "column-count": 1, "cpu-cycles": 528, "processed-rows": 5, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 2, "column-count": 1, "cpu-cycles": 19159, "output-rows": 1, "processed-rows": 5, "running": false} }, { "operator": "join", "operator-id": 5, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 6, + "estimated-rows": 6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[294, 298]], - "cardinality": 6, + "sqlpos": [[494, 498]], + "estimated-rows": 6, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.011257, - "analyze": {"pipeline": 6, "column-count": 2, "cpu-cycles": 444, "processed-rows": 533, "running": false, "tuple-count": 6} + "statistics": {"pipeline": 6, "column-count": 2, "cpu-cycles": 17089, "output-rows": 6, "processed-rows": 533, "running": false} }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 10, - "sqlpos": [[679, 697]], - "cardinality": 107.4, + "sqlpos": [[879, 897]], + "estimated-rows": 107.4, "inputs": [{ "operator": "join", "operator-id": 11, - "cardinality": 107.4, + "estimated-rows": 107.4, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 103.6, + "estimated-rows": 103.6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 5, + "estimated-rows": 5, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[843, 849]], - "cardinality": 1, + "sqlpos": [[1043, 1049]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2, - "analyze": {"pipeline": 10, "column-count": 1, "cpu-cycles": 83, "processed-rows": 5, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 10, "column-count": 1, "cpu-cycles": 2617, "output-rows": 1, "processed-rows": 5, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[811, 817]], - "cardinality": 25, + "sqlpos": [[1011, 1017]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 9, "column-count": 2, "cpu-cycles": 114, "processed-rows": 25, "running": false, "tuple-count": 5} + "statistics": {"pipeline": 9, "column-count": 2, "cpu-cycles": 7013, "output-rows": 5, "processed-rows": 25, "running": false} }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}}, - "analyze": {"pipeline": 9, "column-count": 1, "memory-bytes": 18552, "tuple-count": 5} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke3"}, "comparison": "="}], + "statistics": {"pipeline": 9, "column-count": 1, "memory-bytes": 18552, "output-rows": 5} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[777, 785]], - "cardinality": 518, + "sqlpos": [[977, 985]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 8, "column-count": 2, "cpu-cycles": 366, "processed-rows": 518, "running": false, "tuple-count": 109} + "statistics": {"pipeline": 8, "column-count": 2, "cpu-cycles": 23584, "output-rows": 90, "processed-rows": 518, "running": false} }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}}, - "analyze": {"pipeline": 8, "column-count": 1, "memory-bytes": 18552, "tuple-count": 90} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}], + "statistics": {"pipeline": 8, "column-count": 1, "memory-bytes": 18552, "output-rows": 90} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 17, - "sqlpos": [[743, 751]], - "cardinality": 537, + "sqlpos": [[943, 951]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 7, "column-count": 3, "cpu-cycles": 318, "processed-rows": 537, "running": false, "tuple-count": 11} + "statistics": {"pipeline": 7, "column-count": 3, "cpu-cycles": 20058, "output-rows": 2, "processed-rows": 537, "running": false} }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}}, - "analyze": {"pipeline": 7, "column-count": 2, "memory-bytes": 18552, "tuple-count": 3} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}], + "statistics": {"pipeline": 7, "column-count": 2, "memory-bytes": 18552, "output-rows": 2} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}], - "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 131, "memory-bytes": 18552, "running": false, "tuple-count": 3} + "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 5303, "memory-bytes": 18552, "output-rows": 2, "running": false} }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}}, - "analyze": {"pipeline": 5, "column-count": 4, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "="}], + "statistics": {"pipeline": 5, "column-count": 4, "memory-bytes": 18552, "output-rows": 2} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[326, 334]], - "cardinality": 537, + "sqlpos": [[526, 534]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 3, "cpu-cycles": 118, "processed-rows": 537, "running": false, "tuple-count": 537} + "statistics": {"pipeline": 4, "column-count": 3, "cpu-cycles": 21582, "output-rows": 537, "processed-rows": 537, "running": false} }], "early-probed-by": [18], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey3"}, "right": {"expression": "iuref", "iu": "GroupByKey"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}]}, - "analyze": {"pipeline": 4, "column-count": 3, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 3, "memory-bytes": 18552, "output-rows": 2} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[308, 316]], - "cardinality": 518, + "sqlpos": [[508, 516]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 3, "column-count": 7, "cpu-cycles": 419, "processed-rows": 518, "running": false, "tuple-count": 5} + "statistics": {"pipeline": 3, "column-count": 7, "cpu-cycles": 15816, "output-rows": 2, "processed-rows": 518, "running": false} }], "early-probed-by": [19], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}}, - "analyze": {"pipeline": 3, "column-count": 8, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 8, "memory-bytes": 18552, "output-rows": 2} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[344, 350]], - "cardinality": 25, + "sqlpos": [[544, 550]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 1, "column-count": 3, "cpu-cycles": 231, "processed-rows": 25, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 35441, "output-rows": 2, "processed-rows": 25, "running": false} }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}}, - "analyze": {"pipeline": 1, "column-count": 9, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}], + "statistics": {"pipeline": 1, "column-count": 9, "memory-bytes": 18552, "output-rows": 2} }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}}, - "analyze": {"pipeline": 1, "column-count": 8, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke4"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}, "comparison": "="}], + "statistics": {"pipeline": 1, "column-count": 8, "memory-bytes": 18552, "output-rows": 2} }], - "analyze": {"pipeline": 0, "column-count": 8, "cpu-cycles": 75, "heap-gc-passes": 0, "memory-bytes": 262160, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 0, "column-count": 8, "cpu-cycles": 5783, "heap-gc-passes": 0, "memory-bytes": 262160, "output-rows": 2, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q2-steps.plan.json b/standalone-app/examples/hyper/tpch/tpch-q2-steps.plan.json index 1b1ee6a4..98eb860d 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q2-steps.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q2-steps.plan.json @@ -1,23 +1,23 @@ {"optimizersteps": [{ "name": "Initial", "plan": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1356, 1370], [1416, 1425]], + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "filter", "operator-id": 3, - "sqlpos": [[388, 1140]], + "sqlpos": [[588, 1340]], "inputs": [{ - "operator": "leftouterjoin", + "operator": "left-outer-join", "operator-id": 4, "inputs": [{ "operator": "join", @@ -32,81 +32,94 @@ "operator": "join", "operator-id": 8, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[301, 305]], + "sqlpos": [[501, 505]], "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 1, "name": "p_name", "type": ["Varchar", 55], "iu": ["scan_p_name", ["Varchar", 55]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 3, "name": "p_brand", "type": ["Char", 10], "iu": ["scan_p_brand", ["Char", 10]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]},{"col-id": 6, "name": "p_container", "type": ["Char", 10], "iu": ["scan_containe", ["Char", 10]]},{"col-id": 7, "name": "p_retailprice", "type": ["Numeric", 12, 2], "iu": ["scan_retailpr", ["Numeric", 12, 2]]},{"col-id": 8, "name": "p_comment", "type": ["Varchar", 23], "iu": ["scan_comment2", ["Varchar", 23]]}], "system-values": {"ctid": ["scan_tid", ["BigInt"]], "table-oid": ["scan_oid", ["RegClass"]], "tuple-flags": ["scan_flags", ["BigInt"]]}, "debug-name": {"classification": "nonsensitive", "value": "part"}, "selectivity": 1 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[315, 323]], + "sqlpos": [[515, 523]], "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "system-values": {"ctid": ["scan_tid2", ["BigInt"]], "table-oid": ["scan_oid2", ["RegClass"]], "tuple-flags": ["scan_flags2", ["BigInt"]]}, "debug-name": {"classification": "nonsensitive", "value": "supplier"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 11, - "sqlpos": [[333, 341]], + "sqlpos": [[533, 541]], "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]},{"col-id": 4, "name": "ps_comment", "type": ["Varchar", 199], "iu": ["scan_comment3", ["Varchar", 199]]}], "system-values": {"ctid": ["scan_tid3", ["BigInt"]], "table-oid": ["scan_oid3", ["RegClass"]], "tuple-flags": ["scan_flags3", ["BigInt"]]}, "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 12, - "sqlpos": [[351, 357]], + "sqlpos": [[551, 557]], "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 3, "name": "n_comment", "type": ["Varchar", 152], "iu": ["scan_comment4", ["Varchar", 152]]}], "system-values": {"ctid": ["scan_tid4", ["BigInt"]], "table-oid": ["scan_oid4", ["RegClass"]], "tuple-flags": ["scan_flags4", ["BigInt"]]}, "debug-name": {"classification": "nonsensitive", "value": "nation"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 13, - "sqlpos": [[367, 373]], + "sqlpos": [[567, 573]], "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]},{"col-id": 2, "name": "r_comment", "type": ["Varchar", 152], "iu": ["scan_comment5", ["Varchar", 152]]}], "system-values": {"ctid": ["scan_tid5", ["BigInt"]], "table-oid": ["scan_oid5", ["RegClass"]], "tuple-flags": ["scan_flags5", ["BigInt"]]}, "debug-name": {"classification": "nonsensitive", "value": "region"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 14, - "sqlpos": [[686, 704]], + "sqlpos": [[886, 904]], "inputs": [{ "operator": "filter", "operator-id": 15, - "sqlpos": [[903, 1130]], + "sqlpos": [[1103, 1330]], "inputs": [{ "operator": "join", "operator-id": 16, @@ -117,93 +130,105 @@ "operator": "join", "operator-id": 18, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[750, 758]], + "sqlpos": [[950, 958]], "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]},{"col-id": 4, "name": "ps_comment", "type": ["Varchar", 199], "iu": ["scan_comment6", ["Varchar", 199]]}], "system-values": {"ctid": ["scan_tid6", ["BigInt"]], "table-oid": ["scan_oid6", ["RegClass"]], "tuple-flags": ["scan_flags6", ["BigInt"]]}, "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, "selectivity": 1 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[784, 792]], + "sqlpos": [[984, 992]], "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name2", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address2", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone2", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal2", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment7", ["Varchar", 101]]}], "system-values": {"ctid": ["scan_tid7", ["BigInt"]], "table-oid": ["scan_oid7", ["RegClass"]], "tuple-flags": ["scan_flags7", ["BigInt"]]}, "debug-name": {"classification": "nonsensitive", "value": "supplier"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 21, - "sqlpos": [[818, 824]], + "sqlpos": [[1018, 1024]], "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name2", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]},{"col-id": 3, "name": "n_comment", "type": ["Varchar", 152], "iu": ["scan_comment8", ["Varchar", 152]]}], "system-values": {"ctid": ["scan_tid8", ["BigInt"]], "table-oid": ["scan_oid8", ["RegClass"]], "tuple-flags": ["scan_flags8", ["BigInt"]]}, "debug-name": {"classification": "nonsensitive", "value": "nation"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 22, - "sqlpos": [[850, 856]], + "sqlpos": [[1050, 1056]], "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]},{"col-id": 2, "name": "r_comment", "type": ["Varchar", 152], "iu": ["scan_comment9", ["Varchar", 152]]}], "system-values": {"ctid": ["scan_tid9", ["BigInt"]], "table-oid": ["scan_oid9", ["RegClass"]], "tuple-flags": ["scan_flags9", ["BigInt"]]}, "debug-name": {"classification": "nonsensitive", "value": "region"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke4"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_r_name2"}, "right": {"expression": "const", "value": {"type": ["Varchar"], "value": "EUROPE"}}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_r_name2"}, "right": {"expression": "const", "value": {"type": ["Varchar"], "value": "EUROPE"}}}]} }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco2"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco2"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_p_size"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke"}, "right": {"expression": "iuref", "iu": "scan_nationke2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_r_name"}, "right": {"expression": "const", "value": {"type": ["Varchar"], "value": "EUROPE"}}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco"}, "right": {"expression": "iuref", "iu": "min"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_p_size"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_r_name"}, "right": {"expression": "const", "value": {"type": ["Varchar"], "value": "EUROPE"}}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco"}, "right": {"expression": "iu-ref", "iu": "min"}}]} }] }] } }, { "name": "Unnesting", "plan": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1356, 1370], [1416, 1425]], + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "filter", "operator-id": 3, - "sqlpos": [[388, 1140]], + "sqlpos": [[588, 1340]], "inputs": [{ - "operator": "leftouterjoin", + "operator": "left-outer-join", "operator-id": 4, "inputs": [{ "operator": "join", @@ -218,81 +243,94 @@ "operator": "join", "operator-id": 8, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[301, 305]], - "cardinality": 533, + "sqlpos": [[501, 505]], + "estimated-rows": 533, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, "selectivity": 1 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[315, 323]], - "cardinality": 518, + "sqlpos": [[515, 523]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 11, - "sqlpos": [[333, 341]], - "cardinality": 537, + "sqlpos": [[533, 541]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 12, - "sqlpos": [[351, 357]], - "cardinality": 25, + "sqlpos": [[551, 557]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 13, - "sqlpos": [[367, 373]], - "cardinality": 5, + "sqlpos": [[567, 573]], + "estimated-rows": 5, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 14, - "sqlpos": [[686, 704]], + "sqlpos": [[886, 904]], "inputs": [{ "operator": "filter", "operator-id": 15, - "sqlpos": [[903, 1130]], + "sqlpos": [[1103, 1330]], "inputs": [{ "operator": "join", "operator-id": 16, @@ -303,87 +341,99 @@ "operator": "join", "operator-id": 18, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[750, 758]], - "cardinality": 537, + "sqlpos": [[950, 958]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, "selectivity": 1 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[784, 792]], - "cardinality": 518, + "sqlpos": [[984, 992]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 21, - "sqlpos": [[818, 824]], - "cardinality": 25, + "sqlpos": [[1018, 1024]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 22, - "sqlpos": [[850, 856]], - "cardinality": 5, + "sqlpos": [[1050, 1056]], + "estimated-rows": 5, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "selectivity": 1 }], - "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} + "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}}, + "predicates": [], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey3"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke4"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_r_name2"}, "right": {"expression": "const", "value": {"type": ["Varchar"], "value": "EUROPE"}}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey3"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_r_name2"}, "right": {"expression": "const", "value": {"type": ["Varchar"], "value": "EUROPE"}}}]} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey3"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey3"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": null, "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco2"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco2"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], - "condition": {"expression": "and", "arguments": [{"expression": "const", "value": {"type": ["Bool"], "value": true}}, {"expression": "comparison", "mode": "is", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "const", "value": {"type": ["Bool"], "value": true}}, {"expression": "comparison", "mode": "is", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "is"}], + "residual": {"expression": "const", "value": {"type": ["Bool"], "value": true}} }], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_p_size"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke"}, "right": {"expression": "iuref", "iu": "scan_nationke2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_r_name"}, "right": {"expression": "const", "value": {"type": ["Varchar"], "value": "EUROPE"}}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco"}, "right": {"expression": "iuref", "iu": "min"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_p_size"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_r_name"}, "right": {"expression": "const", "value": {"type": ["Varchar"], "value": "EUROPE"}}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco"}, "right": {"expression": "iu-ref", "iu": "min"}}]} }] }] } }, { "name": "PredicatePushdown", "plan": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1356, 1370], [1416, 1425]], + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "join", @@ -398,9 +448,9 @@ "operator": "join", "operator-id": 6, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 7, - "sqlpos": [[686, 704]], + "sqlpos": [[886, 904]], "inputs": [{ "operator": "join", "operator-id": 8, @@ -411,167 +461,185 @@ "operator": "join", "operator-id": 10, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 11, - "sqlpos": [[850, 856]], + "sqlpos": [[1050, 1056]], "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, - "residuals": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_r_name"}, "right": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], + "residuals": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_r_name"}, "right": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 12, - "sqlpos": [[818, 824]], - "cardinality": 25, + "sqlpos": [[1018, 1024]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "selectivity": 1 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke2"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 13, - "sqlpos": [[784, 792]], - "cardinality": 518, + "sqlpos": [[984, 992]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, "selectivity": 1 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[750, 758]], - "cardinality": 537, + "sqlpos": [[950, 958]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, "selectivity": 1 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}] }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": null, "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[301, 305]], + "sqlpos": [[501, 505]], "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "residuals": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_p_size"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}], + "residuals": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_p_size"}, "right": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}], "selectivity": 0.011 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[333, 341]], - "cardinality": 537, + "sqlpos": [[533, 541]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, "selectivity": 1 }], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "GroupByKey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}] }, { "operator": "join", "operator-id": 17, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[351, 357]], - "cardinality": 25, + "sqlpos": [[551, 557]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "selectivity": 1 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[315, 323]], - "cardinality": 518, + "sqlpos": [[515, 523]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, "selectivity": 1 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke4"}, "right": {"expression": "iuref", "iu": "scan_nationke3"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke4"}, "right": {"expression": "iu-ref", "iu": "scan_nationke3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}] }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[367, 373]], + "sqlpos": [[567, 573]], "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, - "residuals": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_r_name2"}, "right": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], + "residuals": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_r_name2"}, "right": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke4"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}, "comparison": "="}] }] }] } }, { "name": "Reordering", "plan": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1356, 1370], [1416, 1425]], + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[367, 373]], - "cardinality": 1, + "sqlpos": [[567, 573]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, @@ -580,187 +648,204 @@ }, { "operator": "join", "operator-id": 5, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 6, + "estimated-rows": 6, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[301, 305]], - "cardinality": 6, + "sqlpos": [[501, 505]], + "estimated-rows": 6, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.011257 }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 10, - "sqlpos": [[686, 704]], - "cardinality": 107.4, + "sqlpos": [[886, 904]], + "estimated-rows": 107.4, "inputs": [{ "operator": "join", "operator-id": 11, - "cardinality": 107.4, + "estimated-rows": 107.4, "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 103.6, + "estimated-rows": 103.6, "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 5, + "estimated-rows": 5, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[850, 856]], - "cardinality": 1, + "sqlpos": [[1050, 1056]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[818, 824]], - "cardinality": 25, + "sqlpos": [[1018, 1024]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "selectivity": 1 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[784, 792]], - "cardinality": 518, + "sqlpos": [[984, 992]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, "selectivity": 1 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 17, - "sqlpos": [[750, 758]], - "cardinality": 537, + "sqlpos": [[950, 958]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, "selectivity": 1 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}] }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[333, 341]], - "cardinality": 537, + "sqlpos": [[533, 541]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, "selectivity": 1 }], - "condition": {"expression": "and", "arguments": [{"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "GroupByKey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "min"}}]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "min"}}]}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[315, 323]], - "cardinality": 518, + "sqlpos": [[515, 523]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, "selectivity": 1 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[351, 357]], - "cardinality": 25, + "sqlpos": [[551, 557]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "selectivity": 1 }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}] }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke4"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}, "comparison": "="}] }] }] } }, { "name": "ChoosePhysical", "plan": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1356, 1370], [1416, 1425]], + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[367, 373]], - "cardinality": 1, + "sqlpos": [[567, 573]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, @@ -769,215 +854,232 @@ }, { "operator": "join", "operator-id": 5, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 6, + "estimated-rows": 6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[301, 305]], - "cardinality": 6, + "sqlpos": [[501, 505]], + "estimated-rows": 6, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.011257 }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 10, - "sqlpos": [[686, 704]], - "cardinality": 107.4, + "sqlpos": [[886, 904]], + "estimated-rows": 107.4, "inputs": [{ "operator": "join", "operator-id": 11, - "cardinality": 107.4, + "estimated-rows": 107.4, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 103.6, + "estimated-rows": 103.6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 5, + "estimated-rows": 5, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[850, 856]], - "cardinality": 1, + "sqlpos": [[1050, 1056]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[818, 824]], - "cardinality": 25, + "sqlpos": [[1018, 1024]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[784, 792]], - "cardinality": 518, + "sqlpos": [[984, 992]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 17, - "sqlpos": [[750, 758]], - "cardinality": 537, + "sqlpos": [[950, 958]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}] }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[333, 341]], - "cardinality": 537, + "sqlpos": [[533, 541]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [18], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "GroupByKey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[315, 323]], - "cardinality": 518, + "sqlpos": [[515, 523]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [19], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[351, 357]], - "cardinality": 25, + "sqlpos": [[551, 557]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}] }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke4"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}, "comparison": "="}] }] }] } }, { "name": "ChooseAccessPath", "plan": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1356, 1370], [1416, 1425]], + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[367, 373]], - "cardinality": 1, + "sqlpos": [[567, 573]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, @@ -986,215 +1088,232 @@ }, { "operator": "join", "operator-id": 5, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 6, + "estimated-rows": 6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[301, 305]], - "cardinality": 6, + "sqlpos": [[501, 505]], + "estimated-rows": 6, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.011257 }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 10, - "sqlpos": [[686, 704]], - "cardinality": 107.4, + "sqlpos": [[886, 904]], + "estimated-rows": 107.4, "inputs": [{ "operator": "join", "operator-id": 11, - "cardinality": 107.4, + "estimated-rows": 107.4, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 103.6, + "estimated-rows": 103.6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 5, + "estimated-rows": 5, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[850, 856]], - "cardinality": 1, + "sqlpos": [[1050, 1056]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[818, 824]], - "cardinality": 25, + "sqlpos": [[1018, 1024]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[784, 792]], - "cardinality": 518, + "sqlpos": [[984, 992]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 17, - "sqlpos": [[750, 758]], - "cardinality": 537, + "sqlpos": [[950, 958]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}] }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[333, 341]], - "cardinality": 537, + "sqlpos": [[533, 541]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [18], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "GroupByKey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[315, 323]], - "cardinality": 518, + "sqlpos": [[515, 523]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [19], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[351, 357]], - "cardinality": 25, + "sqlpos": [[551, 557]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}] }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke4"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}, "comparison": "="}] }] }] } }, { "name": "Deduplication", "plan": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1356, 1370], [1416, 1425]], + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[367, 373]], - "cardinality": 1, + "sqlpos": [[567, 573]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, @@ -1203,217 +1322,234 @@ }, { "operator": "join", "operator-id": 5, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 6, + "estimated-rows": 6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[301, 305]], - "cardinality": 6, + "sqlpos": [[501, 505]], + "estimated-rows": 6, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.011257 }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 10, - "sqlpos": [[686, 704]], - "cardinality": 107.4, + "sqlpos": [[886, 904]], + "estimated-rows": 107.4, "inputs": [{ "operator": "join", "operator-id": 11, - "cardinality": 107.4, + "estimated-rows": 107.4, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 103.6, + "estimated-rows": 103.6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 5, + "estimated-rows": 5, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[850, 856]], - "cardinality": 1, + "sqlpos": [[1050, 1056]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[818, 824]], - "cardinality": 25, + "sqlpos": [[1018, 1024]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[784, 792]], - "cardinality": 518, + "sqlpos": [[984, 992]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 17, - "sqlpos": [[750, 758]], - "cardinality": 537, + "sqlpos": [[950, 958]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}] }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[333, 341]], - "cardinality": 537, + "sqlpos": [[533, 541]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [18], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "GroupByKey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[315, 323]], - "cardinality": 518, + "sqlpos": [[515, 523]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [19], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[351, 357]], - "cardinality": 25, + "sqlpos": [[551, 557]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}] }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke4"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}, "comparison": "="}] }] }] } }, { "name": "CachingAndBatching", "plan": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1156, 1170], [1216, 1225]], - "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1356, 1370], [1416, 1425]], + "estimated-rows": 1, + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[367, 373]], - "cardinality": 1, + "sqlpos": [[567, 573]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, @@ -1422,217 +1558,234 @@ }, { "operator": "join", "operator-id": 5, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 6, + "estimated-rows": 6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[301, 305]], - "cardinality": 6, + "sqlpos": [[501, 505]], + "estimated-rows": 6, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.011257 }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 10, - "sqlpos": [[686, 704]], - "cardinality": 107.4, + "sqlpos": [[886, 904]], + "estimated-rows": 107.4, "inputs": [{ "operator": "join", "operator-id": 11, - "cardinality": 107.4, + "estimated-rows": 107.4, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 103.6, + "estimated-rows": 103.6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 5, + "estimated-rows": 5, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[850, 856]], - "cardinality": 1, + "sqlpos": [[1050, 1056]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[818, 824]], - "cardinality": 25, + "sqlpos": [[1018, 1024]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[784, 792]], - "cardinality": 518, + "sqlpos": [[984, 992]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 17, - "sqlpos": [[750, 758]], - "cardinality": 537, + "sqlpos": [[950, 958]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}] }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[333, 341]], - "cardinality": 537, + "sqlpos": [[533, 541]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [18], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "GroupByKey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[315, 323]], - "cardinality": 518, + "sqlpos": [[515, 523]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [19], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[351, 357]], - "cardinality": 25, + "sqlpos": [[551, 557]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}] }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke4"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}, "comparison": "="}] }] }] } }, { "name": "Final", "plan": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1156, 1170], [1216, 1225]], - "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1356, 1370], [1416, 1425]], + "estimated-rows": 1, + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[367, 373]], - "cardinality": 1, + "sqlpos": [[567, 573]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, @@ -1641,184 +1794,200 @@ }, { "operator": "join", "operator-id": 5, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 6, + "estimated-rows": 6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[301, 305]], - "cardinality": 6, + "sqlpos": [[501, 505]], + "estimated-rows": 6, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.011257 }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 10, - "sqlpos": [[686, 704]], - "cardinality": 107.4, + "sqlpos": [[886, 904]], + "estimated-rows": 107.4, "inputs": [{ "operator": "join", "operator-id": 11, - "cardinality": 107.4, + "estimated-rows": 107.4, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 103.6, + "estimated-rows": 103.6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 5, + "estimated-rows": 5, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[850, 856]], - "cardinality": 1, + "sqlpos": [[1050, 1056]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[818, 824]], - "cardinality": 25, + "sqlpos": [[1018, 1024]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[784, 792]], - "cardinality": 518, + "sqlpos": [[984, 992]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 17, - "sqlpos": [[750, 758]], - "cardinality": 537, + "sqlpos": [[950, 958]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}] }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[333, 341]], - "cardinality": 537, + "sqlpos": [[533, 541]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [18], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "GroupByKey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[315, 323]], - "cardinality": 518, + "sqlpos": [[515, 523]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [19], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[351, 357]], - "cardinality": 25, + "sqlpos": [[551, 557]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}] }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke4"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}, "comparison": "="}] }] }] } diff --git a/standalone-app/examples/hyper/tpch/tpch-q2.plan.json b/standalone-app/examples/hyper/tpch/tpch-q2.plan.json index 98c939aa..ffcaf7a0 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q2.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q2.plan.json @@ -1,31 +1,32 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iuref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iuref", "iu": ["scan_comment", ["Varchar", 101]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_acctbal", ["Numeric", 12, 2]]}, {"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_n_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_partkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["scan_p_mfgr", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}, {"expression": "iu-ref", "iu": ["scan_s_phone", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["scan_comment", ["Varchar", 101]]}], "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1140, 1154], [1200, 1209]], - "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], + "sqlpos": [[1340, 1354], [1400, 1409]], + "estimated-rows": 1, + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "scan_n_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "scan_partkey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[351, 357]], - "cardinality": 1, + "sqlpos": [[551, 557]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, @@ -34,184 +35,200 @@ }, { "operator": "join", "operator-id": 5, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 1.20901, + "estimated-rows": 1.20901, "method": "hash", "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 6, + "estimated-rows": 6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[285, 289]], - "cardinality": 6, + "sqlpos": [[485, 489]], + "estimated-rows": 6, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"col-id": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 5, "mode": "=", "value": {"expression": "const", "value": {"type": ["Integer"], "value": 15}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_type"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%BRASS"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.011257 }, { - "operator": "groupby", + "operator": "group-by", "operator-id": 10, - "sqlpos": [[670, 688]], - "cardinality": 107.4, + "sqlpos": [[870, 888]], + "estimated-rows": 107.4, "inputs": [{ "operator": "join", "operator-id": 11, - "cardinality": 107.4, + "estimated-rows": 107.4, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 103.6, + "estimated-rows": 103.6, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 5, + "estimated-rows": 5, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[834, 840]], - "cardinality": 1, + "sqlpos": [[1034, 1040]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "EUROPE"}}}], "selectivity": 0.2 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[802, 808]], - "cardinality": 25, + "sqlpos": [[1002, 1008]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke3"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[768, 776]], - "cardinality": 518, + "sqlpos": [[968, 976]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 17, - "sqlpos": [[734, 742]], - "cardinality": 537, + "sqlpos": [[934, 942]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 11, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 8, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.011257], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}] }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_supplyco"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[317, 325]], - "cardinality": 537, + "sqlpos": [[517, 525]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3, 0, 0], "num-equality-predicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [18], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "GroupByKey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}]} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "right": {"expression": "iu-ref", "iu": "min"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey3"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "min"}, "right": {"expression": "iu-ref", "iu": "scan_supplyco2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "GroupByKey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[299, 307]], - "cardinality": 518, + "sqlpos": [[499, 507]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"col-id": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"col-id": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"col-id": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00233399], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [19], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "="}] }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[335, 341]], - "cardinality": 25, + "sqlpos": [[535, 541]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0483602], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 3, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1 }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}] }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke4"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke4"}, "comparison": "="}] }] }] } diff --git a/standalone-app/examples/hyper/tpch/tpch-q20-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q20-analyze.plan.json index 096ce615..52a0c6c6 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q20-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q20-analyze.plan.json @@ -1,152 +1,161 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["scan_address", ["Varchar", 40]]}], "output-names": ["s_name", "s_address"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1385, 1391]], - "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}], + "sqlpos": [[1389, 1395]], + "estimated-rows": 1, + "criterion": [{"value": {"expression": "iu-ref", "iu": "scan_s_name"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "join", "operator-id": 3, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[207, 213]], - "cardinality": 1, + "sqlpos": [[211, 217]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "CANADA"}}}], "selectivity": 0.04, - "analyze": {"pipeline": 2, "column-count": 1, "cpu-cycles": 630, "processed-rows": 25, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 2, "column-count": 1, "cpu-cycles": 20805, "output-rows": 1, "processed-rows": 25, "running": false} }, { - "operator": "rightsemijoin", + "operator": "right-semi-join", "operator-id": 5, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "filter-join-iu": ["scan_suppkey", ["Integer"]], "inputs": [{ - "operator": "leftsemijoin", + "operator": "left-semi-join", "operator-id": 6, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0, 1], "inputs": [{ - "operator": "rightsemijoin", + "operator": "right-semi-join", "operator-id": 7, - "cardinality": 4.01869, + "estimated-rows": 4.01869, "method": "hash", "compute-left-bounds": [0], "filter-join-iu": ["scan_partkey", ["Integer"]], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[583, 587]], - "cardinality": 4, + "sqlpos": [[587, 591]], + "estimated-rows": 4, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "p_name", "type": ["Varchar", 55], "iu": ["scan_p_name", ["Varchar", 55]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 1, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_name"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "forest%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 1, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_name"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "forest%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.00750469, - "analyze": {"pipeline": 5, "column-count": 1, "cpu-cycles": 608, "processed-rows": 533, "running": false, "tuple-count": 4} + "statistics": {"pipeline": 5, "column-count": 1, "cpu-cycles": 17179, "output-rows": 4, "processed-rows": 533, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[346, 354]], - "cardinality": 537, + "sqlpos": [[350, 358]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 7, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00750469], "type": "exactprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00750469], "type": "exact-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 3, "cpu-cycles": 277, "processed-rows": 537, "running": false, "tuple-count": 4} + "statistics": {"pipeline": 4, "column-count": 3, "cpu-cycles": 17196, "output-rows": 4, "processed-rows": 537, "running": false} }], "early-probed-by": [9], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey2"}}, - "analyze": {"pipeline": 4, "column-count": 3, "memory-bytes": 18552, "tuple-count": 4} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey2"}, "right": {"expression": "iu-ref", "iu": "scan_partkey"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 3, "memory-bytes": 18552, "output-rows": 4} }, { "operator": "map", "operator-id": 10, - "sqlpos": [[837, 858]], - "cardinality": 150, + "sqlpos": [[841, 862]], + "estimated-rows": 150, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 11, - "sqlpos": [[843, 858]], - "cardinality": 150, + "sqlpos": [[847, 862]], + "estimated-rows": 150, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 12, - "sqlpos": [[936, 944]], - "cardinality": 150, + "sqlpos": [[940, 948]], + "estimated-rows": 150, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"col-id": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 10, "mode": "[)", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449354}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2449719}}}], "residuals": [{"expression": "const", "value": {"type": ["Bool"], "value": true}}, {"expression": "const", "value": {"type": ["Bool"], "value": true}}], - "early-probes": [{"builder": 6, "attributes": [1, 2, 4294967295], "num-equality-predicates": 2, "selectivities": [0.00753976, 0.00775809, null], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [1, 2, 4294967295], "num-equality-predicates": 2, "selectivities": [0.00753976, 0.00775809, null], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.262238, - "analyze": {"pipeline": 6, "column-count": 3, "cpu-cycles": 177, "processed-rows": 572, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 6, "column-count": 3, "cpu-cycles": 15655, "output-rows": 2, "processed-rows": 572, "running": false} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_suppkey3"}}, "iu": ["GroupByKey", ["Integer"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_partkey3"}}, "iu": ["GroupByKey2", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, "iu": ["GroupByKey", ["Integer"]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_partkey3"}}, "iu": ["GroupByKey2", ["Integer"]]}], "grouping-sets": [{"key-indices": [0, 1], "core-indices": [0, 1], "behavior": "regular"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_quantity"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2, "nullable"]]}], - "analyze": {"pipeline": 3, "column-count": 3, "cpu-cycles": 160, "memory-bytes": 18552, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 3, "column-count": 3, "cpu-cycles": 5932, "memory-bytes": 18552, "output-rows": 2, "running": false} }], - "values": [{"iu": ["map", ["BigNumeric", 38, 3, "nullable"]], "value": {"expression": "mul", "left": {"expression": "iuref", "iu": "sum"}, "right": {"expression": "const", "value": {"type": ["Numeric", 2, 1], "value": 5}}}}], - "analyze": {"pipeline": 3, "column-count": 3, "tuple-count": 2} + "values": [{"iu": ["map", ["BigNumeric", 38, 3, "nullable"]], "value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "sum"}, "right": {"expression": "const", "value": {"type": ["Numeric", 2, 1], "value": 5}}}}], + "statistics": {"pipeline": 3, "column-count": 3, "output-rows": 2} }], "early-probed-by": [12], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "is", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey2"}}, {"expression": "comparison", "mode": "is", "left": {"expression": "iuref", "iu": "scan_suppkey2"}, "right": {"expression": "iuref", "iu": "GroupByKey"}}, {"expression": "comparison", "mode": ">", "left": {"expression": "iuref", "iu": "scan_availqty"}, "right": {"expression": "iuref", "iu": "map"}}]}, - "analyze": {"pipeline": 3, "column-count": 1, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "is", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey2"}}, {"expression": "comparison", "mode": "is", "left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}}, {"expression": "comparison", "mode": ">", "left": {"expression": "iu-ref", "iu": "scan_availqty"}, "right": {"expression": "iu-ref", "iu": "map"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "GroupByKey2"}, "comparison": "is"}, {"left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "GroupByKey"}, "comparison": "is"}, {"left": {"expression": "iu-ref", "iu": "scan_availqty"}, "right": {"expression": "iu-ref", "iu": "map"}, "comparison": ">"}], + "statistics": {"pipeline": 3, "column-count": 1, "memory-bytes": 18552, "output-rows": 1} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 13, - "sqlpos": [[189, 197]], - "cardinality": 518, + "sqlpos": [[193, 201]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0019305], "type": "exactprobe", "pass-on-nulls": false}, {"builder": 3, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0019305], "type": "exact-probe", "pass-on-nulls": false}, {"builder": 3, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 1, "column-count": 4, "cpu-cycles": 266, "processed-rows": 518, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 1, "column-count": 4, "cpu-cycles": 14834, "output-rows": 1, "processed-rows": 518, "running": false} }], "early-probed-by": [13], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}}, - "analyze": {"pipeline": 1, "column-count": 3, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey"}, "comparison": "="}], + "statistics": {"pipeline": 1, "column-count": 3, "memory-bytes": 18552, "output-rows": 1} }], "early-probed-by": [13], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}}, - "analyze": {"pipeline": 1, "column-count": 2, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}], + "statistics": {"pipeline": 1, "column-count": 2, "memory-bytes": 18552, "output-rows": 1} }], - "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 33, "memory-bytes": 262152, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 2798, "memory-bytes": 262152, "output-rows": 1, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q21-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q21-analyze.plan.json index 601ef7bc..4ffe4c51 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q21-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q21-analyze.plan.json @@ -1,167 +1,178 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["count", ["BigInt"]]}], "output-names": ["s_name", "numwait"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1140, 1152], [1169, 1179]], - "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "count"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], + "sqlpos": [[1144, 1156], [1173, 1183]], + "estimated-rows": 1, + "criterion": [{"value": {"expression": "iu-ref", "iu": "count"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[1099, 1122], [166, 174]], - "cardinality": 1, + "sqlpos": [[1103, 1126], [170, 178]], + "estimated-rows": 1, "inputs": [{ - "operator": "leftsemijoin", + "operator": "left-semi-join", "operator-id": 4, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0, 1], "inputs": [{ "operator": "join", "operator-id": 5, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "leftantijoin", + "operator": "left-anti-join", "operator-id": 6, - "cardinality": 1.2167, + "estimated-rows": 1.2167, "method": "hash", "compute-left-bounds": [0, 1], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 11.44, + "estimated-rows": 11.44, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 20.72, + "estimated-rows": 20.72, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[254, 260]], - "cardinality": 1, + "sqlpos": [[258, 264]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "SAUDI ARABIA"}}}], "selectivity": 0.04, - "analyze": {"pipeline": 7, "column-count": 1, "cpu-cycles": 512, "processed-rows": 25, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 7, "column-count": 1, "cpu-cycles": 19686, "output-rows": 1, "processed-rows": 25, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[199, 207]], - "cardinality": 518, + "sqlpos": [[203, 211]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 8, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 8, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 6, "column-count": 3, "cpu-cycles": 288, "processed-rows": 518, "running": false, "tuple-count": 35} + "statistics": {"pipeline": 6, "column-count": 3, "cpu-cycles": 16184, "output-rows": 35, "processed-rows": 518, "running": false} }], "early-probed-by": [10], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}}, - "analyze": {"pipeline": 6, "column-count": 2, "memory-bytes": 18552, "tuple-count": 35} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}], + "statistics": {"pipeline": 6, "column-count": 2, "memory-bytes": 18552, "output-rows": 35} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 11, - "sqlpos": [[217, 225]], - "cardinality": 286, + "sqlpos": [[221, 229]], + "estimated-rows": 286, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 11, "name": "l_commitdate", "type": ["Date"], "iu": ["scan_commitda", ["Date"]]},{"col-id": 12, "name": "l_receiptdate", "type": ["Date"], "iu": ["scan_receiptd", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "l1"}, - "residuals": [{"expression": "comparison", "mode": ">", "left": {"expression": "iuref", "iu": "scan_receiptd"}, "right": {"expression": "iuref", "iu": "scan_commitda"}}], - "early-probes": [{"builder": 7, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "residuals": [{"expression": "comparison", "mode": ">", "left": {"expression": "iu-ref", "iu": "scan_receiptd"}, "right": {"expression": "iu-ref", "iu": "scan_commitda"}}], + "early-probes": [{"builder": 7, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.5, - "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 362, "processed-rows": 572, "running": false, "tuple-count": 87} + "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 22567, "output-rows": 29, "processed-rows": 572, "running": false} }], "early-probed-by": [11], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}}, - "analyze": {"pipeline": 5, "column-count": 3, "memory-bytes": 18552, "tuple-count": 27} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}], + "statistics": {"pipeline": 5, "column-count": 3, "memory-bytes": 18552, "output-rows": 27} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 12, - "sqlpos": [[807, 815]], - "cardinality": 286, + "sqlpos": [[811, 819]], + "estimated-rows": 286, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 11, "name": "l_commitdate", "type": ["Date"], "iu": ["scan_commitda2", ["Date"]]},{"col-id": 12, "name": "l_receiptdate", "type": ["Date"], "iu": ["scan_receiptd2", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "l3"}, - "residuals": [{"expression": "comparison", "mode": ">", "left": {"expression": "iuref", "iu": "scan_receiptd2"}, "right": {"expression": "iuref", "iu": "scan_commitda2"}}], - "early-probes": [{"builder": 6, "attributes": [0, 2], "num-equality-predicates": 1, "selectivities": [0.089375, null], "type": "hashprobe", "pass-on-nulls": false}], + "residuals": [{"expression": "comparison", "mode": ">", "left": {"expression": "iu-ref", "iu": "scan_receiptd2"}, "right": {"expression": "iu-ref", "iu": "scan_commitda2"}}], + "early-probes": [{"builder": 6, "attributes": [0, 2], "num-equality-predicates": 1, "selectivities": [0.089375, null], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.5, - "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 291, "processed-rows": 572, "running": false, "tuple-count": 115} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 18365, "output-rows": 79, "processed-rows": 572, "running": false} }], "early-probed-by": [12], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey2"}, "right": {"expression": "iuref", "iu": "scan_orderkey"}}, {"expression": "comparison", "mode": "<>", "left": {"expression": "iuref", "iu": "scan_suppkey3"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}}]}, - "analyze": {"pipeline": 4, "column-count": 3, "memory-bytes": 18560, "tuple-count": 5} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}}, {"expression": "comparison", "mode": "<>", "left": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "comparison": "<>"}], + "statistics": {"pipeline": 4, "column-count": 3, "memory-bytes": 18560, "output-rows": 5} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 13, - "sqlpos": [[238, 244]], - "cardinality": 73, + "sqlpos": [[242, 248]], + "estimated-rows": 73, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey3", ["Integer"]]},{"col-id": 2, "name": "o_orderstatus", "type": ["Char1"], "iu": ["scan_ordersta", ["Char1"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, "restrictions": [{"attribute": 2, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char1"], "value": 70}}}], - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00950546], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00950546], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.570312, - "analyze": {"pipeline": 3, "column-count": 1, "cpu-cycles": 154, "processed-rows": 128, "running": false, "tuple-count": 6} + "statistics": {"pipeline": 3, "column-count": 1, "cpu-cycles": 8554, "output-rows": 4, "processed-rows": 128, "running": false} }], "early-probed-by": [13], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey3"}, "right": {"expression": "iuref", "iu": "scan_orderkey"}}, - "analyze": {"pipeline": 3, "column-count": 3, "memory-bytes": 18552, "tuple-count": 4} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey3"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey3"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 3, "memory-bytes": 18552, "output-rows": 4} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[533, 541]], - "cardinality": 572, + "sqlpos": [[537, 545]], + "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey4", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "l2"}, - "early-probes": [{"builder": 4, "attributes": [0, 2], "num-equality-predicates": 1, "selectivities": [0.0078125, null], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 4, "attributes": [0, 2], "num-equality-predicates": 1, "selectivities": [0.0078125, null], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 272, "processed-rows": 572, "running": false, "tuple-count": 20} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 12258, "output-rows": 5, "processed-rows": 572, "running": false} }], "early-probed-by": [14], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey4"}, "right": {"expression": "iuref", "iu": "scan_orderkey"}}, {"expression": "comparison", "mode": "<>", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}}]}, - "analyze": {"pipeline": 2, "column-count": 1, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey4"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}}, {"expression": "comparison", "mode": "<>", "left": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey4"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey4"}, "comparison": "<>"}], + "statistics": {"pipeline": 2, "column-count": 1, "memory-bytes": 18552, "output-rows": 1} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_s_name"}}, "iu": ["GroupByKey", ["Char", 25]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_s_name"}}, "iu": ["GroupByKey", ["Char", 25]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, "aggregates": [{"source": null, "operation": {"aggregate": "count"}, "iu": ["count", ["BigInt"]]}], - "analyze": {"pipeline": 1, "column-count": 2, "cpu-cycles": 288, "memory-bytes": 18552, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 38853, "memory-bytes": 18552, "output-rows": 1, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 46, "heap-gc-passes": 0, "memory-bytes": 262152, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 3262, "heap-gc-passes": 0, "memory-bytes": 262152, "output-rows": 1, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q22-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q22-analyze.plan.json index c770894b..60bf38e8 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q22-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q22-analyze.plan.json @@ -1,114 +1,119 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 6.26608, + "estimated-rows": 6.26608, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Varchar"]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Varchar"]]}, {"expression": "iu-ref", "iu": ["count", ["BigInt"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 2]]}], "output-names": ["cntrycode", "numcust", "totacctbal"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1490, 1499]], - "cardinality": 6.26608, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], + "sqlpos": [[1494, 1503]], + "estimated-rows": 6.26608, + "criterion": [{"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[1446, 1472], [169, 177], [198, 212]], - "cardinality": 6.26608, + "sqlpos": [[1450, 1476], [173, 181], [202, 216]], + "estimated-rows": 6.26608, "inputs": [{ "operator": "map", "operator-id": 4, - "sqlpos": [[289, 333]], - "cardinality": 6.96232, + "sqlpos": [[293, 337]], + "estimated-rows": 6.96232, "inputs": [{ "operator": "join", "operator-id": 5, - "cardinality": 6.96232, + "estimated-rows": 6.96232, "method": "hash", "single-match": true, "compute-left-bounds": [0], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 6, - "sqlpos": [[700, 714]], - "cardinality": 1, + "sqlpos": [[704, 718]], + "estimated-rows": 1, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 7, - "sqlpos": [[792, 800]], - "cardinality": 37, + "sqlpos": [[796, 804]], + "estimated-rows": 37, "volatility": "stable", "relation-id": 5, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 8, "attributes": [{"col-id": 4, "name": "c_phone", "type": ["Char", 15], "iu": ["scan_c_phone", ["Char", 15]]},{"col-id": 5, "name": "c_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "customer"}, - "restrictions": [{"attribute": 5, "mode": ">", "value": {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 0}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "substring", "arguments": [{"expression": "iuref", "iu": "scan_c_phone"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 2}}]}], "values": [{"type": ["Varchar"], "value": "13"}, {"type": ["Varchar"], "value": "17"}, {"type": ["Varchar"], "value": "18"}, {"type": ["Varchar"], "value": "23"}, {"type": ["Varchar"], "value": "29"}, {"type": ["Varchar"], "value": "30"}, {"type": ["Varchar"], "value": "31"}], "collates": [null], "modes": ["equals"]}}], + "restrictions": [{"attribute": 5, "mode": ">", "value": {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 0}}}, {"attribute": 4, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "substring", "arguments": [{"expression": "iu-ref", "iu": "scan_c_phone"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 2}}]}], "values": [{"type": ["Varchar"], "value": "13"}, {"type": ["Varchar"], "value": "17"}, {"type": ["Varchar"], "value": "18"}, {"type": ["Varchar"], "value": "23"}, {"type": ["Varchar"], "value": "29"}, {"type": ["Varchar"], "value": "30"}, {"type": ["Varchar"], "value": "31"}], "collates": [null], "modes": ["equals"]}}], "selectivity": 0.286822, - "analyze": {"pipeline": 4, "column-count": 1, "cpu-cycles": 745, "processed-rows": 129, "running": false, "tuple-count": 37} + "statistics": {"pipeline": 4, "column-count": 1, "cpu-cycles": 38240, "output-rows": 37, "processed-rows": 129, "running": false} }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6, "nullable"]]}], - "analyze": {"pipeline": 3, "column-count": 1, "cpu-cycles": 101, "memory-bytes": 0, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 3, "column-count": 1, "cpu-cycles": 6516, "memory-bytes": 0, "output-rows": 1, "running": false} }, { - "operator": "leftantijoin", + "operator": "left-anti-join", "operator-id": 8, - "cardinality": 13.9246, + "estimated-rows": 13.9246, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[414, 422]], - "cardinality": 38, + "sqlpos": [[418, 426]], + "estimated-rows": 38, "volatility": "stable", "relation-id": 5, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 8, "attributes": [{"col-id": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"col-id": 4, "name": "c_phone", "type": ["Char", 15], "iu": ["scan_c_phone2", ["Char", 15]]},{"col-id": 5, "name": "c_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal2", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "customer"}, - "restrictions": [{"attribute": 4, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "substring", "arguments": [{"expression": "iuref", "iu": "scan_c_phone2"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 2}}]}], "values": [{"type": ["Varchar"], "value": "13"}, {"type": ["Varchar"], "value": "17"}, {"type": ["Varchar"], "value": "18"}, {"type": ["Varchar"], "value": "23"}, {"type": ["Varchar"], "value": "29"}, {"type": ["Varchar"], "value": "30"}, {"type": ["Varchar"], "value": "31"}], "collates": [null], "modes": ["equals"]}}], - "early-probes": [{"builder": 5, "attributes": [5], "num-equality-predicates": 0, "selectivities": [null], "type": "pruningonly", "pass-on-nulls": false}], + "restrictions": [{"attribute": 4, "mode": "lambda", "expression": {"expression": "lookup", "input": [{"expression": "substring", "arguments": [{"expression": "iu-ref", "iu": "scan_c_phone2"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 2}}]}], "values": [{"type": ["Varchar"], "value": "13"}, {"type": ["Varchar"], "value": "17"}, {"type": ["Varchar"], "value": "18"}, {"type": ["Varchar"], "value": "23"}, {"type": ["Varchar"], "value": "29"}, {"type": ["Varchar"], "value": "30"}, {"type": ["Varchar"], "value": "31"}], "collates": [null], "modes": ["equals"]}}], + "early-probes": [{"builder": 5, "attributes": [5], "num-equality-predicates": 0, "selectivities": [null], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 0.294574, - "analyze": {"pipeline": 5, "column-count": 3, "cpu-cycles": 411, "processed-rows": 129, "running": false, "tuple-count": 38} + "statistics": {"pipeline": 5, "column-count": 3, "cpu-cycles": 16824, "output-rows": 38, "processed-rows": 129, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[1291, 1297]], - "cardinality": 128, + "sqlpos": [[1295, 1301]], + "estimated-rows": 128, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, "might-scan-domain": true, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, - "early-probes": [{"builder": 8, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.294574], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 8, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.294574], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 2, "column-count": 1, "cpu-cycles": 154, "processed-rows": 128, "running": false, "tuple-count": 47} + "statistics": {"pipeline": 2, "column-count": 1, "cpu-cycles": 10746, "output-rows": 38, "processed-rows": 128, "running": false} }], "early-probed-by": [10], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_custkey2"}, "right": {"expression": "iuref", "iu": "scan_custkey"}}, - "analyze": {"pipeline": 2, "column-count": 2, "memory-bytes": 18560, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_custkey2"}, "right": {"expression": "iu-ref", "iu": "scan_custkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 2, "memory-bytes": 18560, "output-rows": 1} }], "early-probed-by": [9], - "condition": {"expression": "comparison", "mode": ">", "left": {"expression": "iuref", "iu": "scan_acctbal2"}, "right": {"expression": "iuref", "iu": "avg"}}, - "analyze": {"pipeline": 2, "column-count": 2, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": ">", "left": {"expression": "iu-ref", "iu": "scan_acctbal2"}, "right": {"expression": "iu-ref", "iu": "avg"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "avg"}, "right": {"expression": "iu-ref", "iu": "scan_acctbal2"}, "comparison": "<"}], + "statistics": {"pipeline": 2, "column-count": 2, "memory-bytes": 18552, "output-rows": 1} }], - "values": [{"iu": ["map", ["Varchar"]], "value": {"expression": "substring", "arguments": [{"expression": "iuref", "iu": "scan_c_phone2"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 2}}]}}], - "analyze": {"pipeline": 2, "column-count": 2, "tuple-count": 1} + "values": [{"iu": ["map", ["Varchar"]], "value": {"expression": "substring", "arguments": [{"expression": "iu-ref", "iu": "scan_c_phone2"}, {"expression": "const", "value": {"type": ["Integer"], "value": 1}}, {"expression": "const", "value": {"type": ["Integer"], "value": 2}}]}}], + "statistics": {"pipeline": 2, "column-count": 2, "output-rows": 1} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "map"}}, "iu": ["GroupByKey", ["Varchar"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "map"}}, "iu": ["GroupByKey", ["Varchar"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_acctbal2"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_acctbal2"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2]]}, {"source": null, "operation": {"aggregate": "count"}, "iu": ["count", ["BigInt"]]}], - "analyze": {"pipeline": 1, "column-count": 3, "cpu-cycles": 183, "memory-bytes": 18552, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 16173, "memory-bytes": 18552, "output-rows": 1, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 3, "cpu-cycles": 45, "memory-bytes": 262152, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 3, "cpu-cycles": 3611, "memory-bytes": 262152, "output-rows": 1, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q3-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q3-analyze.plan.json index ca9b02d3..26a1c1d1 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q3-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q3-analyze.plan.json @@ -1,95 +1,100 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 10, + "estimated-rows": 10, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4]]}, {"expression": "iuref", "iu": ["GroupByKey2", ["Date"]]}, {"expression": "iuref", "iu": ["GroupByKey3", ["Integer"]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 4]]}, {"expression": "iu-ref", "iu": ["GroupByKey2", ["Date"]]}, {"expression": "iu-ref", "iu": ["GroupByKey3", ["Integer"]]}], "output-names": ["l_orderkey", "revenue", "o_orderdate", "o_shippriority"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[608, 620], [642, 651]], - "cardinality": 10, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}], + "sqlpos": [[612, 624], [646, 655]], + "estimated-rows": 10, + "criterion": [{"value": {"expression": "iu-ref", "iu": "sum"}, "descending": true, "null-first": true}, {"value": {"expression": "iu-ref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}], "limit": 10, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[518, 590], [169, 208]], - "cardinality": 57.5016, + "sqlpos": [[522, 594], [173, 212]], + "estimated-rows": 57.5016, "inputs": [{ "operator": "join", "operator-id": 4, - "cardinality": 63.8906, + "estimated-rows": 63.8906, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 5, - "cardinality": 29, + "estimated-rows": 29, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 6, - "sqlpos": [[278, 286]], - "cardinality": 29, + "sqlpos": [[282, 290]], + "estimated-rows": 29, "volatility": "stable", "relation-id": 5, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 8, "attributes": [{"col-id": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"col-id": 6, "name": "c_mktsegment", "type": ["Char", 10], "iu": ["scan_mktsegme", ["Char", 10]]}], "debug-name": {"classification": "nonsensitive", "value": "customer"}, "restrictions": [{"attribute": 6, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 10], "value": "BUILDING"}}}], "selectivity": 0.224806, - "analyze": {"pipeline": 4, "column-count": 1, "cpu-cycles": 592, "processed-rows": 129, "running": false, "tuple-count": 29} + "statistics": {"pipeline": 4, "column-count": 1, "cpu-cycles": 23345, "output-rows": 29, "processed-rows": 129, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 7, - "sqlpos": [[296, 302]], - "cardinality": 75, + "sqlpos": [[300, 306]], + "estimated-rows": 75, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"col-id": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]},{"col-id": 7, "name": "o_shippriority", "type": ["Integer"], "iu": ["scan_shipprio", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, "restrictions": [{"attribute": 4, "mode": "<", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449792}}}], - "early-probes": [{"builder": 5, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.224806], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.224806], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.585938, - "analyze": {"pipeline": 3, "column-count": 4, "cpu-cycles": 246, "processed-rows": 128, "running": false, "tuple-count": 19} + "statistics": {"pipeline": 3, "column-count": 4, "cpu-cycles": 11801, "output-rows": 15, "processed-rows": 128, "running": false} }], "early-probed-by": [7], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_custkey"}, "right": {"expression": "iuref", "iu": "scan_custkey2"}}, - "analyze": {"pipeline": 3, "column-count": 3, "memory-bytes": 18552, "tuple-count": 15} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 3, "memory-bytes": 18552, "output-rows": 15} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[312, 320]], - "cardinality": 282, + "sqlpos": [[316, 324]], + "estimated-rows": 282, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"col-id": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 10, "mode": ">", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449792}}}], - "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.226563], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.226563], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.493007, - "analyze": {"pipeline": 2, "column-count": 3, "cpu-cycles": 283, "processed-rows": 572, "running": false, "tuple-count": 36} + "statistics": {"pipeline": 2, "column-count": 3, "cpu-cycles": 14536, "output-rows": 11, "processed-rows": 572, "running": false} }], "early-probed-by": [8], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey2"}, "right": {"expression": "iuref", "iu": "scan_orderkey"}}, - "analyze": {"pipeline": 2, "column-count": 5, "memory-bytes": 18552, "tuple-count": 11} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 5, "memory-bytes": 18552, "output-rows": 11} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_orderkey2"}}, "iu": ["GroupByKey", ["Integer"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_orderdat"}}, "iu": ["GroupByKey2", ["Date"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_shipprio"}}, "iu": ["GroupByKey3", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_orderkey2"}}, "iu": ["GroupByKey", ["Integer"]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_orderdat"}}, "iu": ["GroupByKey2", ["Date"]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_shipprio"}}, "iu": ["GroupByKey3", ["Integer"]]}], "grouping-sets": [{"key-indices": [0, 1, 2], "core-indices": [0, 1, 2], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 4]]}], - "analyze": {"pipeline": 1, "column-count": 4, "cpu-cycles": 235, "memory-bytes": 18552, "running": false, "tuple-count": 3} + "statistics": {"pipeline": 1, "column-count": 4, "cpu-cycles": 25671, "memory-bytes": 18552, "output-rows": 3, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 4, "cpu-cycles": 91, "heap-gc-passes": 0, "memory-bytes": 262168, "running": false, "tuple-count": 3} + "statistics": {"pipeline": 0, "column-count": 4, "cpu-cycles": 5933, "heap-gc-passes": 0, "memory-bytes": 262168, "output-rows": 3, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q4-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q4-analyze.plan.json index 509d169f..73c4f556 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q4-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q4-analyze.plan.json @@ -1,68 +1,71 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 4.46938, + "estimated-rows": 4.46938, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 15]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Char", 15]]}, {"expression": "iu-ref", "iu": ["count", ["BigInt"]]}], "output-names": ["o_orderpriority", "order_count"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[620, 635]], - "cardinality": 4.46938, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], + "sqlpos": [[624, 639]], + "estimated-rows": 4.46938, + "criterion": [{"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[570, 602], [174, 182]], - "cardinality": 4.46938, + "sqlpos": [[574, 606], [178, 186]], + "estimated-rows": 4.46938, "inputs": [{ - "operator": "leftsemijoin", + "operator": "left-semi-join", "operator-id": 4, - "cardinality": 4.46938, + "estimated-rows": 4.46938, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 5, - "sqlpos": [[211, 217]], - "cardinality": 5, + "sqlpos": [[215, 221]], + "estimated-rows": 5, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]},{"col-id": 5, "name": "o_orderpriority", "type": ["Char", 15], "iu": ["scan_orderpri", ["Char", 15]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, "restrictions": [{"attribute": 4, "mode": "[)", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449170}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2449262}}}], "selectivity": 0.0390625, - "analyze": {"pipeline": 3, "column-count": 2, "cpu-cycles": 518, "processed-rows": 128, "running": false, "tuple-count": 5} + "statistics": {"pipeline": 3, "column-count": 2, "cpu-cycles": 20149, "output-rows": 5, "processed-rows": 128, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 6, - "sqlpos": [[424, 432]], - "cardinality": 286, + "sqlpos": [[428, 436]], + "estimated-rows": 286, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 11, "name": "l_commitdate", "type": ["Date"], "iu": ["scan_commitda", ["Date"]]},{"col-id": 12, "name": "l_receiptdate", "type": ["Date"], "iu": ["scan_receiptd", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, - "residuals": [{"expression": "comparison", "mode": "<", "left": {"expression": "iuref", "iu": "scan_commitda"}, "right": {"expression": "iuref", "iu": "scan_receiptd"}}], - "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0390625], "type": "hashprobe", "pass-on-nulls": false}], + "residuals": [{"expression": "comparison", "mode": "<", "left": {"expression": "iu-ref", "iu": "scan_commitda"}, "right": {"expression": "iu-ref", "iu": "scan_receiptd"}}], + "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0390625], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.5, - "analyze": {"pipeline": 2, "column-count": 1, "cpu-cycles": 331, "processed-rows": 572, "running": false, "tuple-count": 21} + "statistics": {"pipeline": 2, "column-count": 1, "cpu-cycles": 21086, "output-rows": 11, "processed-rows": 572, "running": false} }], "early-probed-by": [6], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey2"}, "right": {"expression": "iuref", "iu": "scan_orderkey"}}, - "analyze": {"pipeline": 2, "column-count": 1, "memory-bytes": 18552, "tuple-count": 5} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 1, "memory-bytes": 18552, "output-rows": 5} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_orderpri"}}, "iu": ["GroupByKey", ["Char", 15]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_orderpri"}}, "iu": ["GroupByKey", ["Char", 15]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, "aggregates": [{"source": null, "operation": {"aggregate": "count"}, "iu": ["count", ["BigInt"]]}], - "analyze": {"pipeline": 1, "column-count": 2, "cpu-cycles": 185, "memory-bytes": 18552, "running": false, "tuple-count": 4} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 31139, "memory-bytes": 18552, "output-rows": 4, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 68, "memory-bytes": 262176, "running": false, "tuple-count": 4} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 3559, "memory-bytes": 262176, "output-rows": 4, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q5-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q5-analyze.plan.json index ad402c5a..17c26ca1 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q5-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q5-analyze.plan.json @@ -1,165 +1,176 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 5, + "estimated-rows": 5, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 4]]}], "output-names": ["n_name", "revenue"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[700, 712]], - "cardinality": 5, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}], + "sqlpos": [[704, 716]], + "estimated-rows": 5, + "criterion": [{"value": {"expression": "iu-ref", "iu": "sum"}, "descending": true, "null-first": true}], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[659, 682], [165, 204]], - "cardinality": 5, + "sqlpos": [[663, 686], [169, 208]], + "estimated-rows": 5, "inputs": [{ "operator": "join", "operator-id": 4, - "cardinality": 34.8563, + "estimated-rows": 34.8563, "method": "hash", "compute-left-bounds": [0, 1], "inputs": [{ "operator": "join", "operator-id": 5, - "cardinality": 34.8563, + "estimated-rows": 34.8563, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 7.8, + "estimated-rows": 7.8, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 25.8, + "estimated-rows": 25.8, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 5, + "estimated-rows": 5, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[315, 321]], - "cardinality": 1, + "sqlpos": [[319, 325]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "ASIA"}}}], "selectivity": 0.2, - "analyze": {"pipeline": 7, "column-count": 1, "cpu-cycles": 584, "processed-rows": 5, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 7, "column-count": 1, "cpu-cycles": 23107, "output-rows": 1, "processed-rows": 5, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[299, 305]], - "cardinality": 25, + "sqlpos": [[303, 309]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, - "early-probes": [{"builder": 8, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 8, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 6, "column-count": 3, "cpu-cycles": 163, "processed-rows": 25, "running": false, "tuple-count": 5} + "statistics": {"pipeline": 6, "column-count": 3, "cpu-cycles": 10581, "output-rows": 5, "processed-rows": 25, "running": false} }], "early-probed-by": [10], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke2"}, "right": {"expression": "iuref", "iu": "scan_regionke"}}, - "analyze": {"pipeline": 6, "column-count": 2, "memory-bytes": 18552, "tuple-count": 5} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}, "comparison": "="}], + "statistics": {"pipeline": 6, "column-count": 2, "memory-bytes": 18552, "output-rows": 5} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 11, - "sqlpos": [[229, 237]], - "cardinality": 129, + "sqlpos": [[233, 241]], + "estimated-rows": 129, "volatility": "stable", "relation-id": 5, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 8, "attributes": [{"col-id": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"col-id": 3, "name": "c_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "customer"}, - "early-probes": [{"builder": 7, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 189, "processed-rows": 129, "running": false, "tuple-count": 21} + "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 10982, "output-rows": 21, "processed-rows": 129, "running": false} }], "early-probed-by": [11], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}}, - "analyze": {"pipeline": 5, "column-count": 3, "memory-bytes": 18552, "tuple-count": 21} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}], + "statistics": {"pipeline": 5, "column-count": 3, "memory-bytes": 18552, "output-rows": 21} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 12, - "sqlpos": [[247, 253]], - "cardinality": 39, + "sqlpos": [[251, 257]], + "estimated-rows": 39, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"col-id": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, "restrictions": [{"attribute": 4, "mode": "[)", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449354}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2449719}}}], - "early-probes": [{"builder": 6, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.304688, - "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 146, "processed-rows": 128, "running": false, "tuple-count": 11} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 9038, "output-rows": 9, "processed-rows": 128, "running": false} }], "early-probed-by": [12], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_custkey"}, "right": {"expression": "iuref", "iu": "scan_custkey2"}}, - "analyze": {"pipeline": 4, "column-count": 3, "memory-bytes": 18552, "tuple-count": 9} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 3, "memory-bytes": 18552, "output-rows": 9} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 13, - "sqlpos": [[263, 271]], - "cardinality": 572, + "sqlpos": [[267, 275]], + "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0609375], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0609375], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 3, "column-count": 4, "cpu-cycles": 331, "processed-rows": 572, "running": false, "tuple-count": 44} + "statistics": {"pipeline": 3, "column-count": 4, "cpu-cycles": 18965, "output-rows": 34, "processed-rows": 572, "running": false} }], "early-probed-by": [13], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey2"}, "right": {"expression": "iuref", "iu": "scan_orderkey"}}, - "analyze": {"pipeline": 3, "column-count": 5, "memory-bytes": 18552, "tuple-count": 34} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 5, "memory-bytes": 18552, "output-rows": 34} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[281, 289]], - "cardinality": 518, + "sqlpos": [[285, 293]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 4, "attributes": [0, 3], "num-equality-predicates": 2, "selectivities": [0.0672901, 1], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 4, "attributes": [0, 3], "num-equality-predicates": 2, "selectivities": [0.0672901, 1], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 187, "processed-rows": 518, "running": false, "tuple-count": 518} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 19990, "output-rows": 518, "processed-rows": 518, "running": false} }], "early-probed-by": [14], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke3"}}]}, - "analyze": {"pipeline": 2, "column-count": 3, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke3"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 3, "memory-bytes": 18552, "output-rows": 1} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_n_name"}}, "iu": ["GroupByKey", ["Char", 25]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_n_name"}}, "iu": ["GroupByKey", ["Char", 25]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 4]]}], - "analyze": {"pipeline": 1, "column-count": 2, "cpu-cycles": 225, "memory-bytes": 18552, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 23613, "memory-bytes": 18552, "output-rows": 1, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 46, "memory-bytes": 262152, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 4228, "memory-bytes": 262152, "output-rows": 1, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q6-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q6-analyze.plan.json index e997b80c..e7041543 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q6-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q6-analyze.plan.json @@ -1,35 +1,36 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4, "nullable"]]}], + "output": [{"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 4, "nullable"]]}], "output-names": ["revenue"], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 2, - "sqlpos": [[149, 182]], - "cardinality": 1, + "sqlpos": [[153, 186]], + "estimated-rows": 1, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 3, - "sqlpos": [[207, 215]], - "cardinality": 20, + "sqlpos": [[211, 219]], + "estimated-rows": 20, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"col-id": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 6, "mode": "[]", "selectivity": 0.272727, "value": {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 5}}, "value2": {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 7}}}, {"attribute": 10, "mode": "[)", "selectivity": 0.3, "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449354}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2449719}}}, {"attribute": 4, "mode": "<", "selectivity": 0.5, "value": {"expression": "const", "value": {"type": ["Numeric", 12, 2], "value": 2400}}}], "selectivity": 0.034965, - "analyze": {"pipeline": 1, "column-count": 2, "cpu-cycles": 700, "processed-rows": 572, "running": false, "tuple-count": 20} + "statistics": {"pipeline": 1, "column-count": 2, "cpu-cycles": 35911, "output-rows": 20, "processed-rows": 572, "running": false} }], "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], "empty-groups": true, - "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_extended"}, "right": {"expression": "iuref", "iu": "scan_discount"}}}], + "agg-expressions": [{"value": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "scan_extended"}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 4, "nullable"]]}], - "analyze": {"pipeline": 0, "column-count": 1, "cpu-cycles": 31, "memory-bytes": 0, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 1, "cpu-cycles": 3371, "memory-bytes": 0, "output-rows": 1, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q7-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q7-analyze.plan.json index c9f2d262..0aca3ec9 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q7-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q7-analyze.plan.json @@ -1,169 +1,181 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 162.047, + "estimated-rows": 162.047, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iuref", "iu": ["GroupByKey2", ["Char", 25]]}, {"expression": "iuref", "iu": ["GroupByKey3", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["GroupByKey2", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["GroupByKey3", ["Integer"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 4]]}], "output-names": ["supp_nation", "cust_nation", "l_year", "revenue"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1423, 1434]], - "cardinality": 162.047, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "GroupByKey3"}, "descending": false, "null-first": false}], + "sqlpos": [[1427, 1438]], + "estimated-rows": 162.047, + "criterion": [{"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "GroupByKey3"}, "descending": false, "null-first": false}], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[1340, 1405], [207, 218]], - "cardinality": 162.047, + "sqlpos": [[1344, 1409], [211, 222]], + "estimated-rows": 162.047, "inputs": [{ "operator": "map", "operator-id": 4, - "sqlpos": [[292, 316]], - "cardinality": 180.053, + "sqlpos": [[296, 320]], + "estimated-rows": 180.053, "inputs": [{ "operator": "join", "operator-id": 5, - "cardinality": 180.053, + "estimated-rows": 180.053, "method": "hash", "compute-left-bounds": [0, 1], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 180.053, + "estimated-rows": 180.053, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 95.6297, + "estimated-rows": 95.6297, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 96.3768, + "estimated-rows": 96.3768, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 9, - "cardinality": 18.6777, + "estimated-rows": 18.6777, "method": "bnl", "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 10, - "sqlpos": [[716, 722]], - "cardinality": 25, + "sqlpos": [[720, 726]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "n2"}, "selectivity": 1, - "analyze": {"pipeline": 7, "column-count": 2, "cpu-cycles": 540, "processed-rows": 25, "running": false, "tuple-count": 25} + "statistics": {"pipeline": 7, "column-count": 2, "cpu-cycles": 23309, "output-rows": 25, "processed-rows": 25, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 11, - "sqlpos": [[681, 687]], - "cardinality": 25, + "sqlpos": [[685, 691]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name2", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "n1"}, "selectivity": 1, - "analyze": {"pipeline": 6, "column-count": 2, "cpu-cycles": 632, "processed-rows": 25, "running": false, "tuple-count": 25} + "statistics": {"pipeline": 6, "column-count": 2, "cpu-cycles": 54111, "output-rows": 25, "processed-rows": 25, "running": false} }], - "condition": {"expression": "lookup", "input": [{"expression": "iuref", "iu": "scan_n_name2"}, {"expression": "iuref", "iu": "scan_n_name"}], "values": [{"type": ["Char", 25], "value": "FRANCE"}, {"type": ["Char", 25], "value": "GERMANY"}, {"type": ["Char", 25], "value": "GERMANY"}, {"type": ["Char", 25], "value": "FRANCE"}], "collates": [null, null], "modes": ["is", "is"]}, - "analyze": {"pipeline": 6, "column-count": 4, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_n_name2"}, {"expression": "iu-ref", "iu": "scan_n_name"}], "values": [{"type": ["Char", 25], "value": "FRANCE"}, {"type": ["Char", 25], "value": "GERMANY"}, {"type": ["Char", 25], "value": "GERMANY"}, {"type": ["Char", 25], "value": "FRANCE"}], "collates": [null, null], "modes": ["is", "is"]}, + "predicates": [], + "residual": {"expression": "lookup", "input": [{"expression": "iu-ref", "iu": "scan_n_name2"}, {"expression": "iu-ref", "iu": "scan_n_name"}], "values": [{"type": ["Char", 25], "value": "FRANCE"}, {"type": ["Char", 25], "value": "GERMANY"}, {"type": ["Char", 25], "value": "GERMANY"}, {"type": ["Char", 25], "value": "FRANCE"}], "collates": [null, null], "modes": ["is", "is"]}, + "statistics": {"pipeline": 6, "column-count": 4, "memory-bytes": 18552, "output-rows": 2} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 12, - "sqlpos": [[647, 655]], - "cardinality": 129, + "sqlpos": [[651, 659]], + "estimated-rows": 129, "volatility": "stable", "relation-id": 5, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 8, "attributes": [{"col-id": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"col-id": 3, "name": "c_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "customer"}, - "early-probes": [{"builder": 8, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.747107], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 8, "attributes": [3], "num-equality-predicates": 1, "selectivities": [0.747107], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 226, "processed-rows": 129, "running": false, "tuple-count": 12} + "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 15181, "output-rows": 12, "processed-rows": 129, "running": false} }], "early-probed-by": [12], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke"}}, - "analyze": {"pipeline": 5, "column-count": 4, "memory-bytes": 18552, "tuple-count": 12} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke3"}, "comparison": "="}], + "statistics": {"pipeline": 5, "column-count": 4, "memory-bytes": 18552, "output-rows": 12} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 13, - "sqlpos": [[615, 621]], - "cardinality": 128, + "sqlpos": [[619, 625]], + "estimated-rows": 128, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, - "early-probes": [{"builder": 7, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.747107], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.747107], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 152, "processed-rows": 128, "running": false, "tuple-count": 15} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 9736, "output-rows": 12, "processed-rows": 128, "running": false} }], "early-probed-by": [13], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_custkey"}, "right": {"expression": "iuref", "iu": "scan_custkey2"}}, - "analyze": {"pipeline": 4, "column-count": 4, "memory-bytes": 18552, "tuple-count": 12} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 4, "memory-bytes": 18552, "output-rows": 12} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[581, 589]], - "cardinality": 241, + "sqlpos": [[585, 593]], + "estimated-rows": 241, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"col-id": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "restrictions": [{"attribute": 10, "mode": "[]", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449719}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2450449}}}], - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.747107], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.747107], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.421329, - "analyze": {"pipeline": 3, "column-count": 5, "cpu-cycles": 372, "processed-rows": 572, "running": false, "tuple-count": 30} + "statistics": {"pipeline": 3, "column-count": 5, "cpu-cycles": 22083, "output-rows": 30, "processed-rows": 572, "running": false} }], "early-probed-by": [14], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey"}, "right": {"expression": "iuref", "iu": "scan_orderkey2"}}, - "analyze": {"pipeline": 3, "column-count": 7, "memory-bytes": 18552, "tuple-count": 30} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 7, "memory-bytes": 18552, "output-rows": 30} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[547, 555]], - "cardinality": 518, + "sqlpos": [[551, 559]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 5, "attributes": [0, 3], "num-equality-predicates": 2, "selectivities": [0.347592, 1], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0, 3], "num-equality-predicates": 2, "selectivities": [0.347592, 1], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 243, "processed-rows": 518, "running": false, "tuple-count": 518} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 20834, "output-rows": 518, "processed-rows": 518, "running": false} }], "early-probed-by": [15], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey2"}, "right": {"expression": "iuref", "iu": "scan_suppkey"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke4"}, "right": {"expression": "iuref", "iu": "scan_nationke2"}}]}, - "analyze": {"pipeline": 2, "column-count": 5, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke4"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 5, "memory-bytes": 18552, "output-rows": 1} }], - "values": [{"iu": ["map", ["Integer"]], "value": {"expression": "extractyear", "input": {"expression": "iuref", "iu": "scan_shipdate"}}}, {"iu": ["map2", ["BigNumeric", 25, 4]], "value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}], - "analyze": {"pipeline": 2, "column-count": 4, "tuple-count": 1} + "values": [{"iu": ["map", ["Integer"]], "value": {"expression": "extract_year", "input": {"expression": "iu-ref", "iu": "scan_shipdate"}}}, {"iu": ["map2", ["BigNumeric", 25, 4]], "value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}], + "statistics": {"pipeline": 2, "column-count": 4, "output-rows": 1} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_n_name2"}}, "iu": ["GroupByKey", ["Char", 25]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_n_name"}}, "iu": ["GroupByKey2", ["Char", 25]]}, {"expression": {"value": {"expression": "iuref", "iu": "map"}}, "iu": ["GroupByKey3", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_n_name2"}}, "iu": ["GroupByKey", ["Char", 25]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "scan_n_name"}}, "iu": ["GroupByKey2", ["Char", 25]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "map"}}, "iu": ["GroupByKey3", ["Integer"]]}], "grouping-sets": [{"key-indices": [0, 1, 2], "core-indices": [0, 1, 2], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "map2"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "map2"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 4]]}], - "analyze": {"pipeline": 1, "column-count": 4, "cpu-cycles": 240, "memory-bytes": 18552, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 1, "column-count": 4, "cpu-cycles": 16973, "memory-bytes": 18552, "output-rows": 1, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 4, "cpu-cycles": 72, "memory-bytes": 262152, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 4, "cpu-cycles": 6080, "memory-bytes": 262152, "output-rows": 1, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q8-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q8-analyze.plan.json index b6c08549..7cca9843 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q8-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q8-analyze.plan.json @@ -1,229 +1,244 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 1, + "estimated-rows": 1, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iuref", "iu": ["map", ["BigNumeric", 38, 6]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["map", ["BigNumeric", 38, 6]]}], "output-names": ["o_year", "mkt_share"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1446, 1452]], - "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], + "sqlpos": [[1450, 1456]], + "estimated-rows": 1, + "criterion": [{"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "map", "operator-id": 3, - "sqlpos": [[149, 155]], - "cardinality": 1, + "sqlpos": [[153, 159]], + "estimated-rows": 1, "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 4, - "sqlpos": [[1405, 1428], [165, 260], [263, 274]], - "cardinality": 1, + "sqlpos": [[1409, 1432], [169, 264], [267, 278]], + "estimated-rows": 1, "inputs": [{ "operator": "map", "operator-id": 5, - "sqlpos": [[350, 390]], - "cardinality": 1, + "sqlpos": [[354, 394]], + "estimated-rows": 1, "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 8, - "cardinality": 1, + "estimated-rows": 1, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 9, - "sqlpos": [[785, 791]], - "cardinality": 1, + "sqlpos": [[789, 795]], + "estimated-rows": 1, "volatility": "stable", "relation-id": 9, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"col-id": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "region"}, "restrictions": [{"attribute": 1, "mode": "=", "value": {"expression": "const", "value": {"type": ["Char", 25], "value": "AMERICA"}}}], "selectivity": 0.2, - "analyze": {"pipeline": 5, "column-count": 1, "cpu-cycles": 598, "processed-rows": 5, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 5, "column-count": 1, "cpu-cycles": 29451, "output-rows": 1, "processed-rows": 5, "running": false} }, { "operator": "join", "operator-id": 10, - "cardinality": 1.18216, + "estimated-rows": 1.18216, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 11, - "cardinality": 1.18216, + "estimated-rows": 1.18216, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 12, - "cardinality": 1.18216, + "estimated-rows": 1.18216, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 13, - "cardinality": 3.21951, + "estimated-rows": 3.21951, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[551, 555]], - "cardinality": 3, + "sqlpos": [[555, 559]], + "estimated-rows": 3, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, "restrictions": [{"attribute": 4, "mode": "=", "value": {"expression": "const", "value": {"type": ["Varchar", 25], "value": "ECONOMY ANODIZED STEEL"}}}], "selectivity": 0.00562852, - "analyze": {"pipeline": 9, "column-count": 1, "cpu-cycles": 311, "processed-rows": 533, "running": false, "tuple-count": 3} + "statistics": {"pipeline": 9, "column-count": 1, "cpu-cycles": 14385, "output-rows": 3, "processed-rows": 533, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[615, 623]], - "cardinality": 572, + "sqlpos": [[619, 627]], + "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, - "early-probes": [{"builder": 13, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.00562852], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 13, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.00562852], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 8, "column-count": 5, "cpu-cycles": 291, "processed-rows": 572, "running": false, "tuple-count": 10} + "statistics": {"pipeline": 8, "column-count": 5, "cpu-cycles": 19434, "output-rows": 3, "processed-rows": 572, "running": false} }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey2"}}, - "analyze": {"pipeline": 8, "column-count": 4, "memory-bytes": 18552, "tuple-count": 3} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}, "comparison": "="}], + "statistics": {"pipeline": 8, "column-count": 4, "memory-bytes": 18552, "output-rows": 3} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 16, - "sqlpos": [[649, 655]], - "cardinality": 47, + "sqlpos": [[653, 659]], + "estimated-rows": 47, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"col-id": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, "restrictions": [{"attribute": 4, "mode": "[]", "value": {"expression": "const", "value": {"type": ["Date"], "value": 2449719}}, "value2": {"expression": "const", "value": {"type": ["Date"], "value": 2450449}}}], - "early-probes": [{"builder": 12, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0251524], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 12, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0251524], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 0.367188, - "analyze": {"pipeline": 7, "column-count": 3, "cpu-cycles": 142, "processed-rows": 128, "running": false, "tuple-count": 2} + "statistics": {"pipeline": 7, "column-count": 3, "cpu-cycles": 12323, "output-rows": 2, "processed-rows": 128, "running": false} }], "early-probed-by": [16], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey"}, "right": {"expression": "iuref", "iu": "scan_orderkey2"}}, - "analyze": {"pipeline": 7, "column-count": 5, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "comparison": "="}], + "statistics": {"pipeline": 7, "column-count": 5, "memory-bytes": 18552, "output-rows": 2} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 17, - "sqlpos": [[681, 689]], - "cardinality": 129, + "sqlpos": [[685, 693]], + "estimated-rows": 129, "volatility": "stable", "relation-id": 5, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 8, "attributes": [{"col-id": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"col-id": 3, "name": "c_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "customer"}, - "early-probes": [{"builder": 11, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00916407], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 11, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00916407], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 6, "column-count": 2, "cpu-cycles": 122, "processed-rows": 129, "running": false, "tuple-count": 4} + "statistics": {"pipeline": 6, "column-count": 2, "cpu-cycles": 10714, "output-rows": 2, "processed-rows": 129, "running": false} }], "early-probed-by": [17], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_custkey"}, "right": {"expression": "iuref", "iu": "scan_custkey2"}}, - "analyze": {"pipeline": 6, "column-count": 5, "memory-bytes": 18552, "tuple-count": 2} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_custkey"}, "right": {"expression": "iu-ref", "iu": "scan_custkey2"}, "comparison": "="}], + "statistics": {"pipeline": 6, "column-count": 5, "memory-bytes": 18552, "output-rows": 2} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 18, - "sqlpos": [[715, 721]], - "cardinality": 25, + "sqlpos": [[719, 725]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"col-id": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "n1"}, - "early-probes": [{"builder": 10, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0472866], "type": "hashprobe", "pass-on-nulls": false}, {"builder": 8, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 10, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0472866], "type": "hash-probe", "pass-on-nulls": false}, {"builder": 8, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 95, "processed-rows": 25, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 9639, "output-rows": 1, "processed-rows": 25, "running": false} }], "early-probed-by": [18], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke"}, "right": {"expression": "iuref", "iu": "scan_nationke2"}}, - "analyze": {"pipeline": 4, "column-count": 5, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 5, "memory-bytes": 18552, "output-rows": 1} }], "early-probed-by": [18], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke2"}, "right": {"expression": "iuref", "iu": "scan_regionke"}}, - "analyze": {"pipeline": 4, "column-count": 4, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_regionke2"}, "right": {"expression": "iu-ref", "iu": "scan_regionke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_regionke"}, "right": {"expression": "iu-ref", "iu": "scan_regionke2"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 4, "memory-bytes": 18552, "output-rows": 1} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 19, - "sqlpos": [[581, 589]], - "cardinality": 518, + "sqlpos": [[585, 593]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 7, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0019305], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 7, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0019305], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 3, "column-count": 2, "cpu-cycles": 170, "processed-rows": 518, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 3, "column-count": 2, "cpu-cycles": 10321, "output-rows": 1, "processed-rows": 518, "running": false} }], "early-probed-by": [19], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey2"}, "right": {"expression": "iuref", "iu": "scan_suppkey"}}, - "analyze": {"pipeline": 3, "column-count": 4, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 4, "memory-bytes": 18552, "output-rows": 1} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 20, - "sqlpos": [[750, 756]], - "cardinality": 25, + "sqlpos": [[754, 760]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "n2"}, - "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 121, "processed-rows": 25, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 6649, "output-rows": 1, "processed-rows": 25, "running": false} }], "early-probed-by": [20], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}}, - "analyze": {"pipeline": 2, "column-count": 4, "memory-bytes": 18552, "tuple-count": 1} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke3"}, "right": {"expression": "iu-ref", "iu": "scan_nationke4"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 4, "memory-bytes": 18552, "output-rows": 1} }], - "values": [{"iu": ["map2", ["Integer"]], "value": {"expression": "extractyear", "input": {"expression": "iuref", "iu": "scan_orderdat"}}}, {"iu": ["map3", ["BigNumeric", 25, 4]], "value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}}], - "analyze": {"pipeline": 2, "column-count": 3, "tuple-count": 1} + "values": [{"iu": ["map2", ["Integer"]], "value": {"expression": "extract_year", "input": {"expression": "iu-ref", "iu": "scan_orderdat"}}}, {"iu": ["map3", ["BigNumeric", 25, 4]], "value": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}}], + "statistics": {"pipeline": 2, "column-count": 3, "output-rows": 1} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "map2"}}, "iu": ["GroupByKey", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "map2"}}, "iu": ["GroupByKey", ["Integer"]]}], "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "simplecase", "value": {"expression": "iuref", "iu": "scan_n_name"}, "cases": [{"cases": [{"expression": "const", "value": {"type": ["Varchar"], "value": "BRAZIL"}}], "value": {"expression": "iuref", "iu": "map3"}}], "else": {"expression": "const", "value": {"type": ["BigNumeric", 25, 4], "low": 0, "high": 0}}}}, {"value": {"expression": "iuref", "iu": "map3"}}], + "agg-expressions": [{"value": {"expression": "simple-case", "value": {"expression": "iu-ref", "iu": "scan_n_name"}, "cases": [{"cases": [{"expression": "const", "value": {"type": ["Varchar"], "value": "BRAZIL"}}], "value": {"expression": "iu-ref", "iu": "map3"}}], "else": {"expression": "const", "value": {"type": ["BigNumeric", 25, 4], "low": 0, "high": 0}}}}, {"value": {"expression": "iu-ref", "iu": "map3"}}], "aggregates": [{"source": 1, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 4]]}, {"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum2", ["BigNumeric", 38, 4]]}], - "analyze": {"pipeline": 1, "column-count": 3, "cpu-cycles": 217, "memory-bytes": 18552, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 36589, "memory-bytes": 18552, "output-rows": 1, "running": false} }], - "values": [{"iu": ["map", ["BigNumeric", 38, 6]], "value": {"expression": "div", "left": {"expression": "iuref", "iu": "sum2"}, "right": {"expression": "iuref", "iu": "sum"}}}], - "analyze": {"pipeline": 1, "column-count": 2, "tuple-count": 1} + "values": [{"iu": ["map", ["BigNumeric", 38, 6]], "value": {"expression": "div", "left": {"expression": "iu-ref", "iu": "sum2"}, "right": {"expression": "iu-ref", "iu": "sum"}}}], + "statistics": {"pipeline": 1, "column-count": 2, "output-rows": 1} }], - "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 45, "memory-bytes": 262152, "running": false, "tuple-count": 1} + "statistics": {"pipeline": 0, "column-count": 2, "cpu-cycles": 6258, "memory-bytes": 262152, "output-rows": 1, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/tpch/tpch-q9-analyze.plan.json b/standalone-app/examples/hyper/tpch/tpch-q9-analyze.plan.json index 07ae6fa8..3bddbdfb 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q9-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q9-analyze.plan.json @@ -1,169 +1,180 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, - "cardinality": 27.0439, + "estimated-rows": 27.0439, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iuref", "iu": ["GroupByKey2", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4]]}], + "output": [{"expression": "iu-ref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iu-ref", "iu": ["GroupByKey2", ["Integer"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 4]]}], "output-names": ["nation", "o_year", "sum_profit"], "inputs": [{ "operator": "sort", "operator-id": 2, - "sqlpos": [[1120, 1126]], - "cardinality": 27.0439, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": true, "null-first": true}], + "sqlpos": [[1124, 1130]], + "estimated-rows": 27.0439, + "criterion": [{"value": {"expression": "iu-ref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iu-ref", "iu": "GroupByKey2"}, "descending": true, "null-first": true}], "inputs": [{ - "operator": "groupby", + "operator": "group-by", "operator-id": 3, - "sqlpos": [[1063, 1102], [181, 192]], - "cardinality": 27.0439, + "sqlpos": [[1067, 1106], [185, 196]], + "estimated-rows": 27.0439, "inputs": [{ "operator": "map", "operator-id": 4, - "sqlpos": [[269, 285]], - "cardinality": 30.0488, + "sqlpos": [[273, 289]], + "estimated-rows": 30.0488, "inputs": [{ "operator": "join", "operator-id": 5, - "cardinality": 30.0488, + "estimated-rows": 30.0488, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 6, - "cardinality": 30.0488, + "estimated-rows": 30.0488, "method": "hash", "compute-left-bounds": [0, 1, 2, 3], "inputs": [{ "operator": "join", "operator-id": 7, - "cardinality": 28.2101, + "estimated-rows": 28.2101, "method": "hash", "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 8, - "sqlpos": [[660, 666]], - "cardinality": 25, + "sqlpos": [[664, 670]], + "estimated-rows": 25, "volatility": "stable", "relation-id": 8, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 4, "attributes": [{"col-id": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"col-id": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], "debug-name": {"classification": "nonsensitive", "value": "nation"}, "selectivity": 1, - "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 370, "processed-rows": 25, "running": false, "tuple-count": 25} + "statistics": {"pipeline": 5, "column-count": 2, "cpu-cycles": 22283, "output-rows": 25, "processed-rows": 25, "running": false} }, { "operator": "join", "operator-id": 9, - "cardinality": 28.2101, + "estimated-rows": 28.2101, "method": "hash", "compute-left-bounds": [0], "inputs": [{ "operator": "join", "operator-id": 10, - "cardinality": 28.2101, + "estimated-rows": 28.2101, "method": "hash", "compute-left-bounds": [0], "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 11, - "sqlpos": [[496, 500]], - "cardinality": 28, + "sqlpos": [[500, 504]], + "estimated-rows": 28, "volatility": "stable", "relation-id": 2, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"col-id": 1, "name": "p_name", "type": ["Varchar", 55], "iu": ["scan_p_name", ["Varchar", 55]]}], "debug-name": {"classification": "nonsensitive", "value": "part"}, - "restrictions": [{"attribute": 1, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iuref", "iu": "scan_p_name"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%green%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], + "restrictions": [{"attribute": 1, "mode": "lambda", "expression": {"expression": "like", "arguments": [{"expression": "iu-ref", "iu": "scan_p_name"}, {"expression": "const", "value": {"type": ["Varchar"], "value": "%green%"}}, {"expression": "const", "value": {"type": ["Varchar"], "value": "\\"}}]}}], "selectivity": 0.0525328, - "analyze": {"pipeline": 7, "column-count": 1, "cpu-cycles": 18549, "processed-rows": 533, "running": false, "tuple-count": 28} + "statistics": {"pipeline": 7, "column-count": 1, "cpu-cycles": 57817, "output-rows": 28, "processed-rows": 533, "running": false} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 12, - "sqlpos": [[594, 602]], - "cardinality": 537, + "sqlpos": [[598, 606]], + "estimated-rows": 537, "volatility": "stable", "relation-id": 4, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 5, "attributes": [{"col-id": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"col-id": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"col-id": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "partsupp"}, - "early-probes": [{"builder": 10, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0525328], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 10, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0525328], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 6, "column-count": 3, "cpu-cycles": 309, "processed-rows": 537, "running": false, "tuple-count": 89} + "statistics": {"pipeline": 6, "column-count": 3, "cpu-cycles": 21119, "output-rows": 32, "processed-rows": 537, "running": false} }], "early-probed-by": [12], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey2"}, "right": {"expression": "iuref", "iu": "scan_partkey"}}, - "analyze": {"pipeline": 6, "column-count": 4, "memory-bytes": 18552, "tuple-count": 28} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey2"}, "comparison": "="}], + "statistics": {"pipeline": 6, "column-count": 4, "memory-bytes": 18552, "output-rows": 28} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 13, - "sqlpos": [[526, 534]], - "cardinality": 518, + "sqlpos": [[530, 538]], + "estimated-rows": 518, "volatility": "stable", "relation-id": 3, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 7, "attributes": [{"col-id": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"col-id": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "supplier"}, - "early-probes": [{"builder": 9, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0544597], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 9, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0544597], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 308, "processed-rows": 518, "running": false, "tuple-count": 73} + "statistics": {"pipeline": 4, "column-count": 2, "cpu-cycles": 22734, "output-rows": 29, "processed-rows": 518, "running": false} }], "early-probed-by": [13], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}}, - "analyze": {"pipeline": 4, "column-count": 6, "memory-bytes": 18552, "tuple-count": 28} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 6, "memory-bytes": 18552, "output-rows": 28} }], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}}, - "analyze": {"pipeline": 4, "column-count": 6, "memory-bytes": 18552, "tuple-count": 28} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_nationke2"}, "right": {"expression": "iu-ref", "iu": "scan_nationke"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_nationke"}, "right": {"expression": "iu-ref", "iu": "scan_nationke2"}, "comparison": "="}], + "statistics": {"pipeline": 4, "column-count": 6, "memory-bytes": 18552, "output-rows": 28} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 14, - "sqlpos": [[560, 568]], - "cardinality": 572, + "sqlpos": [[564, 572]], + "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"col-id": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, - "early-probes": [{"builder": 6, "attributes": [1, 1, 2, 2], "num-equality-predicates": 4, "selectivities": [0.0529271, 0.0529271, 0.0544597, 0.0544597], "type": "pruningonly", "pass-on-nulls": false}], + "early-probes": [{"builder": 6, "attributes": [1, 1, 2, 2], "num-equality-predicates": 4, "selectivities": [0.0529271, 0.0529271, 0.0544597, 0.0544597], "type": "pruning-only", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 3, "column-count": 6, "cpu-cycles": 218, "processed-rows": 572, "running": false, "tuple-count": 572} + "statistics": {"pipeline": 3, "column-count": 6, "cpu-cycles": 33829, "output-rows": 572, "processed-rows": 572, "running": false} }], "early-probed-by": [14], - "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey2"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey2"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}}]}, - "analyze": {"pipeline": 3, "column-count": 6, "memory-bytes": 18552, "tuple-count": 28} + "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey2"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}, {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}}]}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_partkey2"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_partkey"}, "right": {"expression": "iu-ref", "iu": "scan_partkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_suppkey"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "comparison": "="}, {"left": {"expression": "iu-ref", "iu": "scan_suppkey2"}, "right": {"expression": "iu-ref", "iu": "scan_suppkey3"}, "comparison": "="}], + "statistics": {"pipeline": 3, "column-count": 6, "memory-bytes": 18552, "output-rows": 28} }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 15, - "sqlpos": [[628, 634]], - "cardinality": 128, + "sqlpos": [[632, 638]], + "estimated-rows": 128, "volatility": "stable", "relation-id": 6, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 9, "attributes": [{"col-id": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"col-id": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "orders"}, - "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.234756], "type": "hashprobe", "pass-on-nulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.234756], "type": "hash-probe", "pass-on-nulls": false}], "selectivity": 1, - "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 317, "processed-rows": 128, "running": false, "tuple-count": 36} + "statistics": {"pipeline": 2, "column-count": 2, "cpu-cycles": 17085, "output-rows": 27, "processed-rows": 128, "running": false} }], "early-probed-by": [15], - "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_orderkey2"}, "right": {"expression": "iuref", "iu": "scan_orderkey"}}, - "analyze": {"pipeline": 2, "column-count": 6, "memory-bytes": 18552, "tuple-count": 28} + "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey"}}, + "predicates": [{"left": {"expression": "iu-ref", "iu": "scan_orderkey"}, "right": {"expression": "iu-ref", "iu": "scan_orderkey2"}, "comparison": "="}], + "statistics": {"pipeline": 2, "column-count": 6, "memory-bytes": 18552, "output-rows": 28} }], - "values": [{"iu": ["map", ["Integer"]], "value": {"expression": "extractyear", "input": {"expression": "iuref", "iu": "scan_orderdat"}}}, {"iu": ["map2", ["BigNumeric", 26, 4]], "value": {"expression": "sub", "left": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iuref", "iu": "scan_discount"}}, "right": {"expression": "iuref", "iu": "scan_extended"}}, "right": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_supplyco"}, "right": {"expression": "iuref", "iu": "scan_quantity"}}}}], - "analyze": {"pipeline": 2, "column-count": 3, "tuple-count": 28} + "values": [{"iu": ["map", ["Integer"]], "value": {"expression": "extract_year", "input": {"expression": "iu-ref", "iu": "scan_orderdat"}}}, {"iu": ["map2", ["BigNumeric", 26, 4]], "value": {"expression": "sub", "left": {"expression": "mul", "left": {"expression": "sub", "left": {"expression": "const", "value": {"type": ["Numeric", 1], "value": 1}}, "right": {"expression": "iu-ref", "iu": "scan_discount"}}, "right": {"expression": "iu-ref", "iu": "scan_extended"}}, "right": {"expression": "mul", "left": {"expression": "iu-ref", "iu": "scan_supplyco"}, "right": {"expression": "iu-ref", "iu": "scan_quantity"}}}}], + "statistics": {"pipeline": 2, "column-count": 3, "output-rows": 28} }], - "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_n_name"}}, "iu": ["GroupByKey", ["Char", 25]]}, {"expression": {"value": {"expression": "iuref", "iu": "map"}}, "iu": ["GroupByKey2", ["Integer"]]}], + "key-expressions": [{"expression": {"value": {"expression": "iu-ref", "iu": "scan_n_name"}}, "iu": ["GroupByKey", ["Char", 25]]}, {"expression": {"value": {"expression": "iu-ref", "iu": "map"}}, "iu": ["GroupByKey2", ["Integer"]]}], "grouping-sets": [{"key-indices": [0, 1], "core-indices": [0, 1], "behavior": "regular"}], "empty-groups": false, - "agg-expressions": [{"value": {"expression": "iuref", "iu": "map2"}}], + "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "map2"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 4]]}], - "analyze": {"pipeline": 1, "column-count": 3, "cpu-cycles": 204, "memory-bytes": 18552, "running": false, "tuple-count": 27} + "statistics": {"pipeline": 1, "column-count": 3, "cpu-cycles": 29115, "memory-bytes": 18552, "output-rows": 27, "running": false} }], - "analyze": {"pipeline": 0, "column-count": 3, "cpu-cycles": 240, "memory-bytes": 262360, "running": false, "tuple-count": 27} + "statistics": {"pipeline": 0, "column-count": 3, "cpu-cycles": 11552, "memory-bytes": 262360, "output-rows": 27, "running": false} }], - "analyze": {"error": null, "pipeline": 0, "column-count": 0} + "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/hyper/unionall-pipelines.plan.json b/standalone-app/examples/hyper/unionall-pipelines.plan.json index 201c65f5..bc1f0ed6 100644 --- a/standalone-app/examples/hyper/unionall-pipelines.plan.json +++ b/standalone-app/examples/hyper/unionall-pipelines.plan.json @@ -1,55 +1,58 @@ { "tree": { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 6000, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["union", ["Integer"]]}], + "output": [{"expression": "iu-ref", "iu": ["union", ["Integer"]]}], "output-names": ["a1"], "inputs": [{ - "operator": "unionall", + "operator": "union-all", "operator-id": 2, - "sqlpos": [[291, 300], [263, 272]], + "sqlpos": [[311, 320], [283, 292]], "estimated-rows": 6000, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 3, - "sqlpos": [[260, 262]], + "sqlpos": [[280, 282]], "estimated-rows": 2000, "volatility": "stable", "relation-id": 0, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "t1"}, "selectivity": 1 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[288, 290]], + "sqlpos": [[308, 310]], "estimated-rows": 2000, "volatility": "stable", "relation-id": 1, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 0, "name": "a2", "type": ["Integer"], "iu": ["scan_a2", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "t2"}, "selectivity": 1 }, { - "operator": "tablescan", + "operator": "table-scan", "operator-id": 5, - "sqlpos": [[316, 318]], + "sqlpos": [[336, 338]], "estimated-rows": 2000, "volatility": "stable", "relation-id": 0, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 3, "attributes": [{"col-id": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c1", ["Integer"]]}], "debug-name": {"classification": "nonsensitive", "value": "t1"}, "selectivity": 1 }], "ius": [["union", ["Integer"]]], - "values": [[{"expression": "iuref", "iu": "scan_a1"}], [{"expression": "iuref", "iu": "scan_a2"}], [{"expression": "iuref", "iu": "scan_c1"}]], + "values": [[{"expression": "iu-ref", "iu": "scan_a1"}], [{"expression": "iu-ref", "iu": "scan_a2"}], [{"expression": "iu-ref", "iu": "scan_c1"}]], "collates": [null] }] }, diff --git a/standalone-app/examples/hyper/window-analyze.plan.json b/standalone-app/examples/hyper/window-analyze.plan.json index f4593491..126d02cf 100644 --- a/standalone-app/examples/hyper/window-analyze.plan.json +++ b/standalone-app/examples/hyper/window-analyze.plan.json @@ -1,9 +1,9 @@ { - "operator": "executiontarget", + "operator": "execution-target", "operator-id": 1, "estimated-rows": 572, "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_orderkey", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2, "nullable"]]}, {"expression": "iuref", "iu": ["avg", ["Numeric", 16, 6, "nullable"]]}], + "output": [{"expression": "iu-ref", "iu": ["scan_orderkey", ["Integer"]]}, {"expression": "iu-ref", "iu": ["sum", ["BigNumeric", 38, 2, "nullable"]]}, {"expression": "iu-ref", "iu": ["avg", ["Numeric", 16, 6, "nullable"]]}], "output-names": ["l_orderkey", "sum", "avg"], "inputs": [{ "operator": "window", @@ -14,24 +14,25 @@ "operator-id": 3, "estimated-rows": 572, "inputs": [{ - "operator": "tablescan", + "operator": "table-scan", "operator-id": 4, - "sqlpos": [[218, 226]], + "sqlpos": [[200, 208]], "estimated-rows": 572, "volatility": "stable", "relation-id": 7, "schema": {"type":"sessionschema"}, + "scan-type": "native", "attribute-count": 16, "attributes": [{"col-id": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"col-id": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"col-id": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"col-id": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], "debug-name": {"classification": "nonsensitive", "value": "lineitem"}, "selectivity": 1, - "statistics": {"pipeline": 2, "column-count": 4, "cpu-cycles": 107, "output-rows": 572, "processed-rows": 572, "running": false} + "statistics": {"pipeline": 2, "column-count": 4, "cpu-cycles": 33959, "output-rows": 572, "processed-rows": 572, "running": false} }], - "window-infos": [{"operation": "aggregate", "aggregation": {"empty-groups": true, "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2, "nullable"]]}]}, "partition-by": [], "frame-order-by": [{"value": {"expression": "iuref", "iu": "scan_orderkey"}, "descending": false, "null-first": false}], "rowsmode": false, "start-mode": "unbounded", "end-mode": "currentrow", "exclude": "noothers"}], - "statistics": {"pipeline": 1, "column-count": 4, "cpu-cycles": 9067, "memory-bytes": 13816, "output-rows": 572, "running": false} + "window-infos": [{"operation": "aggregate", "aggregation": {"empty-groups": true, "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_quantity"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigNumeric", 38, 2, "nullable"]]}]}, "partition-by": [], "frame-order-by": [{"value": {"expression": "iu-ref", "iu": "scan_orderkey"}, "descending": false, "null-first": false}], "rowsmode": false, "start-mode": "unbounded", "end-mode": "current_row", "exclude": "no_others"}], + "statistics": {"pipeline": 1, "column-count": 4, "cpu-cycles": 449209, "memory-bytes": 13816, "output-rows": 572, "running": false} }], - "window-infos": [{"operation": "aggregate", "aggregation": {"empty-groups": true, "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_extended"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6, "nullable"]]}]}, "partition-by": [], "frame-order-by": [{"value": {"expression": "iuref", "iu": "scan_shipdate"}, "descending": false, "null-first": false}], "rowsmode": true, "start-mode": "value", "start-exp": {"expression": "const", "value": {"type": ["Integer"], "value": -1}}, "end-mode": "value", "end-exp": {"expression": "const", "value": {"type": ["Integer"], "value": 3}}, "exclude": "noothers"}], - "statistics": {"pipeline": 0, "column-count": 3, "cpu-cycles": 1943, "memory-bytes": 18936, "output-rows": 572, "running": false} + "window-infos": [{"operation": "aggregate", "aggregation": {"empty-groups": true, "agg-expressions": [{"value": {"expression": "iu-ref", "iu": "scan_extended"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6, "nullable"]]}]}, "partition-by": [], "frame-order-by": [{"value": {"expression": "iu-ref", "iu": "scan_shipdate"}, "descending": false, "null-first": false}], "rowsmode": true, "start-mode": "value", "start-exp": {"expression": "const", "value": {"type": ["Integer"], "value": -1}}, "end-mode": "value", "end-exp": {"expression": "const", "value": {"type": ["Integer"], "value": 3}}, "exclude": "no_others"}], + "statistics": {"pipeline": 0, "column-count": 3, "cpu-cycles": 504782, "memory-bytes": 18936, "output-rows": 572, "running": false} }], "statistics": {"error": null, "pipeline": 0, "column-count": 0} } diff --git a/standalone-app/examples/index.json b/standalone-app/examples/index.json index 92504bb4..a9b74322 100644 --- a/standalone-app/examples/index.json +++ b/standalone-app/examples/index.json @@ -215,7 +215,7 @@ } }, "hyper": { - "version": "Hyper 9.1.0 emulation, hyper version main.0.0.26359.r07abb490", + "version": "Hyper 9.1.0 emulation, hyper version __UNVERSIONED_HYPER__.0.0.0.r0dedff7f", "queries": { "cte": { "analyze": "hyper/cte-analyze.plan.json" @@ -262,7 +262,8 @@ "analyze": "hyper/tpch-q11-error-analyze.plan.json" }, "tpch/tpch-q1": { - "analyze": "hyper/tpch/tpch-q1-analyze.plan.json" + "analyze": "hyper/tpch/tpch-q1-analyze.plan.json", + "external-analyze": "hyper/tpch/tpch-q1-external-analyze.plan.json" }, "tpch/tpch-q10": { "analyze": "hyper/tpch/tpch-q10-analyze.plan.json"