From a0629130150ce4e6935fd18deccb6fd7304fb44d Mon Sep 17 00:00:00 2001 From: Per Fuchs Date: Wed, 15 Jul 2026 14:42:15 +0200 Subject: [PATCH 1/2] hyper: accept kebab-case plan JSON keys (backward compatible) Hyper PR #13364 (hyper-db) renamed plan JSON property keys from camelCase to kebab-case (e.g. operatorId -> operator-id, debugName -> debug-name, valueForComparison -> value-for-comparison). Only keys changed; enum/tag values (operator tags, join types, ...) keep their camelCase spelling. The Hyper loader is largely key-agnostic, but it reads three renamed keys by literal name. Accept both spellings so plans produced before and after the cutover both render: - operatorId / operator-id (operator id map + crosslink resolution) - debugName / debug-name (display name + always-shown property) - valueForComparison / value-for-comparison (fixed child ordering) Other referenced keys (analyze, sqlpos, cpu-cycles, tuple-count, and the crosslink source keys magic/builder/input/source) were not renamed by the PR and are unchanged. Adds a kebab-case tablescan example plan. --- query-graphs/src/hyper.ts | 19 +++++++++++------ .../hyper/tablescan-kebab-case.plan.json | 21 +++++++++++++++++++ 2 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 standalone-app/examples/hyper/tablescan-kebab-case.plan.json diff --git a/query-graphs/src/hyper.ts b/query-graphs/src/hyper.ts index b9c8c6f..f431088 100644 --- a/query-graphs/src/hyper.ts +++ b/query-graphs/src/hyper.ts @@ -140,8 +140,10 @@ function convertHyperNode(rawNode: Json, parentKey, conversionState: ConversionS } } - // Display these properties always as properties, even if they are more complex - const propertyKeys = ["debugName", "analyze", "sqlpos"]; + // Display these properties always as properties, even if they are more complex. + // `debugName` is the pre-kebab-case spelling of `debug-name`; we accept both for + // backwards compatibility with plans produced before the Hyper kebab-case cutover. + const propertyKeys = ["debug-name", "debugName", "analyze", "sqlpos"]; for (const key of propertyKeys) { if (!rawNode.hasOwnProperty(key)) { continue; @@ -152,7 +154,9 @@ function convertHyperNode(rawNode: Json, parentKey, conversionState: ConversionS // Determine the order in which other keys are displayed. // For some keys, we enforce a specific order here (e.g., "left" comes before "right"). // For all other keys, we use alphabetic order. - const fixedChildOrder = ["inputs", "input", "left", "right", "value", "valueForComparison"]; + // `value-for-comparison` / `valueForComparison`: both spellings are listed so the + // fixed child ordering works for plans from before and after the kebab-case cutover. + const fixedChildOrder = ["inputs", "input", "left", "right", "value", "value-for-comparison", "valueForComparison"]; const orderedKeys = Object.getOwnPropertyNames(rawNode) .filter((k) => { // `propertyKeys` and `operator`/`expression` were already handled @@ -210,7 +214,9 @@ function convertHyperNode(rawNode: Json, parentKey, conversionState: ConversionS // Figure out the display name const specificDisplayName = renderingConfig.displayNameKey ? properties.get(renderingConfig.displayNameKey) : undefined; - const debugNameNode = tryGetPropertyPath(rawNode, ["debugName", "value"]); + // Accept both `debug-name` (post kebab-case cutover) and the legacy `debugName`. + const debugNameNode = + tryGetPropertyPath(rawNode, ["debug-name", "value"]) ?? tryGetPropertyPath(rawNode, ["debugName", "value"]); const debugName = typeof debugNameNode === "string" ? debugNameNode : undefined; const displayName = debugName ?? specificDisplayName ?? properties?.get("name") ?? nodeTag ?? ""; @@ -257,9 +263,10 @@ function convertHyperNode(rawNode: Json, parentKey, conversionState: ConversionS } } - // Add to `operatorId` map if applicable + // Add to `operator-id` map if applicable. + // `operatorId` is the legacy spelling; accept both for backwards compatibility. if (nodeType == "operator") { - const operatorId = properties?.get("operatorId"); + const operatorId = properties?.get("operator-id") ?? properties?.get("operatorId"); if (operatorId !== undefined) { conversionState.operatorsById.set(operatorId, convertedNode); } diff --git a/standalone-app/examples/hyper/tablescan-kebab-case.plan.json b/standalone-app/examples/hyper/tablescan-kebab-case.plan.json new file mode 100644 index 0000000..c8223cc --- /dev/null +++ b/standalone-app/examples/hyper/tablescan-kebab-case.plan.json @@ -0,0 +1,21 @@ +{ + "operator": "executiontarget", + "operator-id": 1, + "cardinality": 5, + "produces-rows": true, + "output": [{"expression": "iuref", "iu": ["scan_r_name", ["Char", 25]]}], + "output-names": ["r_name"], + "inputs": [{ + "operator": "tablescan", + "operator-id": 2, + "sqlpos": [[41, 47]], + "cardinality": 5, + "volatility": "stable", + "relation-id": 9, + "schema": {"type":"sessionschema"}, + "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 + }] +} From 4db9d7c71ba348c5aee987933e89fb2ec7d0c22f Mon Sep 17 00:00:00 2001 From: Per Fuchs Date: Thu, 23 Jul 2026 11:56:59 +0200 Subject: [PATCH 2/2] hyper: regenerate example plans in kebab-case, keep one legacy example Address review feedback: rather than adding a single kebab-case example on top of otherwise-camelCase plans, regenerate all Hyper example plans in the new kebab-case key format (as `dump-plans.py` would now emit against a Hyper build containing hyper-db#13364), and keep exactly one example in the old camelCase syntax to exercise the backward-compatibility path. - Rename plan JSON property keys camelCase -> kebab-case across all Hyper examples, using the exact key mapping from hyper-db#13364 (137 keys, incl. acronym cases like resultIUs -> result-ius, filterJoinIU -> filter-join-iu). Only keys change; enum/tag values keep their camelCase spelling. Keys that #13364 left untouched (e.g. distinctValues, allowTrustedCasts) are kept as-is. - Remove the now-redundant tablescan-kebab-case.plan.json (tablescan.plan.json is itself kebab-case now). - Add tablescan-legacy-camelcase.plan.json as the single old-syntax example. Co-authored-by: Cursor --- .../examples/hyper/cte-recursive.plan.json | 24 +- standalone-app/examples/hyper/cte.plan.json | 32 +- .../examples/hyper/groupby.plan.json | 26 +- .../examples/hyper/insert.plan.json | 34 +- .../examples/hyper/magicunnesting.plan.json | 50 +- .../examples/hyper/markjoin.plan.json | 28 +- .../hyper/metadata-describe-table.plan.json | 34 +- .../examples/hyper/setoperation.plan.json | 62 +- .../hyper/tableconstruction.plan.json | 8 +- .../examples/hyper/tablefunction.plan.json | 10 +- .../hyper/tablescan-kebab-case.plan.json | 21 - .../tablescan-legacy-camelcase.plan.json | 21 + .../examples/hyper/tablescan.plan.json | 16 +- .../examples/hyper/tdescan.plan.json | 8 +- .../hyper/tpch-q11-error-analyze.plan.json | 128 +- .../hyper/tpch/tpch-q1-analyze.plan.json | 30 +- .../hyper/tpch/tpch-q10-analyze.plan.json | 84 +- .../hyper/tpch/tpch-q11-analyze.plan.json | 126 +- .../hyper/tpch/tpch-q12-analyze.plan.json | 48 +- .../hyper/tpch/tpch-q13-analyze.plan.json | 50 +- .../hyper/tpch/tpch-q14-analyze.plan.json | 44 +- .../hyper/tpch/tpch-q15-analyze.plan.json | 64 +- .../hyper/tpch/tpch-q16-analyze.plan.json | 60 +- .../hyper/tpch/tpch-q17-analyze.plan.json | 74 +- .../hyper/tpch/tpch-q18-analyze.plan.json | 100 +- .../hyper/tpch/tpch-q19-analyze.plan.json | 42 +- .../hyper/tpch/tpch-q2-analyze.plan.json | 170 +- .../hyper/tpch/tpch-q2-steps.plan.json | 1378 ++++++++--------- .../examples/hyper/tpch/tpch-q2.plan.json | 170 +- .../hyper/tpch/tpch-q20-analyze.plan.json | 106 +- .../hyper/tpch/tpch-q21-analyze.plan.json | 118 +- .../hyper/tpch/tpch-q22-analyze.plan.json | 80 +- .../hyper/tpch/tpch-q3-analyze.plan.json | 66 +- .../hyper/tpch/tpch-q4-analyze.plan.json | 46 +- .../hyper/tpch/tpch-q5-analyze.plan.json | 120 +- .../hyper/tpch/tpch-q6-analyze.plan.json | 24 +- .../hyper/tpch/tpch-q7-analyze.plan.json | 116 +- .../hyper/tpch/tpch-q8-analyze.plan.json | 158 +- .../hyper/tpch/tpch-q9-analyze.plan.json | 116 +- .../examples/hyper/window.plan.json | 24 +- 40 files changed, 1958 insertions(+), 1958 deletions(-) delete mode 100644 standalone-app/examples/hyper/tablescan-kebab-case.plan.json create mode 100644 standalone-app/examples/hyper/tablescan-legacy-camelcase.plan.json diff --git a/standalone-app/examples/hyper/cte-recursive.plan.json b/standalone-app/examples/hyper/cte-recursive.plan.json index fef92a3..6ac6abe 100644 --- a/standalone-app/examples/hyper/cte-recursive.plan.json +++ b/standalone-app/examples/hyper/cte-recursive.plan.json @@ -1,38 +1,38 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 11, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["map", ["Integer"]]}], - "outputNames": ["i"], + "output-names": ["i"], "inputs": [{ "operator": "iteration", - "operatorId": 2, + "operator-id": 2, "cardinality": 11, - "resultIUs": [["map", ["Integer"]]], - "leftValues": [{"expression": "iuref", "iu": ["map2", ["Integer"]]}], - "rightValues": [{"expression": "iuref", "iu": ["map3", ["Integer"]]}], - "unionAll": true, + "result-ius": [["map", ["Integer"]]], + "left-values": [{"expression": "iuref", "iu": ["map2", ["Integer"]]}], + "right-values": [{"expression": "iuref", "iu": ["map3", ["Integer"]]}], + "union-all": true, "inputs": [{ "operator": "tableconstruction", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "output": [["map2", ["Integer"]]], "values": [[{"expression": "const", "value": {"type": ["Integer"], "value": 1}}]], "inputs": [] }, { "operator": "map", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[85, 90]], "cardinality": 1, "inputs": [{ "operator": "filter", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[104, 111]], "cardinality": 1, "inputs": [{ "operator": "iterationincrement", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[96, 97]], "cardinality": 1, "values": [["map_increment", ["Integer"]]], diff --git a/standalone-app/examples/hyper/cte.plan.json b/standalone-app/examples/hyper/cte.plan.json index dec1ec4..5739328 100644 --- a/standalone-app/examples/hyper/cte.plan.json +++ b/standalone-app/examples/hyper/cte.plan.json @@ -1,47 +1,47 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 200, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["union", ["Integer"]]}, {"expression": "iuref", "iu": ["union2", ["BigInt"]]}, {"expression": "iuref", "iu": ["union3", ["Numeric", 16, 6]]}], - "outputNames": ["a1", "sum", "avg"], + "output-names": ["a1", "sum", "avg"], "inputs": [{ "operator": "unionall", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[109, 118]], "cardinality": 200, "inputs": [{ "operator": "explicitscan", - "operatorId": 3, + "operator-id": 3, "cardinality": 100, "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", ["BigInt"]]}, "target": ["sum2", ["BigInt"]]}], "input": { "operator": "groupby", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[77, 88], [46, 53], [55, 62]], "cardinality": 100, "inputs": [{ "operator": "tablescan", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[71, 73]], "cardinality": 2000, "volatility": "stable", - "relationId": 0, + "relation-id": 0, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]},{"colId": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b1", ["Integer"]]},{"colId": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c1", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t1"}, + "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 }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_a1"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_b1"}}, {"value": {"expression": "iuref", "iu": "scan_c1"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_a1"}}, "iu": ["GroupByKey", ["Integer"]]}], + "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], + "empty-groups": false, + "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_b1"}}, {"value": {"expression": "iuref", "iu": "scan_c1"}}], "aggregates": [{"source": 1, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6]]}, {"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigInt"]]}] } }, { "operator": "explicitscan", - "operatorId": 6, + "operator-id": 6, "cardinality": 100, "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", ["BigInt"]]}], "input": 4 diff --git a/standalone-app/examples/hyper/groupby.plan.json b/standalone-app/examples/hyper/groupby.plan.json index 72006c3..e4acbe3 100644 --- a/standalone-app/examples/hyper/groupby.plan.json +++ b/standalone-app/examples/hyper/groupby.plan.json @@ -1,32 +1,32 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 100, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigInt"]]}, {"expression": "iuref", "iu": ["avg", ["Numeric", 16, 6]]}], - "outputNames": ["a1", "sum", "avg"], + "output-names": ["a1", "sum", "avg"], "inputs": [{ "operator": "groupby", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[58, 69], [33, 40], [42, 49]], "cardinality": 100, "inputs": [{ "operator": "tablescan", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[55, 57]], "cardinality": 2000, "volatility": "stable", - "relationId": 0, + "relation-id": 0, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]},{"colId": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b1", ["Integer"]]},{"colId": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c1", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t1"}, + "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 }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_a1"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_b1"}}, {"value": {"expression": "iuref", "iu": "scan_c1"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_a1"}}, "iu": ["GroupByKey", ["Integer"]]}], + "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], + "empty-groups": false, + "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_b1"}}, {"value": {"expression": "iuref", "iu": "scan_c1"}}], "aggregates": [{"source": 1, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6]]}, {"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigInt"]]}] }] } diff --git a/standalone-app/examples/hyper/insert.plan.json b/standalone-app/examples/hyper/insert.plan.json index f55d5aa..74bb22d 100644 --- a/standalone-app/examples/hyper/insert.plan.json +++ b/standalone-app/examples/hyper/insert.plan.json @@ -1,32 +1,32 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 4000, - "producesRows": false, + "produces-rows": false, "output": [], - "outputNames": [], + "output-names": [], "inputs": [{ "operator": "insert", - "operatorId": 2, + "operator-id": 2, "cardinality": 4000, "volatility": "volatile", - "relationId": 1, + "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"], "errorHandling": "trap", "allowTrustedCasts": false}, {"expression": "cast", "value": {"expression": "iuref", "iu": ["map2", ["Integer"]]}, "type": ["Integer", "nullable"], "errorHandling": "trap", "allowTrustedCasts": false}, {"expression": "cast", "value": {"expression": "iuref", "iu": ["map3", ["Integer"]]}, "type": ["Integer", "nullable"], "errorHandling": "trap", "allowTrustedCasts": false}], + "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}], "inputs": [{ "operator": "map", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[44, 48]], "cardinality": 4000, "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "cardinality": 4000, "method": "bnl", "inputs": [{ "operator": "tableconstruction", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[71, 80]], "cardinality": 2, "output": [["tableconstruction", ["Integer"]]], @@ -34,15 +34,15 @@ "inputs": [] }, { "operator": "tablescan", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[66, 68]], "cardinality": 2000, "volatility": "stable", - "relationId": 0, + "relation-id": 0, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]},{"colId": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b1", ["Integer"]]},{"colId": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c1", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t1"}, + "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}} @@ -50,8 +50,8 @@ "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"}}}] }], "tid": ["tid", ["Numeric", 18]], - "tableOid": ["tableOid", ["RegClass"]], - "tupleFlags": ["tupleFlags", ["BigInt"]], - "bulkInsert": false + "table-oid": ["tableOid", ["RegClass"]], + "tuple-flags": ["tupleFlags", ["BigInt"]], + "bulk-insert": false }] } diff --git a/standalone-app/examples/hyper/magicunnesting.plan.json b/standalone-app/examples/hyper/magicunnesting.plan.json index b5011ce..2542b31 100644 --- a/standalone-app/examples/hyper/magicunnesting.plan.json +++ b/standalone-app/examples/hyper/magicunnesting.plan.json @@ -1,71 +1,71 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 2732.06, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["scan_a1", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigInt", "nullable"]]}], - "outputNames": ["a1", "2"], + "output-names": ["a1", "2"], "inputs": [{ "operator": "leftouterjoin", - "operatorId": 2, + "operator-id": 2, "cardinality": 2732.06, "method": "hash", "inputs": [{ "operator": "tablescan", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[77, 79]], "cardinality": 2000, "volatility": "stable", - "relationId": 0, + "relation-id": 0, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t1"}, + "attribute-count": 3, + "attributes": [{"col-id": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]}], + "debug-name": {"classification": "nonsensitive", "value": "t1"}, "selectivity": 1 }, { "operator": "groupby", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[41, 48]], "cardinality": 100, "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 100000, "method": "bnl", "inputs": [{ "operator": "explicitscan", - "operatorId": 6, + "operator-id": 6, "cardinality": 100, "mapping": [{"source": {"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, "target": ["GroupByKey2", ["Integer"]]}], "input": { "operator": "groupby", - "operatorId": 7, + "operator-id": 7, "cardinality": 100, "inputs": [], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_a1"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": null, "behavior": "regular"}], - "emptyGroups": false, + "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_a1"}}, "iu": ["GroupByKey", ["Integer"]]}], + "grouping-sets": [{"key-indices": [0], "core-indices": null, "behavior": "regular"}], + "empty-groups": false, "aggregates": [] } }, { "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[54, 56]], "cardinality": 2000, "volatility": "stable", - "relationId": 1, + "relation-id": 1, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a2", "type": ["Integer"], "iu": ["scan_a2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t2"}, + "attribute-count": 3, + "attributes": [{"col-id": 0, "name": "a2", "type": ["Integer"], "iu": ["scan_a2", ["Integer"]]}], + "debug-name": {"classification": "nonsensitive", "value": "t2"}, "selectivity": 1 }], "condition": {"expression": "comparison", "mode": "<", "left": {"expression": "iuref", "iu": "scan_a2"}, "right": {"expression": "iuref", "iu": "GroupByKey2"}} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "GroupByKey2"}}, "iu": ["GroupByKey3", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_a2"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "GroupByKey2"}}, "iu": ["GroupByKey3", ["Integer"]]}], + "grouping-sets": [{"key-indices": [0], "core-indices": [0], "behavior": "regular"}], + "empty-groups": true, + "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_a2"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigInt", "nullable"]]}] }], "condition": {"expression": "comparison", "mode": "is", "left": {"expression": "iuref", "iu": "scan_a1"}, "right": {"expression": "iuref", "iu": "GroupByKey3"}}, diff --git a/standalone-app/examples/hyper/markjoin.plan.json b/standalone-app/examples/hyper/markjoin.plan.json index 9273f08..ad55ad3 100644 --- a/standalone-app/examples/hyper/markjoin.plan.json +++ b/standalone-app/examples/hyper/markjoin.plan.json @@ -1,38 +1,38 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 2000, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["scan_a1", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_b1", ["Integer"]]}, {"expression": "iuref", "iu": ["scan_c1", ["Integer"]]}, {"expression": "iuref", "iu": ["joinMarker", ["Bool"]]}], - "outputNames": ["a1", "b1", "c1", "2"], + "output-names": ["a1", "b1", "c1", "2"], "inputs": [{ "operator": "leftmarkjoin", - "operatorId": 2, + "operator-id": 2, "cardinality": 2000, "method": "hash", "inputs": [{ "operator": "tablescan", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[89, 91]], "cardinality": 2000, "volatility": "stable", - "relationId": 0, + "relation-id": 0, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]},{"colId": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b1", ["Integer"]]},{"colId": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c1", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t1"}, + "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 }, { "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[54, 56]], "cardinality": 2000, "volatility": "stable", - "relationId": 1, + "relation-id": 1, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a2", "type": ["Integer"], "iu": ["scan_a2", ["Integer"]]},{"colId": 1, "name": "b2", "type": ["Integer"], "iu": ["scan_b2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t2"}, + "attribute-count": 3, + "attributes": [{"col-id": 0, "name": "a2", "type": ["Integer"], "iu": ["scan_a2", ["Integer"]]},{"col-id": 1, "name": "b2", "type": ["Integer"], "iu": ["scan_b2", ["Integer"]]}], + "debug-name": {"classification": "nonsensitive", "value": "t2"}, "selectivity": 1 }], "condition": {"expression": "and", "arguments": [{"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_a1"}, "right": {"expression": "iuref", "iu": "scan_a2"}}, {"expression": "comparison", "mode": "<", "left": {"expression": "iuref", "iu": "scan_b1"}, "right": {"expression": "iuref", "iu": "scan_b2"}}]}, diff --git a/standalone-app/examples/hyper/metadata-describe-table.plan.json b/standalone-app/examples/hyper/metadata-describe-table.plan.json index 9a5b682..a455ed4 100644 --- a/standalone-app/examples/hyper/metadata-describe-table.plan.json +++ b/standalone-app/examples/hyper/metadata-describe-table.plan.json @@ -1,49 +1,49 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1.36603, - "producesRows": true, + "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"]]}], - "outputNames": ["relchecks", "relkind", "relhasindex", "relhasrules", "relhastriggers", "relispartition", "reltablespace", "case", "relpersistence"], + "output-names": ["relchecks", "relkind", "relhasindex", "relhasrules", "relhastriggers", "relispartition", "reltablespace", "case", "relpersistence"], "inputs": [{ "operator": "map", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[29, 40]], "cardinality": 1.36603, "inputs": [{ "operator": "leftouterjoin", - "operatorId": 3, + "operator-id": 3, "cardinality": 1.36603, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "virtualtable", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[279, 298]], "cardinality": 1, "volatility": "volatile", - "attributeCount": 27, - "attributes": [{"colId": 0, "name": "oid", "type": ["Oid"], "iu": ["c.oid", ["Oid"]]},{"colId": 4, "name": "reloftype", "type": ["Oid"], "iu": ["c.reloftyp", ["Oid"]]},{"colId": 8, "name": "reltablespace", "type": ["Oid"], "iu": ["c.reltable", ["Oid"]]},{"colId": 11, "name": "reltoastrelid", "type": ["Oid"], "iu": ["c.reltoast", ["Oid"]]},{"colId": 13, "name": "relhasindex", "type": ["Bool"], "iu": ["c.relhasin", ["Bool"]]},{"colId": 15, "name": "relpersistence", "type": ["Char1"], "iu": ["c.relpersi", ["Char1"]]},{"colId": 16, "name": "relkind", "type": ["Char1"], "iu": ["c.relkind", ["Char1"]]},{"colId": 18, "name": "relchecks", "type": ["SmallInt"], "iu": ["c.relcheck", ["SmallInt"]]},{"colId": 21, "name": "relhasrules", "type": ["Bool"], "iu": ["c.relhasru", ["Bool"]]},{"colId": 22, "name": "relhastriggers", "type": ["Bool"], "iu": ["c.relhastr", ["Bool"]]}], - "debugName": {"classification": "nonsensitive", "value": "c"}, + "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"}, "restrictions": [{"attribute": 0, "mode": "=", "selectivity": 0.01, "value": {"expression": "const", "value": {"type": ["Oid"], "value": 12}}}], "schema": {"type":"builtinschema"}, "id": 1259 }, { "operator": "virtualtable", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[311, 330]], "cardinality": 100, "volatility": "volatile", - "attributeCount": 27, - "attributes": [{"colId": 0, "name": "oid", "type": ["Oid"], "iu": ["tc.oid", ["Oid", "nullable"]]}], - "debugName": {"classification": "nonsensitive", "value": "tc"}, - "earlyProbes": [{"builder": 3, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.01], "type": "hashprobe", "passOnNulls": false}], + "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}], "schema": {"type":"builtinschema"}, "id": 1259 }], - "earlyProbedBy": [5], + "early-probed-by": [5], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "c.reltoast"}, "right": {"expression": "iuref", "iu": "tc.oid"}} }], - "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"], "errorHandling": "trap", "allowTrustedCasts": false}, "type": ["Varchar"], "errorHandling": "trap", "allowTrustedCasts": false}}}] + "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}}}] }] } diff --git a/standalone-app/examples/hyper/setoperation.plan.json b/standalone-app/examples/hyper/setoperation.plan.json index 9219454..212435f 100644 --- a/standalone-app/examples/hyper/setoperation.plan.json +++ b/standalone-app/examples/hyper/setoperation.plan.json @@ -1,73 +1,73 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 4008.5, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["union", ["Integer"]]}, {"expression": "iuref", "iu": ["union2", ["Integer"]]}], - "outputNames": ["a2", "b2"], + "output-names": ["a2", "b2"], "inputs": [{ "operator": "unionall", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[76, 85], [44, 53]], "cardinality": 4008.5, "inputs": [{ "operator": "tablescan", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[41, 43]], "cardinality": 2000, "volatility": "stable", - "relationId": 1, + "relation-id": 1, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a2", "type": ["Integer"], "iu": ["scan_a2", ["Integer"]]},{"colId": 1, "name": "b2", "type": ["Integer"], "iu": ["scan_b2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t2"}, + "attribute-count": 3, + "attributes": [{"col-id": 0, "name": "a2", "type": ["Integer"], "iu": ["scan_a2", ["Integer"]]},{"col-id": 1, "name": "b2", "type": ["Integer"], "iu": ["scan_b2", ["Integer"]]}], + "debug-name": {"classification": "nonsensitive", "value": "t2"}, "selectivity": 1 }, { "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[73, 75]], "cardinality": 2000, "volatility": "stable", - "relationId": 1, + "relation-id": 1, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a2", "type": ["Integer"], "iu": ["scan_a22", ["Integer"]]},{"colId": 2, "name": "c2", "type": ["Integer"], "iu": ["scan_c2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t2"}, + "attribute-count": 3, + "attributes": [{"col-id": 0, "name": "a2", "type": ["Integer"], "iu": ["scan_a22", ["Integer"]]},{"col-id": 2, "name": "c2", "type": ["Integer"], "iu": ["scan_c2", ["Integer"]]}], + "debug-name": {"classification": "nonsensitive", "value": "t2"}, "selectivity": 1 }, { "operator": "exceptall", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[190, 200]], "cardinality": 8.50385, "inputs": [{ "operator": "intersectall", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[132, 145]], "cardinality": 900, "inputs": [{ "operator": "tablescan", - "operatorId": 7, + "operator-id": 7, "sqlpos": [[110, 112]], "cardinality": 1000, "volatility": "stable", - "relationId": 0, + "relation-id": 0, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]},{"colId": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b1", ["Integer"]]},{"colId": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c1", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t1"}, + "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"}, "restrictions": [{"attribute": 0, "mode": "<", "selectivity": 0.5, "value": {"expression": "const", "value": {"type": ["Integer"], "value": 0}}}], "selectivity": 0.5 }, { "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[168, 170]], "cardinality": 1000, "volatility": "stable", - "relationId": 0, + "relation-id": 0, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a12", ["Integer"]]},{"colId": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b12", ["Integer"]]},{"colId": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c12", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t1"}, + "attribute-count": 3, + "attributes": [{"col-id": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a12", ["Integer"]]},{"col-id": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b12", ["Integer"]]},{"col-id": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c12", ["Integer"]]}], + "debug-name": {"classification": "nonsensitive", "value": "t1"}, "restrictions": [{"attribute": 0, "mode": ">", "selectivity": 0.5, "value": {"expression": "const", "value": {"type": ["Integer"], "value": 0}}}], "selectivity": 0.5 }], @@ -76,15 +76,15 @@ "collates": [null, null] }, { "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[223, 225]], "cardinality": 1000, "volatility": "stable", - "relationId": 0, + "relation-id": 0, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a13", ["Integer"]]},{"colId": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b13", ["Integer"]]},{"colId": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c13", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t1"}, + "attribute-count": 3, + "attributes": [{"col-id": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a13", ["Integer"]]},{"col-id": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b13", ["Integer"]]},{"col-id": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c13", ["Integer"]]}], + "debug-name": {"classification": "nonsensitive", "value": "t1"}, "restrictions": [{"attribute": 0, "mode": ">", "selectivity": 0.5, "value": {"expression": "const", "value": {"type": ["Integer"], "value": 0}}}], "selectivity": 0.5 }], diff --git a/standalone-app/examples/hyper/tableconstruction.plan.json b/standalone-app/examples/hyper/tableconstruction.plan.json index e4a8106..abf2d3e 100644 --- a/standalone-app/examples/hyper/tableconstruction.plan.json +++ b/standalone-app/examples/hyper/tableconstruction.plan.json @@ -1,13 +1,13 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 2, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["tableconstruction", ["Varchar"]]}, {"expression": "iuref", "iu": ["tableconstruction2", ["Varchar"]]}], - "outputNames": ["column1", "column2"], + "output-names": ["column1", "column2"], "inputs": [{ "operator": "tableconstruction", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[22, 38]], "cardinality": 2, "output": [["tableconstruction", ["Varchar"]], ["tableconstruction2", ["Varchar"]]], diff --git a/standalone-app/examples/hyper/tablefunction.plan.json b/standalone-app/examples/hyper/tablefunction.plan.json index 3912cfd..f31c195 100644 --- a/standalone-app/examples/hyper/tablefunction.plan.json +++ b/standalone-app/examples/hyper/tablefunction.plan.json @@ -1,18 +1,18 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 10, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["sequence", ["Integer"]]}], - "outputNames": ["generate_series"], + "output-names": ["generate_series"], "inputs": [{ "operator": "tablefunction", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[36, 51]], "cardinality": 10, "inputs": [{ "operator": "tableconstruction", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "output": [], "values": [[]], diff --git a/standalone-app/examples/hyper/tablescan-kebab-case.plan.json b/standalone-app/examples/hyper/tablescan-kebab-case.plan.json deleted file mode 100644 index c8223cc..0000000 --- a/standalone-app/examples/hyper/tablescan-kebab-case.plan.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "operator": "executiontarget", - "operator-id": 1, - "cardinality": 5, - "produces-rows": true, - "output": [{"expression": "iuref", "iu": ["scan_r_name", ["Char", 25]]}], - "output-names": ["r_name"], - "inputs": [{ - "operator": "tablescan", - "operator-id": 2, - "sqlpos": [[41, 47]], - "cardinality": 5, - "volatility": "stable", - "relation-id": 9, - "schema": {"type":"sessionschema"}, - "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 - }] -} diff --git a/standalone-app/examples/hyper/tablescan-legacy-camelcase.plan.json b/standalone-app/examples/hyper/tablescan-legacy-camelcase.plan.json new file mode 100644 index 0000000..e97e77a --- /dev/null +++ b/standalone-app/examples/hyper/tablescan-legacy-camelcase.plan.json @@ -0,0 +1,21 @@ +{ + "operator": "executiontarget", + "operatorId": 1, + "cardinality": 5, + "producesRows": true, + "output": [{"expression": "iuref", "iu": ["scan_r_name", ["Char", 25]]}], + "outputNames": ["r_name"], + "inputs": [{ + "operator": "tablescan", + "operatorId": 2, + "sqlpos": [[41, 47]], + "cardinality": 5, + "volatility": "stable", + "relationId": 9, + "schema": {"type":"sessionschema"}, + "attributeCount": 3, + "attributes": [{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], + "debugName": {"classification": "nonsensitive", "value": "region"}, + "selectivity": 1 + }] +} diff --git a/standalone-app/examples/hyper/tablescan.plan.json b/standalone-app/examples/hyper/tablescan.plan.json index e97e77a..c8223cc 100644 --- a/standalone-app/examples/hyper/tablescan.plan.json +++ b/standalone-app/examples/hyper/tablescan.plan.json @@ -1,21 +1,21 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 5, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["scan_r_name", ["Char", 25]]}], - "outputNames": ["r_name"], + "output-names": ["r_name"], "inputs": [{ "operator": "tablescan", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[41, 47]], "cardinality": 5, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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 }] } diff --git a/standalone-app/examples/hyper/tdescan.plan.json b/standalone-app/examples/hyper/tdescan.plan.json index db44cdf..580de34 100644 --- a/standalone-app/examples/hyper/tdescan.plan.json +++ b/standalone-app/examples/hyper/tdescan.plan.json @@ -370,7 +370,7 @@ "copy": false, "from": "/Users/ricole/Documents/My Tableau Repository (Beta)/Datasources/flightinformation_since2013 (public.flightinformation_since2013)+ (ricole).tde", "operator": "tdescan", - "operatorId": 4, + "operator-id": 4, "options": { "limit": -1, "offset": 0, @@ -499,7 +499,7 @@ } }, "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "values": [ { "value": { @@ -522,10 +522,10 @@ ] }, "operator": "select", - "operatorId": 2 + "operator-id": 2 }, "operator": "cursorcreate", - "operatorId": 1, + "operator-id": 1, "values": [ { "expression": "iuref", 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 8eb2702..8890310 100644 --- a/standalone-app/examples/hyper/tpch-q11-error-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch-q11-error-analyze.plan.json @@ -1,98 +1,98 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 10.74, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}], - "outputNames": ["ps_partkey", "value"], + "output-names": ["ps_partkey", "value"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1090, 1102]], "cardinality": 10.74, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "nullFirst": true}], + "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}], "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 10.74, "method": "hash", - "singleMatch": true, + "single-match": true, "inputs": [{ "operator": "map", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[655, 696]], "cardinality": 1, "inputs": [{ "operator": "groupby", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[655, 687]], "cardinality": 1, "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 21.48, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 20.72, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[842, 848]], "cardinality": 1, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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} }, { "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[800, 808]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 7, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 401, "processed-rows": 518, "running": false, "tuple-count": 19} }], - "earlyProbedBy": [9], + "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} }, { "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[758, 766]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 6, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 3, "column-count": 3, "cpu-cycles": 408, "processed-rows": 537, "running": false, "tuple-count": 58} }], - "earlyProbedBy": [10], + "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} }], - "groupingSets": [{"keyIndices": [], "coreIndices": null, "behavior": "static"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_supplyco"}, "right": {"expression": "iuref", "iu": "scan_availqty"}}}], + "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"}}}], "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} }], @@ -100,76 +100,76 @@ "analyze": {"pipeline": 2, "column-count": 1, "tuple-count": 1} }, { "operator": "groupby", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[504, 531], [555, 587], [298, 330]], "cardinality": 21.48, "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 21.48, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 20.72, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[391, 397]], "cardinality": 1, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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} }, { "operator": "tablescan", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[373, 381]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 13, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 7, "column-count": 2, "cpu-cycles": 0, "processed-rows": 0, "running": false, "tuple-count": 0} }], - "earlyProbedBy": [15], + "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} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[355, 363]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 12, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 6, "column-count": 4, "cpu-cycles": 0, "processed-rows": 0, "running": false, "tuple-count": 0} }], - "earlyProbedBy": [16], + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "scan_availqty2"}}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}}], "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} }], @@ -178,5 +178,5 @@ }], "analyze": {"pipeline": 0, "column-count": 2, "cpu-cycles": 0, "memory-bytes": 0, "running": false, "tuple-count": 0} }], - "analyze": {"error": {"code": "22012", "message": {"original": "division by zero", "translation": "division by zero"}, "detail": null, "internalDetail": null, "hint": null, "source": "User"}, "pipeline": 0, "column-count": 0} + "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} } 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 1602cb3..d398436 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q1-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q1-analyze.plan.json @@ -1,40 +1,40 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 4, - "producesRows": true, + "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"]]}], - "outputNames": ["l_returnflag", "l_linestatus", "sum_qty", "sum_base_price", "sum_disc_price", "sum_charge", "avg_qty", "avg_price", "avg_disc", "count_order"], + "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", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[718, 730]], "cardinality": 4, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[649, 700], [193, 208], [229, 249], [277, 316], [344, 397], [421, 436], [457, 477], [500, 515], [537, 545]], "cardinality": 4, "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[574, 582]], "cardinality": 568, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"colId": 7, "name": "l_tax", "type": ["Numeric", 12, 2], "iu": ["scan_l_tax", ["Numeric", 12, 2]]},{"colId": 8, "name": "l_returnflag", "type": ["Char1"], "iu": ["scan_returnfl", ["Char1"]]},{"colId": 9, "name": "l_linestatus", "type": ["Char1"], "iu": ["scan_linestat", ["Char1"]]},{"colId": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_returnfl"}}, "iu": ["GroupByKey", ["Char1"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_linestat"}}, "iu": ["GroupByKey2", ["Char1"]]}], - "groupingSets": [{"keyIndices": [0, 1], "coreIndices": [0, 1], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"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"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_returnfl"}}, "iu": ["GroupByKey", ["Char1"]]}, {"expression": {"value": {"expression": "iuref", "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"}}], "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} }], 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 08f6b27..bbe540b 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q10-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q10-analyze.plan.json @@ -1,114 +1,114 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 9.61875, - "producesRows": true, + "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]]}], - "outputNames": ["c_custkey", "c_name", "revenue", "c_acctbal", "n_name", "c_address", "c_phone", "c_comment"], + "output-names": ["c_custkey", "c_name", "revenue", "c_acctbal", "n_name", "c_address", "c_phone", "c_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[778, 790], [791, 800]], "cardinality": 9.61875, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "nullFirst": true}], + "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}], "limit": 20, "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[628, 760], [185, 224]], "cardinality": 9.61875, "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "cardinality": 10.6875, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 9, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 9, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 7, + "operator-id": 7, "sqlpos": [[357, 363]], "cardinality": 9, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"colId": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, + "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} }, { "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[339, 347]], "cardinality": 129, "volatility": "stable", - "relationId": 5, + "relation-id": 5, "schema": {"type":"sessionschema"}, - "attributeCount": 8, - "attributes": [{"colId": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"colId": 1, "name": "c_name", "type": ["Varchar", 25], "iu": ["scan_c_name", ["Varchar", 25]]},{"colId": 2, "name": "c_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "c_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 4, "name": "c_phone", "type": ["Char", 15], "iu": ["scan_c_phone", ["Char", 15]]},{"colId": 5, "name": "c_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 7, "name": "c_comment", "type": ["Varchar", 117], "iu": ["scan_comment", ["Varchar", 117]]}], - "debugName": {"classification": "nonsensitive", "value": "customer"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0697674], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 7, "cpu-cycles": 198, "processed-rows": 129, "running": false, "tuple-count": 15} }], - "earlyProbedBy": [8], + "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} }, { "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[391, 397]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.36], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 3, "column-count": 2, "cpu-cycles": 131, "processed-rows": 25, "running": false, "tuple-count": 11} }], - "earlyProbedBy": [9], + "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} }, { "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[373, 381]], "cardinality": 152, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"colId": 8, "name": "l_returnflag", "type": ["Char1"], "iu": ["scan_returnfl", ["Char1"]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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}}}], - "earlyProbes": [{"builder": 4, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0703125], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0703125], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.265734, "analyze": {"pipeline": 2, "column-count": 3, "cpu-cycles": 443, "processed-rows": 572, "running": false, "tuple-count": 37} }], - "earlyProbedBy": [10], + "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} }], - "keyExpressions": [{"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]]}], - "groupingSets": [{"keyIndices": [0, 1, 2, 3, 4, 5, 6], "coreIndices": [0, 1, 2, 3, 4, 5, 6], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"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"}}}], + "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]]}], + "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"}}}], "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} }], 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 0de210c..d1b5a1f 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q11-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q11-analyze.plan.json @@ -1,98 +1,98 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 10.74, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}], - "outputNames": ["ps_partkey", "value"], + "output-names": ["ps_partkey", "value"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[958, 970]], "cardinality": 10.74, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "nullFirst": true}], + "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}], "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 10.74, "method": "hash", - "singleMatch": true, + "single-match": true, "inputs": [{ "operator": "map", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[527, 568]], "cardinality": 1, "inputs": [{ "operator": "groupby", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[527, 559]], "cardinality": 1, "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 21.48, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 20.72, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[714, 720]], "cardinality": 1, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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} }, { "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[672, 680]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 7, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 334, "processed-rows": 518, "running": false, "tuple-count": 19} }], - "earlyProbedBy": [9], + "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} }, { "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[630, 638]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 6, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 3, "column-count": 3, "cpu-cycles": 451, "processed-rows": 537, "running": false, "tuple-count": 58} }], - "earlyProbedBy": [10], + "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} }], - "groupingSets": [{"keyIndices": [], "coreIndices": null, "behavior": "static"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_supplyco"}, "right": {"expression": "iuref", "iu": "scan_availqty"}}}], + "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"}}}], "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} }], @@ -100,76 +100,76 @@ "analyze": {"pipeline": 2, "column-count": 1, "tuple-count": 1} }, { "operator": "groupby", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[376, 403], [427, 459], [170, 202]], "cardinality": 21.48, "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 21.48, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 20.72, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[263, 269]], "cardinality": 1, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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} }, { "operator": "tablescan", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[245, 253]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 13, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 7, "column-count": 2, "cpu-cycles": 266, "processed-rows": 518, "running": false, "tuple-count": 19} }], - "earlyProbedBy": [15], + "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} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[227, 235]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 12, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 6, "column-count": 4, "cpu-cycles": 428, "processed-rows": 537, "running": false, "tuple-count": 58} }], - "earlyProbedBy": [16], + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_supplyco2"}, "right": {"expression": "iuref", "iu": "scan_availqty2"}}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}}], "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} }], 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 81f53b5..e3ebd3c 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q12-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q12-analyze.plan.json @@ -1,65 +1,65 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 7, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 10]]}, {"expression": "iuref", "iu": ["sum", ["BigInt"]]}, {"expression": "iuref", "iu": ["sum2", ["BigInt"]]}], - "outputNames": ["l_shipmode", "high_line_count", "low_line_count"], + "output-names": ["l_shipmode", "high_line_count", "low_line_count"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[915, 925]], "cardinality": 7, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[870, 897], [170, 349], [378, 560]], "cardinality": 7, "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "cardinality": 26.25, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[608, 616]], "cardinality": 26.25, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]},{"colId": 11, "name": "l_commitdate", "type": ["Date"], "iu": ["scan_commitda", ["Date"]]},{"colId": 12, "name": "l_receiptdate", "type": ["Date"], "iu": ["scan_receiptd", ["Date"]]},{"colId": 14, "name": "l_shipmode", "type": ["Char", 10], "iu": ["scan_shipmode", ["Char", 10]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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"}}], "selectivity": 0.0458916, "analyze": {"pipeline": 3, "column-count": 2, "cpu-cycles": 789, "processed-rows": 572, "running": false, "tuple-count": 2} }, { "operator": "tablescan", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[592, 598]], "cardinality": 128, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 5, "name": "o_orderpriority", "type": ["Char", 15], "iu": ["scan_orderpri", ["Char", 15]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, - "earlyProbes": [{"builder": 4, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.205078], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 228, "processed-rows": 128, "running": false, "tuple-count": 4} }], - "earlyProbedBy": [6], + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_shipmode"}}, "iu": ["GroupByKey", ["Char", 10]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"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}}}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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}}}}], "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} }], 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 ff33f86..bee9a8e 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q13-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q13-analyze.plan.json @@ -1,72 +1,72 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 3, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["BigInt"]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}], - "outputNames": ["c_count", "custdist"], + "output-names": ["c_count", "custdist"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[644, 657]], "cardinality": 3, - "criterion": [{"value": {"expression": "iuref", "iu": "count"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": true, "nullFirst": true}], + "criterion": [{"value": {"expression": "iuref", "iu": "count"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": true, "null-first": true}], "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[602, 626], [167, 175]], "cardinality": 3, "inputs": [{ "operator": "groupby", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[537, 579], [285, 302]], "cardinality": 129, "inputs": [{ "operator": "rightouterjoin", - "operatorId": 5, + "operator-id": 5, "cardinality": 175.641, "method": "hash", "inputs": [{ "operator": "tablescan", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[381, 387]], "cardinality": 128, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer", "nullable"]]},{"colId": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer", "nullable"]]},{"colId": 8, "name": "o_comment", "type": ["Varchar", 79], "iu": ["scan_comment", ["Varchar", 79, "nullable"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, + "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": "\\"}}]}}}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 824, "processed-rows": 128, "running": false, "tuple-count": 128} }, { "operator": "tablescan", - "operatorId": 7, + "operator-id": 7, "sqlpos": [[356, 364]], "cardinality": 129, "volatility": "stable", - "relationId": 5, + "relation-id": 5, "schema": {"type":"sessionschema"}, - "attributeCount": 8, - "attributes": [{"colId": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "customer"}, + "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} }], "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_custkey2"}}, "iu": ["GroupByKey2", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_orderkey"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "count2"}}, "iu": ["GroupByKey", ["BigInt"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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} }], 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 8f321b6..722e202 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q14-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q14-analyze.plan.json @@ -1,62 +1,62 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["map", ["BigNumeric", 38, 6, "nullable"]]}], - "outputNames": ["promo_revenue"], + "output-names": ["promo_revenue"], "inputs": [{ "operator": "map", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[150, 368]], "cardinality": 1, "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[159, 309], [312, 351]], "cardinality": 1, "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "cardinality": 11, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[382, 390]], "cardinality": 11, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"colId": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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} }, { "operator": "tablescan", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[400, 404]], "cardinality": 533, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, - "earlyProbes": [{"builder": 4, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0206379], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 1, "column-count": 2, "cpu-cycles": 356, "processed-rows": 533, "running": false, "tuple-count": 37} }], - "earlyProbedBy": [6], + "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} }], - "groupingSets": [{"keyIndices": [], "coreIndices": null, "behavior": "static"}], - "emptyGroups": true, - "aggExpressions": [{"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"}}}], + "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"}}}], "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} }], 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 006e7eb..b6bdf16 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q15-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q15-analyze.plan.json @@ -1,75 +1,75 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_suppkey", "s_name", "s_address", "s_phone", "total_revenue"], + "output-names": ["s_suppkey", "s_name", "s_address", "s_phone", "total_revenue"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[572, 581]], "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_suppkey"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "scan_suppkey"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "cardinality": 1, "method": "hash", - "singleMatch": true, + "single-match": true, "inputs": [{ "operator": "groupby", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[522, 540]], "cardinality": 1, "inputs": [{ "operator": "explicitscan", - "operatorId": 6, + "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]]}], "input": { "operator": "groupby", - "operatorId": 7, + "operator-id": 7, "sqlpos": [[344, 364], [191, 230]], "cardinality": 50, "inputs": [{ "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[256, 264]], "cardinality": 50, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"colId": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_suppkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"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"}}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}}], "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} }, "analyze": {"pipeline": 4, "column-count": 1, "cpu-cycles": 176, "running": false, "tuple-count": 50} }], - "groupingSets": [{"keyIndices": [], "coreIndices": null, "behavior": "static"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "sum3"}}], + "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], + "empty-groups": true, + "agg-expressions": [{"value": {"expression": "iuref", "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} }, { "operator": "explicitscan", - "operatorId": 9, + "operator-id": 9, "cardinality": 50, "mapping": [{"source": {"expression": "iuref", "iu": "GroupByKey"}, "target": ["GroupByKey3", ["Integer"]]}, {"source": {"expression": "iuref", "iu": "sum2"}, "target": ["sum", ["BigNumeric", 38, 4]]}], "input": 7, @@ -79,20 +79,20 @@ "analyze": {"pipeline": 2, "column-count": 2, "memory-bytes": 18552, "tuple-count": 1} }, { "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[437, 445]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 3, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0019305], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 1, "column-count": 4, "cpu-cycles": 261, "processed-rows": 518, "running": false, "tuple-count": 1} }], - "earlyProbedBy": [10], + "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} }], 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 621e1a8..1be7b37 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q16-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q16-analyze.plan.json @@ -1,86 +1,86 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 81, - "producesRows": true, + "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"]]}], - "outputNames": ["p_brand", "p_type", "p_size", "supplier_cnt"], + "output-names": ["p_brand", "p_type", "p_size", "supplier_cnt"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[761, 778]], "cardinality": 81, - "criterion": [{"value": {"expression": "iuref", "iu": "count"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "GroupByKey3"}, "descending": false, "nullFirst": false}], + "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}], "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[687, 743], [199, 225]], "cardinality": 81, "inputs": [{ "operator": "rightantijoin", - "operatorId": 4, + "operator-id": 4, "cardinality": 81.4503, "method": "hash", "inputs": [{ "operator": "tablescan", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[583, 591]], "cardinality": 1, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, + "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": "\\"}}]}}], "selectivity": 0.0019305, "analyze": {"pipeline": 3, "column-count": 1, "cpu-cycles": 1055, "processed-rows": 518, "running": false, "tuple-count": 0} }, { "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 81.6079, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 7, + "operator-id": 7, "sqlpos": [[273, 277]], "cardinality": 81, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 3, "name": "p_brand", "type": ["Char", 10], "iu": ["scan_p_brand", ["Char", 10]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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"}}}}], "selectivity": 0.15197, "analyze": {"pipeline": 4, "column-count": 4, "cpu-cycles": 633, "processed-rows": 533, "running": false, "tuple-count": 81} }, { "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[255, 263]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.15197], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 489, "processed-rows": 537, "running": false, "tuple-count": 185} }], - "earlyProbedBy": [8], + "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": "iuref", "iu": "scan_suppkey2"}, "right": {"expression": "iuref", "iu": "scan_suppkey"}}, "analyze": {"pipeline": 2, "column-count": 4, "memory-bytes": 2048, "tuple-count": 81} }], - "keyExpressions": [{"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"]]}], - "groupingSets": [{"keyIndices": [0, 1, 2], "coreIndices": [0, 1, 2], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_suppkey2"}}], + "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"]]}], + "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"}}], "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} }], 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 3d3dbd4..7326928 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q17-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q17-analyze.plan.json @@ -1,107 +1,107 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["map", ["BigNumeric", 38, 6, "nullable"]]}], - "outputNames": ["avg_yearly"], + "output-names": ["avg_yearly"], "inputs": [{ "operator": "map", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[150, 190]], "cardinality": 1, "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[150, 170]], "cardinality": 1, "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "cardinality": 2.41463, "method": "hash", - "computeLeftBounds": [0, 1, 2], + "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 3, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[222, 226]], "cardinality": 3, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 3, "name": "p_brand", "type": ["Char", 10], "iu": ["scan_p_brand", ["Char", 10]]},{"colId": 6, "name": "p_container", "type": ["Char", 10], "iu": ["scan_containe", ["Char", 10]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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} }, { "operator": "map", - "operatorId": 7, + "operator-id": 7, "sqlpos": [[406, 427]], "cardinality": 533, "inputs": [{ "operator": "groupby", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[412, 427]], "cardinality": 533, "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[473, 481]], "cardinality": 572, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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}}], - "earlyProbes": [{"builder": 5, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.00562852], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 5, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.00562852], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 300, "processed-rows": 572, "running": false, "tuple-count": 50} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "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} }], "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} }], - "earlyProbedBy": [9], + "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} }, { "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[204, 212]], "cardinality": 572, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity2", ["Numeric", 12, 2]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, - "earlyProbes": [{"builder": 4, "attributes": [1, 1, 4], "numEqualityPredicates": 2, "selectivities": [0.00562852, 0.00562852, null], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 1, "column-count": 3, "cpu-cycles": 141, "processed-rows": 572, "running": false, "tuple-count": 572} }], - "earlyProbedBy": [10], + "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} }], - "groupingSets": [{"keyIndices": [], "coreIndices": null, "behavior": "static"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_extended"}}], + "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], + "empty-groups": true, + "agg-expressions": [{"value": {"expression": "iuref", "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} }], 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 7114adb..e8979f2 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q18-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q18-analyze.plan.json @@ -1,69 +1,69 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 100, - "producesRows": true, + "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]]}], - "outputNames": ["c_name", "c_custkey", "o_orderkey", "o_orderdate", "o_totalprice", "sum"], + "output-names": ["c_name", "c_custkey", "o_orderkey", "o_orderdate", "o_totalprice", "sum"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[786, 803], [825, 835]], "cardinality": 100, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey5"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "GroupByKey4"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey5"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "GroupByKey4"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[663, 768], [248, 263]], "cardinality": 203.17, "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "cardinality": 225.745, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 50.5164, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "rightsemijoin", - "operatorId": 6, + "operator-id": 6, "cardinality": 50.5164, "method": "hash", - "singleMatch": true, - "computeLeftBounds": [0], - "filterJoinIU": ["scan_orderkey", ["Integer"]], + "single-match": true, + "compute-left-bounds": [0], + "filter-join-iu": ["scan_orderkey", ["Integer"]], "inputs": [{ "operator": "filter", - "operatorId": 7, + "operator-id": 7, "cardinality": 64, "inputs": [{ "operator": "groupby", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[478, 521], [561, 576]], "cardinality": 128, "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[453, 461]], "cardinality": 572, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_orderkey2"}}, "iu": ["GroupByKey6", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "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} }], @@ -71,63 +71,63 @@ "analyze": {"pipeline": 5, "column-count": 1, "tuple-count": 2} }, { "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[295, 301]], "cardinality": 128, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"colId": 3, "name": "o_totalprice", "type": ["Numeric", 12, 2], "iu": ["scan_totalpri", ["Numeric", 12, 2]]},{"colId": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.5], "type": "exactprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 4, "cpu-cycles": 189, "processed-rows": 128, "running": false, "tuple-count": 2} }], - "earlyProbedBy": [10], + "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} }, { "operator": "tablescan", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[277, 285]], "cardinality": 129, "volatility": "stable", - "relationId": 5, + "relation-id": 5, "schema": {"type":"sessionschema"}, - "attributeCount": 8, - "attributes": [{"colId": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"colId": 1, "name": "c_name", "type": ["Varchar", 25], "iu": ["scan_c_name", ["Varchar", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "customer"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.3916], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 3, "column-count": 2, "cpu-cycles": 128, "processed-rows": 129, "running": false, "tuple-count": 2} }], - "earlyProbedBy": [11], + "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} }, { "operator": "tablescan", - "operatorId": 12, + "operator-id": 12, "sqlpos": [[311, 319]], "cardinality": 572, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey3", ["Integer"]]},{"colId": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, - "earlyProbes": [{"builder": 4, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.394659], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 333, "processed-rows": 572, "running": false, "tuple-count": 15} }], - "earlyProbedBy": [12], + "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} }], - "keyExpressions": [{"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]]}], - "groupingSets": [{"keyIndices": [0, 1, 2, 3, 4], "coreIndices": [0, 1, 2, 3, 4], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_quantity2"}}], + "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]]}], + "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"}}], "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} }], 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 458bdef..2c902e1 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q19-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q19-analyze.plan.json @@ -1,57 +1,57 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4, "nullable"]]}], - "outputNames": ["revenue"], + "output-names": ["revenue"], "inputs": [{ "operator": "groupby", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[150, 188]], "cardinality": 1, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 11.8234, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[213, 221]], "cardinality": 23, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"colId": 13, "name": "l_shipinstruct", "type": ["Char", 25], "iu": ["scan_shipinst", ["Char", 25]]},{"colId": 14, "name": "l_shipmode", "type": ["Char", 10], "iu": ["scan_shipmode", ["Char", 10]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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"]}}], "selectivity": 0.0402098, "analyze": {"pipeline": 2, "column-count": 4, "cpu-cycles": 853, "processed-rows": 572, "running": false, "tuple-count": 23} }, { "operator": "tablescan", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[231, 235]], "cardinality": 533, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 3, "name": "p_brand", "type": ["Char", 10], "iu": ["scan_p_brand", ["Char", 10]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]},{"colId": 6, "name": "p_container", "type": ["Char", 10], "iu": ["scan_containe", ["Char", 10]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, - "earlyProbes": [{"builder": 3, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.043152], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 1, "column-count": 4, "cpu-cycles": 350, "processed-rows": 533, "running": false, "tuple-count": 65} }], - "earlyProbedBy": [5], + "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} }], - "groupingSets": [{"keyIndices": [], "coreIndices": null, "behavior": "static"}], - "emptyGroups": true, - "aggExpressions": [{"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"}}}], + "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"}}}], "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} }], 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 93d6036..075bf46 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q2-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q2-analyze.plan.json @@ -1,233 +1,233 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1149, 1163], [1209, 1218]], "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[360, 366]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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} }, { "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0, 1, 2], + "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[294, 298]], "cardinality": 6, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.011257, "analyze": {"pipeline": 6, "column-count": 2, "cpu-cycles": 444, "processed-rows": 533, "running": false, "tuple-count": 6} }, { "operator": "groupby", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[679, 697]], "cardinality": 107.4, "inputs": [{ "operator": "join", - "operatorId": 11, + "operator-id": 11, "cardinality": 107.4, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 103.6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 5, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[843, 849]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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} }, { "operator": "tablescan", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[811, 817]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 13, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 9, "column-count": 2, "cpu-cycles": 114, "processed-rows": 25, "running": false, "tuple-count": 5} }], - "earlyProbedBy": [15], + "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} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[777, 785]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 12, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 8, "column-count": 2, "cpu-cycles": 366, "processed-rows": 518, "running": false, "tuple-count": 109} }], - "earlyProbedBy": [16], + "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} }, { "operator": "tablescan", - "operatorId": 17, + "operator-id": 17, "sqlpos": [[743, 751]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 11, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}, {"builder": 8, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.011257], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 7, "column-count": 3, "cpu-cycles": 318, "processed-rows": 537, "running": false, "tuple-count": 11} }], - "earlyProbedBy": [17], + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "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} }], - "earlyProbedBy": [17], + "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} }, { "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[326, 334]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 7, "attributes": [3, 0, 0], "numEqualityPredicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 3, "cpu-cycles": 118, "processed-rows": 537, "running": false, "tuple-count": 537} }], - "earlyProbedBy": [18], + "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} }, { "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[308, 316]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 3, "column-count": 7, "cpu-cycles": 419, "processed-rows": 518, "running": false, "tuple-count": 5} }], - "earlyProbedBy": [19], + "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} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[344, 350]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "passOnNulls": false}, {"builder": 3, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 1, "column-count": 3, "cpu-cycles": 231, "processed-rows": 25, "running": false, "tuple-count": 2} }], - "earlyProbedBy": [20], + "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} }], - "earlyProbedBy": [20], + "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} }], 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 2620782..1b1ee6a 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q2-steps.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q2-steps.plan.json @@ -2,180 +2,180 @@ "name": "Initial", "plan": { "operator": "executiontarget", - "operatorId": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "filter", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[388, 1140]], "inputs": [{ "operator": "leftouterjoin", - "operatorId": 4, + "operator-id": 4, "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[301, 305]], "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 1, "name": "p_name", "type": ["Varchar", 55], "iu": ["scan_p_name", ["Varchar", 55]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 3, "name": "p_brand", "type": ["Char", 10], "iu": ["scan_p_brand", ["Char", 10]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]},{"colId": 6, "name": "p_container", "type": ["Char", 10], "iu": ["scan_containe", ["Char", 10]]},{"colId": 7, "name": "p_retailprice", "type": ["Numeric", 12, 2], "iu": ["scan_retailpr", ["Numeric", 12, 2]]},{"colId": 8, "name": "p_comment", "type": ["Varchar", 23], "iu": ["scan_comment2", ["Varchar", 23]]}], - "systemValues": {"ctid": ["scan_tid", ["BigInt"]], "table-oid": ["scan_oid", ["RegClass"]], "tuple-flags": ["scan_flags", ["BigInt"]]}, - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[315, 323]], "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "systemValues": {"ctid": ["scan_tid2", ["BigInt"]], "table-oid": ["scan_oid2", ["RegClass"]], "tuple-flags": ["scan_flags2", ["BigInt"]]}, - "debugName": {"classification": "nonsensitive", "value": "supplier"}, + "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}} }, { "operator": "tablescan", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[333, 341]], "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]},{"colId": 4, "name": "ps_comment", "type": ["Varchar", 199], "iu": ["scan_comment3", ["Varchar", 199]]}], - "systemValues": {"ctid": ["scan_tid3", ["BigInt"]], "table-oid": ["scan_oid3", ["RegClass"]], "tuple-flags": ["scan_flags3", ["BigInt"]]}, - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, + "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}} }, { "operator": "tablescan", - "operatorId": 12, + "operator-id": 12, "sqlpos": [[351, 357]], "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 3, "name": "n_comment", "type": ["Varchar", 152], "iu": ["scan_comment4", ["Varchar", 152]]}], - "systemValues": {"ctid": ["scan_tid4", ["BigInt"]], "table-oid": ["scan_oid4", ["RegClass"]], "tuple-flags": ["scan_flags4", ["BigInt"]]}, - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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}} }, { "operator": "tablescan", - "operatorId": 13, + "operator-id": 13, "sqlpos": [[367, 373]], "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]},{"colId": 2, "name": "r_comment", "type": ["Varchar", 152], "iu": ["scan_comment5", ["Varchar", 152]]}], - "systemValues": {"ctid": ["scan_tid5", ["BigInt"]], "table-oid": ["scan_oid5", ["RegClass"]], "tuple-flags": ["scan_flags5", ["BigInt"]]}, - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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}} }, { "operator": "groupby", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[686, 704]], "inputs": [{ "operator": "filter", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[903, 1130]], "inputs": [{ "operator": "join", - "operatorId": 16, + "operator-id": 16, "inputs": [{ "operator": "join", - "operatorId": 17, + "operator-id": 17, "inputs": [{ "operator": "join", - "operatorId": 18, + "operator-id": 18, "inputs": [{ "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[750, 758]], "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]},{"colId": 4, "name": "ps_comment", "type": ["Varchar", 199], "iu": ["scan_comment6", ["Varchar", 199]]}], - "systemValues": {"ctid": ["scan_tid6", ["BigInt"]], "table-oid": ["scan_oid6", ["RegClass"]], "tuple-flags": ["scan_flags6", ["BigInt"]]}, - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, + "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", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[784, 792]], "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name2", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address2", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone2", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal2", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment7", ["Varchar", 101]]}], - "systemValues": {"ctid": ["scan_tid7", ["BigInt"]], "table-oid": ["scan_oid7", ["RegClass"]], "tuple-flags": ["scan_flags7", ["BigInt"]]}, - "debugName": {"classification": "nonsensitive", "value": "supplier"}, + "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}} }, { "operator": "tablescan", - "operatorId": 21, + "operator-id": 21, "sqlpos": [[818, 824]], "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name2", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]},{"colId": 3, "name": "n_comment", "type": ["Varchar", 152], "iu": ["scan_comment8", ["Varchar", 152]]}], - "systemValues": {"ctid": ["scan_tid8", ["BigInt"]], "table-oid": ["scan_oid8", ["RegClass"]], "tuple-flags": ["scan_flags8", ["BigInt"]]}, - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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}} }, { "operator": "tablescan", - "operatorId": 22, + "operator-id": 22, "sqlpos": [[850, 856]], "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]},{"colId": 2, "name": "r_comment", "type": ["Varchar", 152], "iu": ["scan_comment9", ["Varchar", 152]]}], - "systemValues": {"ctid": ["scan_tid9", ["BigInt"]], "table-oid": ["scan_oid9", ["RegClass"]], "tuple-flags": ["scan_flags9", ["BigInt"]]}, - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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": "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"}}}]} }], - "groupingSets": [{"keyIndices": [], "coreIndices": null, "behavior": "static"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco2"}}], + "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], + "empty-groups": true, + "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco2"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], "condition": {"expression": "const", "value": {"type": ["Bool"], "value": true}} @@ -188,181 +188,181 @@ "name": "Unnesting", "plan": { "operator": "executiontarget", - "operatorId": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "filter", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[388, 1140]], "inputs": [{ "operator": "leftouterjoin", - "operatorId": 4, + "operator-id": 4, "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[301, 305]], "cardinality": 533, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[315, 323]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, + "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}} }, { "operator": "tablescan", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[333, 341]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, + "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}} }, { "operator": "tablescan", - "operatorId": 12, + "operator-id": 12, "sqlpos": [[351, 357]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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}} }, { "operator": "tablescan", - "operatorId": 13, + "operator-id": 13, "sqlpos": [[367, 373]], "cardinality": 5, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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}} }, { "operator": "groupby", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[686, 704]], "inputs": [{ "operator": "filter", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[903, 1130]], "inputs": [{ "operator": "join", - "operatorId": 16, + "operator-id": 16, "inputs": [{ "operator": "join", - "operatorId": 17, + "operator-id": 17, "inputs": [{ "operator": "join", - "operatorId": 18, + "operator-id": 18, "inputs": [{ "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[750, 758]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, + "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", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[784, 792]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, + "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}} }, { "operator": "tablescan", - "operatorId": 21, + "operator-id": 21, "sqlpos": [[818, 824]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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}} }, { "operator": "tablescan", - "operatorId": 22, + "operator-id": 22, "sqlpos": [[850, 856]], "cardinality": 5, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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": "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"}}}]} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey3"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": null, "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco2"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "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"}}]} @@ -375,155 +375,155 @@ "name": "PredicatePushdown", "plan": { "operator": "executiontarget", - "operatorId": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "inputs": [{ "operator": "groupby", - "operatorId": 7, + "operator-id": 7, "sqlpos": [[686, 704]], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "inputs": [{ "operator": "join", - "operatorId": 9, + "operator-id": 9, "inputs": [{ "operator": "join", - "operatorId": 10, + "operator-id": 10, "inputs": [{ "operator": "tablescan", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[850, 856]], "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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"}}}], "selectivity": 0.2 }, { "operator": "tablescan", - "operatorId": 12, + "operator-id": 12, "sqlpos": [[818, 824]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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"}} }, { "operator": "tablescan", - "operatorId": 13, + "operator-id": 13, "sqlpos": [[784, 792]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, + "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"}} }, { "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[750, 758]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, + "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"}} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": null, "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }, { "operator": "tablescan", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[301, 305]], "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}], "selectivity": 0.011 }], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[333, 341]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, + "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"}}]} }, { "operator": "join", - "operatorId": 17, + "operator-id": 17, "inputs": [{ "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[351, 357]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[315, 323]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, + "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"}} @@ -531,14 +531,14 @@ "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[367, 373]], "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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"}}}], "selectivity": 0.2 }], @@ -550,181 +550,181 @@ "name": "Reordering", "plan": { "operator": "executiontarget", - "operatorId": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[367, 373]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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 }, { "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 1.20901, "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 1.20901, "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 1.20901, "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 6, "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[301, 305]], "cardinality": 6, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.011257 }, { "operator": "groupby", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[686, 704]], "cardinality": 107.4, "inputs": [{ "operator": "join", - "operatorId": 11, + "operator-id": 11, "cardinality": 107.4, "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 103.6, "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 5, "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[850, 856]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[818, 824]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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"}} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[784, 792]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, + "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"}} }, { "operator": "tablescan", - "operatorId": 17, + "operator-id": 17, "sqlpos": [[750, 758]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, + "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"}} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "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"}} }, { "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[333, 341]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, + "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"}}]} }, { "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[315, 323]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, + "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"}} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[351, 357]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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"}} @@ -737,215 +737,215 @@ "name": "ChoosePhysical", "plan": { "operator": "executiontarget", - "operatorId": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[367, 373]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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 }, { "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0, 1, 2], + "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[301, 305]], "cardinality": 6, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.011257 }, { "operator": "groupby", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[686, 704]], "cardinality": 107.4, "inputs": [{ "operator": "join", - "operatorId": 11, + "operator-id": 11, "cardinality": 107.4, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 103.6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 5, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[850, 856]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[818, 824]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 13, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [15], + "early-probed-by": [15], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[784, 792]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 12, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [16], + "early-probed-by": [16], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} }, { "operator": "tablescan", - "operatorId": 17, + "operator-id": 17, "sqlpos": [[750, 758]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 11, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}, {"builder": 8, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.011257], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} }, { "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[333, 341]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 7, "attributes": [3, 0, 0], "numEqualityPredicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [18], + "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"}}]} }, { "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[315, 323]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [19], + "early-probed-by": [19], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[351, 357]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "passOnNulls": false}, {"builder": 3, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} }] }] @@ -954,215 +954,215 @@ "name": "ChooseAccessPath", "plan": { "operator": "executiontarget", - "operatorId": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[367, 373]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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 }, { "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0, 1, 2], + "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[301, 305]], "cardinality": 6, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.011257 }, { "operator": "groupby", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[686, 704]], "cardinality": 107.4, "inputs": [{ "operator": "join", - "operatorId": 11, + "operator-id": 11, "cardinality": 107.4, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 103.6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 5, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[850, 856]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[818, 824]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 13, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [15], + "early-probed-by": [15], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[784, 792]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 12, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [16], + "early-probed-by": [16], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} }, { "operator": "tablescan", - "operatorId": 17, + "operator-id": 17, "sqlpos": [[750, 758]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 11, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}, {"builder": 8, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.011257], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} }, { "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[333, 341]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 7, "attributes": [3, 0, 0], "numEqualityPredicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [18], + "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"}}]} }, { "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[315, 323]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [19], + "early-probed-by": [19], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[351, 357]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "passOnNulls": false}, {"builder": 3, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} }] }] @@ -1171,215 +1171,215 @@ "name": "Deduplication", "plan": { "operator": "executiontarget", - "operatorId": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1156, 1170], [1216, 1225]], - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[367, 373]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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 }, { "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0, 1, 2], + "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[301, 305]], "cardinality": 6, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.011257 }, { "operator": "groupby", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[686, 704]], "cardinality": 107.4, "inputs": [{ "operator": "join", - "operatorId": 11, + "operator-id": 11, "cardinality": 107.4, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 103.6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 5, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[850, 856]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[818, 824]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 13, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [15], + "early-probed-by": [15], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[784, 792]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 12, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [16], + "early-probed-by": [16], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} }, { "operator": "tablescan", - "operatorId": 17, + "operator-id": 17, "sqlpos": [[750, 758]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 11, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}, {"builder": 8, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.011257], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} }, { "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[333, 341]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 7, "attributes": [3, 0, 0], "numEqualityPredicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [18], + "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"}}]} }, { "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[315, 323]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [19], + "early-probed-by": [19], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[351, 357]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "passOnNulls": false}, {"builder": 3, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} }] }] @@ -1388,217 +1388,217 @@ "name": "CachingAndBatching", "plan": { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1156, 1170], [1216, 1225]], "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[367, 373]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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 }, { "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0, 1, 2], + "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[301, 305]], "cardinality": 6, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.011257 }, { "operator": "groupby", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[686, 704]], "cardinality": 107.4, "inputs": [{ "operator": "join", - "operatorId": 11, + "operator-id": 11, "cardinality": 107.4, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 103.6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 5, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[850, 856]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[818, 824]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 13, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [15], + "early-probed-by": [15], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[784, 792]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 12, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [16], + "early-probed-by": [16], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} }, { "operator": "tablescan", - "operatorId": 17, + "operator-id": 17, "sqlpos": [[750, 758]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 11, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}, {"builder": 8, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.011257], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} }, { "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[333, 341]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 7, "attributes": [3, 0, 0], "numEqualityPredicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [18], + "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"}}]} }, { "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[315, 323]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [19], + "early-probed-by": [19], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[351, 357]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "passOnNulls": false}, {"builder": 3, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} }] }] @@ -1607,217 +1607,217 @@ "name": "Final", "plan": { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1156, 1170], [1216, 1225]], "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[367, 373]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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 }, { "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0, 1, 2], + "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[301, 305]], "cardinality": 6, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.011257 }, { "operator": "groupby", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[686, 704]], "cardinality": 107.4, "inputs": [{ "operator": "join", - "operatorId": 11, + "operator-id": 11, "cardinality": 107.4, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 103.6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 5, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[850, 856]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[818, 824]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 13, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [15], + "early-probed-by": [15], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[784, 792]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 12, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [16], + "early-probed-by": [16], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} }, { "operator": "tablescan", - "operatorId": 17, + "operator-id": 17, "sqlpos": [[750, 758]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 11, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}, {"builder": 8, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.011257], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} }, { "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[333, 341]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 7, "attributes": [3, 0, 0], "numEqualityPredicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [18], + "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"}}]} }, { "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[315, 323]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [19], + "early-probed-by": [19], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[351, 357]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "passOnNulls": false}, {"builder": 3, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} }] }] diff --git a/standalone-app/examples/hyper/tpch/tpch-q2.plan.json b/standalone-app/examples/hyper/tpch/tpch-q2.plan.json index d95cc91..98c939a 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q2.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q2.plan.json @@ -1,216 +1,216 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "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]]}], - "outputNames": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], + "output-names": ["s_acctbal", "s_name", "n_name", "p_partkey", "p_mfgr", "s_address", "s_phone", "s_comment"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1140, 1154], [1200, 1209]], "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "scan_n_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "scan_partkey"}, "descending": false, "nullFirst": false}], + "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}], "limit": 100, "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[351, 357]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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 }, { "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 1.20901, "method": "hash", - "computeLeftBounds": [0, 1, 2], + "compute-left-bounds": [0, 1, 2], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[285, 289]], "cardinality": 6, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 2, "name": "p_mfgr", "type": ["Char", 25], "iu": ["scan_p_mfgr", ["Char", 25]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]},{"colId": 5, "name": "p_size", "type": ["Integer"], "iu": ["scan_p_size", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.011257 }, { "operator": "groupby", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[670, 688]], "cardinality": 107.4, "inputs": [{ "operator": "join", - "operatorId": 11, + "operator-id": 11, "cardinality": 107.4, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 103.6, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 5, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[834, 840]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[802, 808]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 13, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [15], + "early-probed-by": [15], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke3"}, "right": {"expression": "iuref", "iu": "scan_regionke2"}} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[768, 776]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 12, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [16], + "early-probed-by": [16], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke2"}, "right": {"expression": "iuref", "iu": "scan_nationke"}} }, { "operator": "tablescan", - "operatorId": 17, + "operator-id": 17, "sqlpos": [[734, 742]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 11, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}, {"builder": 8, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.011257], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey"}, "right": {"expression": "iuref", "iu": "scan_suppkey2"}} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_partkey2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_supplyco"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "min"}, "iu": ["min", ["Numeric", 12, 2, "nullable"]]}] }], - "earlyProbedBy": [17], + "early-probed-by": [17], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_partkey"}, "right": {"expression": "iuref", "iu": "GroupByKey"}} }, { "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[317, 325]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 7, "attributes": [3, 0, 0], "numEqualityPredicates": 3, "selectivities": [0.011194, 0.011257, 0.011257], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [18], + "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"}}]} }, { "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[299, 307]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]},{"colId": 4, "name": "s_phone", "type": ["Char", 15], "iu": ["scan_s_phone", ["Char", 15]]},{"colId": 5, "name": "s_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]},{"colId": 6, "name": "s_comment", "type": ["Varchar", 101], "iu": ["scan_comment", ["Varchar", 101]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00233399], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [19], + "early-probed-by": [19], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_suppkey4"}, "right": {"expression": "iuref", "iu": "scan_suppkey3"}} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[335, 341]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0483602], "type": "hashprobe", "passOnNulls": false}, {"builder": 3, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1 }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_nationke3"}, "right": {"expression": "iuref", "iu": "scan_nationke4"}} }], - "earlyProbedBy": [20], + "early-probed-by": [20], "condition": {"expression": "comparison", "mode": "=", "left": {"expression": "iuref", "iu": "scan_regionke4"}, "right": {"expression": "iuref", "iu": "scan_regionke"}} }] }] 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 c7bad88..096ce61 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q20-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q20-analyze.plan.json @@ -1,148 +1,148 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["scan_s_name", ["Char", 25]]}, {"expression": "iuref", "iu": ["scan_address", ["Varchar", 40]]}], - "outputNames": ["s_name", "s_address"], + "output-names": ["s_name", "s_address"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1385, 1391]], "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "scan_s_name"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "join", - "operatorId": 3, + "operator-id": 3, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[207, 213]], "cardinality": 1, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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} }, { "operator": "rightsemijoin", - "operatorId": 5, + "operator-id": 5, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], - "filterJoinIU": ["scan_suppkey", ["Integer"]], + "compute-left-bounds": [0], + "filter-join-iu": ["scan_suppkey", ["Integer"]], "inputs": [{ "operator": "leftsemijoin", - "operatorId": 6, + "operator-id": 6, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0, 1], + "compute-left-bounds": [0, 1], "inputs": [{ "operator": "rightsemijoin", - "operatorId": 7, + "operator-id": 7, "cardinality": 4.01869, "method": "hash", - "computeLeftBounds": [0], - "filterJoinIU": ["scan_partkey", ["Integer"]], + "compute-left-bounds": [0], + "filter-join-iu": ["scan_partkey", ["Integer"]], "inputs": [{ "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[583, 587]], "cardinality": 4, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "p_name", "type": ["Varchar", 55], "iu": ["scan_p_name", ["Varchar", 55]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.00750469, "analyze": {"pipeline": 5, "column-count": 1, "cpu-cycles": 608, "processed-rows": 533, "running": false, "tuple-count": 4} }, { "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[346, 354]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 2, "name": "ps_availqty", "type": ["Integer"], "iu": ["scan_availqty", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 7, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00750469], "type": "exactprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 3, "cpu-cycles": 277, "processed-rows": 537, "running": false, "tuple-count": 4} }], - "earlyProbedBy": [9], + "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} }, { "operator": "map", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[837, 858]], "cardinality": 150, "inputs": [{ "operator": "groupby", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[843, 858]], "cardinality": 150, "inputs": [{ "operator": "tablescan", - "operatorId": 12, + "operator-id": 12, "sqlpos": [[936, 944]], "cardinality": 150, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"colId": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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}}], - "earlyProbes": [{"builder": 6, "attributes": [1, 2, 4294967295], "numEqualityPredicates": 2, "selectivities": [0.00753976, 0.00775809, null], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 6, "attributes": [1, 2, 4294967295], "num-equality-predicates": 2, "selectivities": [0.00753976, 0.00775809, null], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.262238, "analyze": {"pipeline": 6, "column-count": 3, "cpu-cycles": 177, "processed-rows": 572, "running": false, "tuple-count": 2} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_suppkey3"}}, "iu": ["GroupByKey", ["Integer"]]}, {"expression": {"value": {"expression": "iuref", "iu": "scan_partkey3"}}, "iu": ["GroupByKey2", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0, 1], "coreIndices": [0, 1], "behavior": "regular"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_quantity"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_suppkey3"}}, "iu": ["GroupByKey", ["Integer"]]}, {"expression": {"value": {"expression": "iuref", "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"}}], "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} }], "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} }], - "earlyProbedBy": [12], + "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} }, { "operator": "tablescan", - "operatorId": 13, + "operator-id": 13, "sqlpos": [[189, 197]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 2, "name": "s_address", "type": ["Varchar", 40], "iu": ["scan_address", ["Varchar", 40]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0019305], "type": "exactprobe", "passOnNulls": false}, {"builder": 3, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 1, "column-count": 4, "cpu-cycles": 266, "processed-rows": 518, "running": false, "tuple-count": 1} }], - "earlyProbedBy": [13], + "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} }], - "earlyProbedBy": [13], + "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} }], 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 64ec05f..601ef7b 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q21-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q21-analyze.plan.json @@ -1,163 +1,163 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}], - "outputNames": ["s_name", "numwait"], + "output-names": ["s_name", "numwait"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1140, 1152], [1169, 1179]], "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "count"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "count"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "limit": 100, "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[1099, 1122], [166, 174]], "cardinality": 1, "inputs": [{ "operator": "leftsemijoin", - "operatorId": 4, + "operator-id": 4, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0, 1], + "compute-left-bounds": [0, 1], "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "leftantijoin", - "operatorId": 6, + "operator-id": 6, "cardinality": 1.2167, "method": "hash", - "computeLeftBounds": [0, 1], + "compute-left-bounds": [0, 1], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 11.44, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 20.72, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[254, 260]], "cardinality": 1, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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} }, { "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[199, 207]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 1, "name": "s_name", "type": ["Char", 25], "iu": ["scan_s_name", ["Char", 25]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 8, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 6, "column-count": 3, "cpu-cycles": 288, "processed-rows": 518, "running": false, "tuple-count": 35} }], - "earlyProbedBy": [10], + "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} }, { "operator": "tablescan", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[217, 225]], "cardinality": 286, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 11, "name": "l_commitdate", "type": ["Date"], "iu": ["scan_commitda", ["Date"]]},{"colId": 12, "name": "l_receiptdate", "type": ["Date"], "iu": ["scan_receiptd", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "l1"}, + "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"}}], - "earlyProbes": [{"builder": 7, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 7, "attributes": [2], "num-equality-predicates": 1, "selectivities": [0.04], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.5, "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 362, "processed-rows": 572, "running": false, "tuple-count": 87} }], - "earlyProbedBy": [11], + "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} }, { "operator": "tablescan", - "operatorId": 12, + "operator-id": 12, "sqlpos": [[807, 815]], "cardinality": 286, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 11, "name": "l_commitdate", "type": ["Date"], "iu": ["scan_commitda2", ["Date"]]},{"colId": 12, "name": "l_receiptdate", "type": ["Date"], "iu": ["scan_receiptd2", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "l3"}, + "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"}}], - "earlyProbes": [{"builder": 6, "attributes": [0, 2], "numEqualityPredicates": 1, "selectivities": [0.089375, null], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 6, "attributes": [0, 2], "num-equality-predicates": 1, "selectivities": [0.089375, null], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.5, "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 291, "processed-rows": 572, "running": false, "tuple-count": 115} }], - "earlyProbedBy": [12], + "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} }, { "operator": "tablescan", - "operatorId": 13, + "operator-id": 13, "sqlpos": [[238, 244]], "cardinality": 73, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey3", ["Integer"]]},{"colId": 2, "name": "o_orderstatus", "type": ["Char1"], "iu": ["scan_ordersta", ["Char1"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, + "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}}}], - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00950546], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 5, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.00950546], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.570312, "analyze": {"pipeline": 3, "column-count": 1, "cpu-cycles": 154, "processed-rows": 128, "running": false, "tuple-count": 6} }], - "earlyProbedBy": [13], + "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} }, { "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[533, 541]], "cardinality": 572, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey4", ["Integer"]]},{"colId": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "l2"}, - "earlyProbes": [{"builder": 4, "attributes": [0, 2], "numEqualityPredicates": 1, "selectivities": [0.0078125, null], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 272, "processed-rows": 572, "running": false, "tuple-count": 20} }], - "earlyProbedBy": [14], + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_s_name"}}, "iu": ["GroupByKey", ["Char", 25]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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} }], 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 65ae35b..c770894 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q22-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q22-analyze.plan.json @@ -1,110 +1,110 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 6.26608, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Varchar"]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 2]]}], - "outputNames": ["cntrycode", "numcust", "totacctbal"], + "output-names": ["cntrycode", "numcust", "totacctbal"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1490, 1499]], "cardinality": 6.26608, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[1446, 1472], [169, 177], [198, 212]], "cardinality": 6.26608, "inputs": [{ "operator": "map", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[289, 333]], "cardinality": 6.96232, "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 6.96232, "method": "hash", - "singleMatch": true, - "computeLeftBounds": [0], + "single-match": true, + "compute-left-bounds": [0], "inputs": [{ "operator": "groupby", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[700, 714]], "cardinality": 1, "inputs": [{ "operator": "tablescan", - "operatorId": 7, + "operator-id": 7, "sqlpos": [[792, 800]], "cardinality": 37, "volatility": "stable", - "relationId": 5, + "relation-id": 5, "schema": {"type":"sessionschema"}, - "attributeCount": 8, - "attributes": [{"colId": 4, "name": "c_phone", "type": ["Char", 15], "iu": ["scan_c_phone", ["Char", 15]]},{"colId": 5, "name": "c_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "customer"}, + "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"]}}], "selectivity": 0.286822, "analyze": {"pipeline": 4, "column-count": 1, "cpu-cycles": 745, "processed-rows": 129, "running": false, "tuple-count": 37} }], - "groupingSets": [{"keyIndices": [], "coreIndices": null, "behavior": "static"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_acctbal"}}], + "grouping-sets": [{"key-indices": [], "core-indices": null, "behavior": "static"}], + "empty-groups": true, + "agg-expressions": [{"value": {"expression": "iuref", "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} }, { "operator": "leftantijoin", - "operatorId": 8, + "operator-id": 8, "cardinality": 13.9246, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[414, 422]], "cardinality": 38, "volatility": "stable", - "relationId": 5, + "relation-id": 5, "schema": {"type":"sessionschema"}, - "attributeCount": 8, - "attributes": [{"colId": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"colId": 4, "name": "c_phone", "type": ["Char", 15], "iu": ["scan_c_phone2", ["Char", 15]]},{"colId": 5, "name": "c_acctbal", "type": ["Numeric", 12, 2], "iu": ["scan_acctbal2", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "customer"}, + "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"]}}], - "earlyProbes": [{"builder": 5, "attributes": [5], "numEqualityPredicates": 0, "selectivities": [null], "type": "pruningonly", "passOnNulls": false}], + "early-probes": [{"builder": 5, "attributes": [5], "num-equality-predicates": 0, "selectivities": [null], "type": "pruningonly", "pass-on-nulls": false}], "selectivity": 0.294574, "analyze": {"pipeline": 5, "column-count": 3, "cpu-cycles": 411, "processed-rows": 129, "running": false, "tuple-count": 38} }, { "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[1291, 1297]], "cardinality": 128, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "mightScanDomain": true, - "attributeCount": 9, - "attributes": [{"colId": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, - "earlyProbes": [{"builder": 8, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.294574], "type": "hashprobe", "passOnNulls": false}], + "might-scan-domain": true, + "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}], "selectivity": 1, "analyze": {"pipeline": 2, "column-count": 1, "cpu-cycles": 154, "processed-rows": 128, "running": false, "tuple-count": 47} }], - "earlyProbedBy": [10], + "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} }], - "earlyProbedBy": [9], + "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} }], "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "map"}}, "iu": ["GroupByKey", ["Varchar"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_acctbal2"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "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} }], 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 6ca319a..ca9b02d 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q3-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q3-analyze.plan.json @@ -1,91 +1,91 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 10, - "producesRows": true, + "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"]]}], - "outputNames": ["l_orderkey", "revenue", "o_orderdate", "o_shippriority"], + "output-names": ["l_orderkey", "revenue", "o_orderdate", "o_shippriority"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[608, 620], [642, 651]], "cardinality": 10, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "nullFirst": true}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "null-first": false}], "limit": 10, "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[518, 590], [169, 208]], "cardinality": 57.5016, "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "cardinality": 63.8906, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 29, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[278, 286]], "cardinality": 29, "volatility": "stable", - "relationId": 5, + "relation-id": 5, "schema": {"type":"sessionschema"}, - "attributeCount": 8, - "attributes": [{"colId": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"colId": 6, "name": "c_mktsegment", "type": ["Char", 10], "iu": ["scan_mktsegme", ["Char", 10]]}], - "debugName": {"classification": "nonsensitive", "value": "customer"}, + "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} }, { "operator": "tablescan", - "operatorId": 7, + "operator-id": 7, "sqlpos": [[296, 302]], "cardinality": 75, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"colId": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]},{"colId": 7, "name": "o_shippriority", "type": ["Integer"], "iu": ["scan_shipprio", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, + "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}}}], - "earlyProbes": [{"builder": 5, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.224806], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 5, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.224806], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.585938, "analyze": {"pipeline": 3, "column-count": 4, "cpu-cycles": 246, "processed-rows": 128, "running": false, "tuple-count": 19} }], - "earlyProbedBy": [7], + "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} }, { "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[312, 320]], "cardinality": 282, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"colId": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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}}}], - "earlyProbes": [{"builder": 4, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.226563], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.226563], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.493007, "analyze": {"pipeline": 2, "column-count": 3, "cpu-cycles": 283, "processed-rows": 572, "running": false, "tuple-count": 36} }], - "earlyProbedBy": [8], + "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} }], - "keyExpressions": [{"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"]]}], - "groupingSets": [{"keyIndices": [0, 1, 2], "coreIndices": [0, 1, 2], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"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"}}}], + "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"]]}], + "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"}}}], "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} }], 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 5b28db6..509d169 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q4-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q4-analyze.plan.json @@ -1,64 +1,64 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 4.46938, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 15]]}, {"expression": "iuref", "iu": ["count", ["BigInt"]]}], - "outputNames": ["o_orderpriority", "order_count"], + "output-names": ["o_orderpriority", "order_count"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[620, 635]], "cardinality": 4.46938, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[570, 602], [174, 182]], "cardinality": 4.46938, "inputs": [{ "operator": "leftsemijoin", - "operatorId": 4, + "operator-id": 4, "cardinality": 4.46938, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[211, 217]], "cardinality": 5, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]},{"colId": 5, "name": "o_orderpriority", "type": ["Char", 15], "iu": ["scan_orderpri", ["Char", 15]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, + "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} }, { "operator": "tablescan", - "operatorId": 6, + "operator-id": 6, "sqlpos": [[424, 432]], "cardinality": 286, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 11, "name": "l_commitdate", "type": ["Date"], "iu": ["scan_commitda", ["Date"]]},{"colId": 12, "name": "l_receiptdate", "type": ["Date"], "iu": ["scan_receiptd", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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"}}], - "earlyProbes": [{"builder": 4, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0390625], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 4, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0390625], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.5, "analyze": {"pipeline": 2, "column-count": 1, "cpu-cycles": 331, "processed-rows": 572, "running": false, "tuple-count": 21} }], - "earlyProbedBy": [6], + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_orderpri"}}, "iu": ["GroupByKey", ["Char", 15]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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} }], 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 0241529..ad402c5 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q5-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q5-analyze.plan.json @@ -1,161 +1,161 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 5, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4]]}], - "outputNames": ["n_name", "revenue"], + "output-names": ["n_name", "revenue"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[700, 712]], "cardinality": 5, - "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "nullFirst": true}], + "criterion": [{"value": {"expression": "iuref", "iu": "sum"}, "descending": true, "null-first": true}], "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[659, 682], [165, 204]], "cardinality": 5, "inputs": [{ "operator": "join", - "operatorId": 4, + "operator-id": 4, "cardinality": 34.8563, "method": "hash", - "computeLeftBounds": [0, 1], + "compute-left-bounds": [0, 1], "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 34.8563, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 7.8, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 25.8, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 5, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[315, 321]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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} }, { "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[299, 305]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, - "earlyProbes": [{"builder": 8, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 6, "column-count": 3, "cpu-cycles": 163, "processed-rows": 25, "running": false, "tuple-count": 5} }], - "earlyProbedBy": [10], + "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} }, { "operator": "tablescan", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[229, 237]], "cardinality": 129, "volatility": "stable", - "relationId": 5, + "relation-id": 5, "schema": {"type":"sessionschema"}, - "attributeCount": 8, - "attributes": [{"colId": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"colId": 3, "name": "c_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "customer"}, - "earlyProbes": [{"builder": 7, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 189, "processed-rows": 129, "running": false, "tuple-count": 21} }], - "earlyProbedBy": [11], + "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} }, { "operator": "tablescan", - "operatorId": 12, + "operator-id": 12, "sqlpos": [[247, 253]], "cardinality": 39, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"colId": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, + "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}}}], - "earlyProbes": [{"builder": 6, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 6, "attributes": [1], "num-equality-predicates": 1, "selectivities": [0.2], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.304688, "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 146, "processed-rows": 128, "running": false, "tuple-count": 11} }], - "earlyProbedBy": [12], + "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} }, { "operator": "tablescan", - "operatorId": 13, + "operator-id": 13, "sqlpos": [[263, 271]], "cardinality": 572, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0609375], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 3, "column-count": 4, "cpu-cycles": 331, "processed-rows": 572, "running": false, "tuple-count": 44} }], - "earlyProbedBy": [13], + "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} }, { "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[281, 289]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 4, "attributes": [0, 3], "numEqualityPredicates": 2, "selectivities": [0.0672901, 1], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 187, "processed-rows": 518, "running": false, "tuple-count": 518} }], - "earlyProbedBy": [14], + "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_n_name"}}, "iu": ["GroupByKey", ["Char", 25]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"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"}}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}}], "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} }], 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 48b70ec..e997b80 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q6-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q6-analyze.plan.json @@ -1,33 +1,33 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4, "nullable"]]}], - "outputNames": ["revenue"], + "output-names": ["revenue"], "inputs": [{ "operator": "groupby", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[149, 182]], "cardinality": 1, "inputs": [{ "operator": "tablescan", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[207, 215]], "cardinality": 20, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"colId": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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} }], - "groupingSets": [{"keyIndices": [], "coreIndices": null, "behavior": "static"}], - "emptyGroups": true, - "aggExpressions": [{"value": {"expression": "mul", "left": {"expression": "iuref", "iu": "scan_extended"}, "right": {"expression": "iuref", "iu": "scan_discount"}}}], + "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"}}}], "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} }], 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 adb39be..c9f2d26 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q7-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q7-analyze.plan.json @@ -1,79 +1,79 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 162.047, - "producesRows": true, + "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]]}], - "outputNames": ["supp_nation", "cust_nation", "l_year", "revenue"], + "output-names": ["supp_nation", "cust_nation", "l_year", "revenue"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1423, 1434]], "cardinality": 162.047, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "GroupByKey3"}, "descending": false, "nullFirst": false}], + "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}], "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[1340, 1405], [207, 218]], "cardinality": 162.047, "inputs": [{ "operator": "map", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[292, 316]], "cardinality": 180.053, "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 180.053, "method": "hash", - "computeLeftBounds": [0, 1], + "compute-left-bounds": [0, 1], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 180.053, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 95.6297, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 96.3768, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 9, + "operator-id": 9, "cardinality": 18.6777, "method": "bnl", "inputs": [{ "operator": "tablescan", - "operatorId": 10, + "operator-id": 10, "sqlpos": [[716, 722]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "n2"}, + "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} }, { "operator": "tablescan", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[681, 687]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name2", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "n1"}, + "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} }], @@ -81,85 +81,85 @@ "analyze": {"pipeline": 6, "column-count": 4, "memory-bytes": 18552, "tuple-count": 2} }, { "operator": "tablescan", - "operatorId": 12, + "operator-id": 12, "sqlpos": [[647, 655]], "cardinality": 129, "volatility": "stable", - "relationId": 5, + "relation-id": 5, "schema": {"type":"sessionschema"}, - "attributeCount": 8, - "attributes": [{"colId": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"colId": 3, "name": "c_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "customer"}, - "earlyProbes": [{"builder": 8, "attributes": [3], "numEqualityPredicates": 1, "selectivities": [0.747107], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 5, "column-count": 2, "cpu-cycles": 226, "processed-rows": 129, "running": false, "tuple-count": 12} }], - "earlyProbedBy": [12], + "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} }, { "operator": "tablescan", - "operatorId": 13, + "operator-id": 13, "sqlpos": [[615, 621]], "cardinality": 128, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, - "earlyProbes": [{"builder": 7, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.747107], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 152, "processed-rows": 128, "running": false, "tuple-count": 15} }], - "earlyProbedBy": [13], + "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} }, { "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[581, 589]], "cardinality": 241, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]},{"colId": 10, "name": "l_shipdate", "type": ["Date"], "iu": ["scan_shipdate", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, + "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}}}], - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.747107], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 6, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.747107], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.421329, "analyze": {"pipeline": 3, "column-count": 5, "cpu-cycles": 372, "processed-rows": 572, "running": false, "tuple-count": 30} }], - "earlyProbedBy": [14], + "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} }, { "operator": "tablescan", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[547, 555]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 5, "attributes": [0, 3], "numEqualityPredicates": 2, "selectivities": [0.347592, 1], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 243, "processed-rows": 518, "running": false, "tuple-count": 518} }], - "earlyProbedBy": [15], + "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} }], "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} }], - "keyExpressions": [{"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"]]}], - "groupingSets": [{"keyIndices": [0, 1, 2], "coreIndices": [0, 1, 2], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "map2"}}], + "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"]]}], + "grouping-sets": [{"key-indices": [0, 1, 2], "core-indices": [0, 1, 2], "behavior": "regular"}], + "empty-groups": false, + "agg-expressions": [{"value": {"expression": "iuref", "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} }], 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 bc4dbe4..b6c0854 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q8-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q8-analyze.plan.json @@ -1,222 +1,222 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 1, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Integer"]]}, {"expression": "iuref", "iu": ["map", ["BigNumeric", 38, 6]]}], - "outputNames": ["o_year", "mkt_share"], + "output-names": ["o_year", "mkt_share"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1446, 1452]], "cardinality": 1, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "nullFirst": false}], + "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}], "inputs": [{ "operator": "map", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[149, 155]], "cardinality": 1, "inputs": [{ "operator": "groupby", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[1405, 1428], [165, 260], [263, 274]], "cardinality": 1, "inputs": [{ "operator": "map", - "operatorId": 5, + "operator-id": 5, "sqlpos": [[350, 390]], "cardinality": 1, "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 8, + "operator-id": 8, "cardinality": 1, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 9, + "operator-id": 9, "sqlpos": [[785, 791]], "cardinality": 1, "volatility": "stable", - "relationId": 9, + "relation-id": 9, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "r_regionkey", "type": ["Integer"], "iu": ["scan_regionke", ["Integer"]]},{"colId": 1, "name": "r_name", "type": ["Char", 25], "iu": ["scan_r_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "region"}, + "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} }, { "operator": "join", - "operatorId": 10, + "operator-id": 10, "cardinality": 1.18216, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 11, + "operator-id": 11, "cardinality": 1.18216, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 12, + "operator-id": 12, "cardinality": 1.18216, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 13, + "operator-id": 13, "cardinality": 3.21951, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[551, 555]], "cardinality": 3, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 4, "name": "p_type", "type": ["Varchar", 25], "iu": ["scan_p_type", ["Varchar", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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} }, { "operator": "tablescan", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[615, 623]], "cardinality": 572, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, - "earlyProbes": [{"builder": 13, "attributes": [1], "numEqualityPredicates": 1, "selectivities": [0.00562852], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 8, "column-count": 5, "cpu-cycles": 291, "processed-rows": 572, "running": false, "tuple-count": 10} }], - "earlyProbedBy": [15], + "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} }, { "operator": "tablescan", - "operatorId": 16, + "operator-id": 16, "sqlpos": [[649, 655]], "cardinality": 47, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 1, "name": "o_custkey", "type": ["Integer"], "iu": ["scan_custkey", ["Integer"]]},{"colId": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, + "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}}}], - "earlyProbes": [{"builder": 12, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0251524], "type": "hashprobe", "passOnNulls": false}], + "early-probes": [{"builder": 12, "attributes": [0], "num-equality-predicates": 1, "selectivities": [0.0251524], "type": "hashprobe", "pass-on-nulls": false}], "selectivity": 0.367188, "analyze": {"pipeline": 7, "column-count": 3, "cpu-cycles": 142, "processed-rows": 128, "running": false, "tuple-count": 2} }], - "earlyProbedBy": [16], + "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} }, { "operator": "tablescan", - "operatorId": 17, + "operator-id": 17, "sqlpos": [[681, 689]], "cardinality": 129, "volatility": "stable", - "relationId": 5, + "relation-id": 5, "schema": {"type":"sessionschema"}, - "attributeCount": 8, - "attributes": [{"colId": 0, "name": "c_custkey", "type": ["Integer"], "iu": ["scan_custkey2", ["Integer"]]},{"colId": 3, "name": "c_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "customer"}, - "earlyProbes": [{"builder": 11, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.00916407], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 6, "column-count": 2, "cpu-cycles": 122, "processed-rows": 129, "running": false, "tuple-count": 4} }], - "earlyProbedBy": [17], + "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} }, { "operator": "tablescan", - "operatorId": 18, + "operator-id": 18, "sqlpos": [[715, 721]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]},{"colId": 2, "name": "n_regionkey", "type": ["Integer"], "iu": ["scan_regionke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "n1"}, - "earlyProbes": [{"builder": 10, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0472866], "type": "hashprobe", "passOnNulls": false}, {"builder": 8, "attributes": [2], "numEqualityPredicates": 1, "selectivities": [0.2], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 95, "processed-rows": 25, "running": false, "tuple-count": 1} }], - "earlyProbedBy": [18], + "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} }], - "earlyProbedBy": [18], + "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} }, { "operator": "tablescan", - "operatorId": 19, + "operator-id": 19, "sqlpos": [[581, 589]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke3", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 7, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0019305], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 3, "column-count": 2, "cpu-cycles": 170, "processed-rows": 518, "running": false, "tuple-count": 1} }], - "earlyProbedBy": [19], + "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} }, { "operator": "tablescan", - "operatorId": 20, + "operator-id": 20, "sqlpos": [[750, 756]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke4", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "n2"}, - "earlyProbes": [{"builder": 6, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.04], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 121, "processed-rows": 25, "running": false, "tuple-count": 1} }], - "earlyProbedBy": [20], + "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} }], "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "map2"}}, "iu": ["GroupByKey", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0], "coreIndices": [0], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"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"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "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"}}], "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} }], 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 360e5a0..07ae6fa 100644 --- a/standalone-app/examples/hyper/tpch/tpch-q9-analyze.plan.json +++ b/standalone-app/examples/hyper/tpch/tpch-q9-analyze.plan.json @@ -1,116 +1,116 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 27.0439, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["GroupByKey", ["Char", 25]]}, {"expression": "iuref", "iu": ["GroupByKey2", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigNumeric", 38, 4]]}], - "outputNames": ["nation", "o_year", "sum_profit"], + "output-names": ["nation", "o_year", "sum_profit"], "inputs": [{ "operator": "sort", - "operatorId": 2, + "operator-id": 2, "sqlpos": [[1120, 1126]], "cardinality": 27.0439, - "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "nullFirst": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": true, "nullFirst": true}], + "criterion": [{"value": {"expression": "iuref", "iu": "GroupByKey"}, "descending": false, "null-first": false}, {"value": {"expression": "iuref", "iu": "GroupByKey2"}, "descending": true, "null-first": true}], "inputs": [{ "operator": "groupby", - "operatorId": 3, + "operator-id": 3, "sqlpos": [[1063, 1102], [181, 192]], "cardinality": 27.0439, "inputs": [{ "operator": "map", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[269, 285]], "cardinality": 30.0488, "inputs": [{ "operator": "join", - "operatorId": 5, + "operator-id": 5, "cardinality": 30.0488, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 6, + "operator-id": 6, "cardinality": 30.0488, "method": "hash", - "computeLeftBounds": [0, 1, 2, 3], + "compute-left-bounds": [0, 1, 2, 3], "inputs": [{ "operator": "join", - "operatorId": 7, + "operator-id": 7, "cardinality": 28.2101, "method": "hash", "inputs": [{ "operator": "tablescan", - "operatorId": 8, + "operator-id": 8, "sqlpos": [[660, 666]], "cardinality": 25, "volatility": "stable", - "relationId": 8, + "relation-id": 8, "schema": {"type":"sessionschema"}, - "attributeCount": 4, - "attributes": [{"colId": 0, "name": "n_nationkey", "type": ["Integer"], "iu": ["scan_nationke", ["Integer"]]},{"colId": 1, "name": "n_name", "type": ["Char", 25], "iu": ["scan_n_name", ["Char", 25]]}], - "debugName": {"classification": "nonsensitive", "value": "nation"}, + "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} }, { "operator": "join", - "operatorId": 9, + "operator-id": 9, "cardinality": 28.2101, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "join", - "operatorId": 10, + "operator-id": 10, "cardinality": 28.2101, "method": "hash", - "computeLeftBounds": [0], + "compute-left-bounds": [0], "inputs": [{ "operator": "tablescan", - "operatorId": 11, + "operator-id": 11, "sqlpos": [[496, 500]], "cardinality": 28, "volatility": "stable", - "relationId": 2, + "relation-id": 2, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "p_partkey", "type": ["Integer"], "iu": ["scan_partkey", ["Integer"]]},{"colId": 1, "name": "p_name", "type": ["Varchar", 55], "iu": ["scan_p_name", ["Varchar", 55]]}], - "debugName": {"classification": "nonsensitive", "value": "part"}, + "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": "\\"}}]}}], "selectivity": 0.0525328, "analyze": {"pipeline": 7, "column-count": 1, "cpu-cycles": 18549, "processed-rows": 533, "running": false, "tuple-count": 28} }, { "operator": "tablescan", - "operatorId": 12, + "operator-id": 12, "sqlpos": [[594, 602]], "cardinality": 537, "volatility": "stable", - "relationId": 4, + "relation-id": 4, "schema": {"type":"sessionschema"}, - "attributeCount": 5, - "attributes": [{"colId": 0, "name": "ps_partkey", "type": ["Integer"], "iu": ["scan_partkey2", ["Integer"]]},{"colId": 1, "name": "ps_suppkey", "type": ["Integer"], "iu": ["scan_suppkey", ["Integer"]]},{"colId": 3, "name": "ps_supplycost", "type": ["Numeric", 12, 2], "iu": ["scan_supplyco", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "partsupp"}, - "earlyProbes": [{"builder": 10, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0525328], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 6, "column-count": 3, "cpu-cycles": 309, "processed-rows": 537, "running": false, "tuple-count": 89} }], - "earlyProbedBy": [12], + "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} }, { "operator": "tablescan", - "operatorId": 13, + "operator-id": 13, "sqlpos": [[526, 534]], "cardinality": 518, "volatility": "stable", - "relationId": 3, + "relation-id": 3, "schema": {"type":"sessionschema"}, - "attributeCount": 7, - "attributes": [{"colId": 0, "name": "s_suppkey", "type": ["Integer"], "iu": ["scan_suppkey2", ["Integer"]]},{"colId": 3, "name": "s_nationkey", "type": ["Integer"], "iu": ["scan_nationke2", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "supplier"}, - "earlyProbes": [{"builder": 9, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.0544597], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 4, "column-count": 2, "cpu-cycles": 308, "processed-rows": 518, "running": false, "tuple-count": 73} }], - "earlyProbedBy": [13], + "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} }], @@ -118,48 +118,48 @@ "analyze": {"pipeline": 4, "column-count": 6, "memory-bytes": 18552, "tuple-count": 28} }, { "operator": "tablescan", - "operatorId": 14, + "operator-id": 14, "sqlpos": [[560, 568]], "cardinality": 572, "volatility": "stable", - "relationId": 7, + "relation-id": 7, "schema": {"type":"sessionschema"}, - "attributeCount": 16, - "attributes": [{"colId": 0, "name": "l_orderkey", "type": ["Integer"], "iu": ["scan_orderkey", ["Integer"]]},{"colId": 1, "name": "l_partkey", "type": ["Integer"], "iu": ["scan_partkey3", ["Integer"]]},{"colId": 2, "name": "l_suppkey", "type": ["Integer"], "iu": ["scan_suppkey3", ["Integer"]]},{"colId": 4, "name": "l_quantity", "type": ["Numeric", 12, 2], "iu": ["scan_quantity", ["Numeric", 12, 2]]},{"colId": 5, "name": "l_extendedprice", "type": ["Numeric", 12, 2], "iu": ["scan_extended", ["Numeric", 12, 2]]},{"colId": 6, "name": "l_discount", "type": ["Numeric", 12, 2], "iu": ["scan_discount", ["Numeric", 12, 2]]}], - "debugName": {"classification": "nonsensitive", "value": "lineitem"}, - "earlyProbes": [{"builder": 6, "attributes": [1, 1, 2, 2], "numEqualityPredicates": 4, "selectivities": [0.0529271, 0.0529271, 0.0544597, 0.0544597], "type": "pruningonly", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 3, "column-count": 6, "cpu-cycles": 218, "processed-rows": 572, "running": false, "tuple-count": 572} }], - "earlyProbedBy": [14], + "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} }, { "operator": "tablescan", - "operatorId": 15, + "operator-id": 15, "sqlpos": [[628, 634]], "cardinality": 128, "volatility": "stable", - "relationId": 6, + "relation-id": 6, "schema": {"type":"sessionschema"}, - "attributeCount": 9, - "attributes": [{"colId": 0, "name": "o_orderkey", "type": ["Integer"], "iu": ["scan_orderkey2", ["Integer"]]},{"colId": 4, "name": "o_orderdate", "type": ["Date"], "iu": ["scan_orderdat", ["Date"]]}], - "debugName": {"classification": "nonsensitive", "value": "orders"}, - "earlyProbes": [{"builder": 5, "attributes": [0], "numEqualityPredicates": 1, "selectivities": [0.234756], "type": "hashprobe", "passOnNulls": false}], + "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}], "selectivity": 1, "analyze": {"pipeline": 2, "column-count": 2, "cpu-cycles": 317, "processed-rows": 128, "running": false, "tuple-count": 36} }], - "earlyProbedBy": [15], + "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} }], "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} }], - "keyExpressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_n_name"}}, "iu": ["GroupByKey", ["Char", 25]]}, {"expression": {"value": {"expression": "iuref", "iu": "map"}}, "iu": ["GroupByKey2", ["Integer"]]}], - "groupingSets": [{"keyIndices": [0, 1], "coreIndices": [0, 1], "behavior": "regular"}], - "emptyGroups": false, - "aggExpressions": [{"value": {"expression": "iuref", "iu": "map2"}}], + "key-expressions": [{"expression": {"value": {"expression": "iuref", "iu": "scan_n_name"}}, "iu": ["GroupByKey", ["Char", 25]]}, {"expression": {"value": {"expression": "iuref", "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"}}], "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} }], diff --git a/standalone-app/examples/hyper/window.plan.json b/standalone-app/examples/hyper/window.plan.json index 65c3697..5888a79 100644 --- a/standalone-app/examples/hyper/window.plan.json +++ b/standalone-app/examples/hyper/window.plan.json @@ -1,33 +1,33 @@ { "operator": "executiontarget", - "operatorId": 1, + "operator-id": 1, "cardinality": 2000, - "producesRows": true, + "produces-rows": true, "output": [{"expression": "iuref", "iu": ["scan_a1", ["Integer"]]}, {"expression": "iuref", "iu": ["sum", ["BigInt", "nullable"]]}, {"expression": "iuref", "iu": ["avg", ["Numeric", 16, 6, "nullable"]]}], - "outputNames": ["a1", "sum", "avg"], + "output-names": ["a1", "sum", "avg"], "inputs": [{ "operator": "window", - "operatorId": 2, + "operator-id": 2, "cardinality": 2000, "inputs": [{ "operator": "window", - "operatorId": 3, + "operator-id": 3, "cardinality": 2000, "inputs": [{ "operator": "tablescan", - "operatorId": 4, + "operator-id": 4, "sqlpos": [[142, 144]], "cardinality": 2000, "volatility": "stable", - "relationId": 0, + "relation-id": 0, "schema": {"type":"sessionschema"}, - "attributeCount": 3, - "attributes": [{"colId": 0, "name": "a1", "type": ["Integer"], "iu": ["scan_a1", ["Integer"]]},{"colId": 1, "name": "b1", "type": ["Integer"], "iu": ["scan_b1", ["Integer"]]},{"colId": 2, "name": "c1", "type": ["Integer"], "iu": ["scan_c1", ["Integer"]]}], - "debugName": {"classification": "nonsensitive", "value": "t1"}, + "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 }], - "windowInfos": [{"operation": "aggregate", "aggregation": {"emptyGroups": true, "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_b1"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigInt", "nullable"]]}]}, "partitionBy": [], "frameOrderBy": [{"value": {"expression": "iuref", "iu": "scan_a1"}, "descending": false, "nullFirst": false}], "rowsmode": false, "startMode": "unbounded", "endMode": "currentrow", "exclude": "noothers"}] + "window-infos": [{"operation": "aggregate", "aggregation": {"empty-groups": true, "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_b1"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "sum"}, "iu": ["sum", ["BigInt", "nullable"]]}]}, "partition-by": [], "frame-order-by": [{"value": {"expression": "iuref", "iu": "scan_a1"}, "descending": false, "null-first": false}], "rowsmode": false, "start-mode": "unbounded", "end-mode": "currentrow", "exclude": "noothers"}] }], - "windowInfos": [{"operation": "aggregate", "aggregation": {"emptyGroups": true, "aggExpressions": [{"value": {"expression": "iuref", "iu": "scan_c1"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6, "nullable"]]}]}, "partitionBy": [], "frameOrderBy": [{"value": {"expression": "iuref", "iu": "scan_b1"}, "descending": false, "nullFirst": false}], "rowsmode": true, "startMode": "value", "startExp": {"expression": "const", "value": {"type": ["Integer"], "value": -1}}, "endMode": "value", "endExp": {"expression": "const", "value": {"type": ["Integer"], "value": 3}}, "exclude": "noothers"}] + "window-infos": [{"operation": "aggregate", "aggregation": {"empty-groups": true, "agg-expressions": [{"value": {"expression": "iuref", "iu": "scan_c1"}}], "aggregates": [{"source": 0, "operation": {"aggregate": "avg"}, "iu": ["avg", ["Numeric", 16, 6, "nullable"]]}]}, "partition-by": [], "frame-order-by": [{"value": {"expression": "iuref", "iu": "scan_b1"}, "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"}] }] }