{
  "mode": "verify",
  "format": "parquet",
  "resultOrderValidation": "Exact rows and multiplicities, preserving ORDER BY key order; row order within equal-key groups is immaterial",
  "profile": false,
  "scale": 0.01,
  "javaVersion": "17.0.17",
  "javaVm": "OpenJDK 64-Bit Server VM",
  "os": "Mac OS X aarch64",
  "maxHeapBytes": 8589934592,
  "generator": "io.airlift.tpch:tpch:0.10",
  "schema": "TPC-H identifiers BIGINT, integer INT, numeric DECIMAL(15,2), date DATE, text STRING",
  "parallelism": 2,
  "nativeBytes": 536870912,
  "nativeBatchRows": 8192,
  "fileSource": true,
  "warmups": 0,
  "trials": 1,
  "tables": {
    "customer": {
      "rows": 1500,
      "sha256": "22156f2770387f5adadbc72774f2282d353aedd5092bd8fc54871b3bf5e74cba",
      "bytes": 239490
    },
    "orders": {
      "rows": 15000,
      "sha256": "a444603dfba6c47e902e24b517608a5eb3b117127e99dff16a40f4eaa47b812c",
      "bytes": 1644137
    },
    "lineitem": {
      "rows": 60175,
      "sha256": "517b566190fbeadc638602554d109a463631e19788936ccb97196ebd407b51f1",
      "bytes": 7204075
    },
    "part": {
      "rows": 2000,
      "sha256": "604232ee10e95dca875c196f759c07babf34293dfac8c99b9f1f0c2708f0561b",
      "bytes": 235134
    },
    "partsupp": {
      "rows": 8000,
      "sha256": "906f58419af6ad5d62489a7e2105257654bb6d8458a7fd8fe19b76655aac50c7",
      "bytes": 1153705
    },
    "supplier": {
      "rows": 100,
      "sha256": "b199bef3350840676cfe4be096091851bc47b6a57cd8a71b3f559d42b7d9dacd",
      "bytes": 13695
    },
    "nation": {
      "rows": 25,
      "sha256": "7d47bc9397da331054fa92b8fb92e4c074004bad72dcbb893012093218dccf6c",
      "bytes": 2199
    },
    "region": {
      "rows": 5,
      "sha256": "5a7c2fe9718db00ff5e5bc82a9ebfa8abc492cc75260d3c0ffb411974f235ab0",
      "bytes": 384
    }
  },
  "queries": [
    {
      "query": 1,
      "sqlSha256": "864a088f29bb394a6397b71c28a5bdb1dbd74e667f690917feff0d9e293df4e6",
      "sql": "-- database: presto; groups: tpch; tables: lineitem\nSELECT\n  l_returnflag,\n  l_linestatus,\n  sum(l_quantity)                                       AS sum_qty,\n  sum(l_extendedprice)                                  AS sum_base_price,\n  sum(l_extendedprice * (1 - l_discount))               AS sum_disc_price,\n  sum(l_extendedprice * (1 - l_discount) * (1 + l_tax)) AS sum_charge,\n  avg(l_quantity)                                       AS avg_qty,\n  avg(l_extendedprice)                                  AS avg_price,\n  avg(l_discount)                                       AS avg_disc,\n  count(*)                                              AS count_order\nFROM\n  lineitem\nWHERE\n  l_shipdate <= DATE '1998-12-01' - INTERVAL '90' DAY\nGROUP BY\nl_returnflag,\nl_linestatus\nORDER BY\nl_returnflag,\nl_linestatus\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$1], dir0=[ASC-nulls-first], dir1=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0, 1}], sum_qty=[SUM($2)], sum_base_price=[SUM($3)], sum_disc_price=[SUM($4)], sum_charge=[SUM($5)], avg_qty=[AVG($2)], avg_price=[AVG($3)], avg_disc=[AVG($6)], count_order=[COUNT()])\n   +- LogicalProject(l_returnflag=[$8], l_linestatus=[$9], l_quantity=[$4], l_extendedprice=[$5], $f4=[*($5, -(1, $6))], $f5=[*(*($5, -(1, $6)), +(1, $7))], l_discount=[$6])\n      +- LogicalFilter(condition=[<=($10, -(1998-12-01, 7776000000:INTERVAL DAY))])\n         +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[l_returnflag ASC, l_linestatus ASC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Final_SUM(sum$0) AS sum_qty, Final_SUM(sum$1) AS sum_base_price, Final_SUM(sum$2) AS sum_disc_price, Final_SUM(sum$3) AS sum_charge, Final_AVG(sum$4, count$5) AS avg_qty, Final_AVG(sum$6, count$7) AS avg_price, Final_AVG(sum$8, count$9) AS avg_disc, Final_COUNT(count1$10) AS count_order])\n      +- Exchange(distribution=[hash[l_returnflag, l_linestatus]])\n         +- LocalHashAggregate(groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Partial_SUM(l_quantity) AS sum$0, Partial_SUM(l_extendedprice) AS sum$1, Partial_SUM($f4) AS sum$2, Partial_SUM($f5) AS sum$3, Partial_AVG(l_quantity) AS (sum$4, count$5), Partial_AVG(l_extendedprice) AS (sum$6, count$7), Partial_AVG(l_discount) AS (sum$8, count$9), Partial_COUNT(*) AS count1$10])\n            +- Calc(select=[l_returnflag, l_linestatus, l_quantity, l_extendedprice, *(l_extendedprice, -(1, l_discount)) AS $f4, *(*(l_extendedprice, -(1, l_discount)), +(1, l_tax)) AS $f5, l_discount], where=[<=(l_shipdate, 1998-09-02)])\n               +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<=(l_shipdate, 1998-09-02)], project=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate])\n\n== Optimized Execution Plan ==\nSort(orderBy=[l_returnflag ASC, l_linestatus ASC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Final_SUM(sum$0) AS sum_qty, Final_SUM(sum$1) AS sum_base_price, Final_SUM(sum$2) AS sum_disc_price, Final_SUM(sum$3) AS sum_charge, Final_AVG(sum$4, count$5) AS avg_qty, Final_AVG(sum$6, count$7) AS avg_price, Final_AVG(sum$8, count$9) AS avg_disc, Final_COUNT(count1$10) AS count_order])\n      +- Exchange(distribution=[hash[l_returnflag, l_linestatus]])\n         +- LocalHashAggregate(groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Partial_SUM(l_quantity) AS sum$0, Partial_SUM(l_extendedprice) AS sum$1, Partial_SUM($f4) AS sum$2, Partial_SUM($f5) AS sum$3, Partial_AVG(l_quantity) AS (sum$4, count$5), Partial_AVG(l_extendedprice) AS (sum$6, count$7), Partial_AVG(l_discount) AS (sum$8, count$9), Partial_COUNT(*) AS count1$10])\n            +- Calc(select=[l_returnflag, l_linestatus, l_quantity, l_extendedprice, (l_extendedprice * (1 - l_discount)) AS $f4, ((l_extendedprice * (1 - l_discount)) * (1 + l_tax)) AS $f5, l_discount], where=[(l_shipdate <= 1998-09-02)])\n               +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<=(l_shipdate, 1998-09-02)], project=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$1], dir0=[ASC-nulls-first], dir1=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0, 1}], sum_qty=[SUM($2)], sum_base_price=[SUM($3)], sum_disc_price=[SUM($4)], sum_charge=[SUM($5)], avg_qty=[AVG($2)], avg_price=[AVG($3)], avg_disc=[AVG($6)], count_order=[COUNT()])\n   +- LogicalProject(l_returnflag=[$8], l_linestatus=[$9], l_quantity=[$4], l_extendedprice=[$5], $f4=[*($5, -(1, $6))], $f5=[*(*($5, -(1, $6)), +(1, $7))], l_discount=[$6])\n      +- LogicalFilter(condition=[<=($10, -(1998-12-01, 7776000000:INTERVAL DAY))])\n         +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[l_returnflag ASC, l_linestatus ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Final_SUM(sum$0) AS sum_qty, Final_SUM(sum$1) AS sum_base_price, Final_SUM(sum$2) AS sum_disc_price, Final_SUM(sum$3) AS sum_charge, Final_AVG(sum$4, count$5) AS avg_qty, Final_AVG(sum$6, count$7) AS avg_price, Final_AVG(sum$8, count$9) AS avg_disc, Final_COUNT(count1$10) AS count_order])\n      +- NativeExchange(distribution=[hash[l_returnflag, l_linestatus]])\n         +- NativeAggregate(groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Partial_SUM(l_quantity) AS sum$0, Partial_SUM(l_extendedprice) AS sum$1, Partial_SUM($f4) AS sum$2, Partial_SUM($f5) AS sum$3, Partial_AVG(l_quantity) AS (sum$4, count$5), Partial_AVG(l_extendedprice) AS (sum$6, count$7), Partial_AVG(l_discount) AS (sum$8, count$9), Partial_COUNT(*) AS count1$10])\n            +- NativeCalc(select=[l_returnflag, l_linestatus, l_quantity, l_extendedprice, *(l_extendedprice, -(1, l_discount)) AS $f4, *(*(l_extendedprice, -(1, l_discount)), +(1, l_tax)) AS $f5, l_discount], where=[<=(l_shipdate, 1998-09-02)], nativeFunctions=[], jvmFunctions=[])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<=(l_shipdate, 1998-09-02)], project=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[l_returnflag ASC, l_linestatus ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Final_SUM(sum$0) AS sum_qty, Final_SUM(sum$1) AS sum_base_price, Final_SUM(sum$2) AS sum_disc_price, Final_SUM(sum$3) AS sum_charge, Final_AVG(sum$4, count$5) AS avg_qty, Final_AVG(sum$6, count$7) AS avg_price, Final_AVG(sum$8, count$9) AS avg_disc, Final_COUNT(count1$10) AS count_order])\n      +- NativeExchange(distribution=[hash[l_returnflag, l_linestatus]])\n         +- NativeAggregate(groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Partial_SUM(l_quantity) AS sum$0, Partial_SUM(l_extendedprice) AS sum$1, Partial_SUM($f4) AS sum$2, Partial_SUM($f5) AS sum$3, Partial_AVG(l_quantity) AS (sum$4, count$5), Partial_AVG(l_extendedprice) AS (sum$6, count$7), Partial_AVG(l_discount) AS (sum$8, count$9), Partial_COUNT(*) AS count1$10])\n            +- NativeCalc(select=[l_returnflag, l_linestatus, l_quantity, l_extendedprice, *(l_extendedprice, -(1, l_discount)) AS $f4, *(*(l_extendedprice, -(1, l_discount)), +(1, l_tax)) AS $f5, l_discount], where=[<=(l_shipdate, 1998-09-02)], nativeFunctions=[], jvmFunctions=[])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<=(l_shipdate, 1998-09-02)], project=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$1], dir0=[ASC-nulls-first], dir1=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0, 1}], sum_qty=[SUM($2)], sum_base_price=[SUM($3)], sum_disc_price=[SUM($4)], sum_charge=[SUM($5)], avg_qty=[AVG($2)], avg_price=[AVG($3)], avg_disc=[AVG($6)], count_order=[COUNT()])\n   +- LogicalProject(l_returnflag=[$8], l_linestatus=[$9], l_quantity=[$4], l_extendedprice=[$5], $f4=[*($5, -(1, $6))], $f5=[*(*($5, -(1, $6)), +(1, $7))], l_discount=[$6])\n      +- LogicalFilter(condition=[<=($10, -(1998-12-01, 7776000000:INTERVAL DAY))])\n         +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[l_returnflag ASC, l_linestatus ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Final_SUM(sum$0) AS sum_qty, Final_SUM(sum$1) AS sum_base_price, Final_SUM(sum$2) AS sum_disc_price, Final_SUM(sum$3) AS sum_charge, Final_AVG(sum$4, count$5) AS avg_qty, Final_AVG(sum$6, count$7) AS avg_price, Final_AVG(sum$8, count$9) AS avg_disc, Final_COUNT(count1$10) AS count_order])\n      +- NativeExchange(distribution=[hash[l_returnflag, l_linestatus]])\n         +- NativeAggregate(groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Partial_SUM(l_quantity) AS sum$0, Partial_SUM(l_extendedprice) AS sum$1, Partial_SUM($f4) AS sum$2, Partial_SUM($f5) AS sum$3, Partial_AVG(l_quantity) AS (sum$4, count$5), Partial_AVG(l_extendedprice) AS (sum$6, count$7), Partial_AVG(l_discount) AS (sum$8, count$9), Partial_COUNT(*) AS count1$10])\n            +- NativeCalc(select=[l_returnflag, l_linestatus, l_quantity, l_extendedprice, *(l_extendedprice, -(1, l_discount)) AS $f4, *(*(l_extendedprice, -(1, l_discount)), +(1, l_tax)) AS $f5, l_discount], where=[<=(l_shipdate, 1998-09-02)], nativeFunctions=[], jvmFunctions=[])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<=(l_shipdate, 1998-09-02)], project=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[l_returnflag ASC, l_linestatus ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Final_SUM(sum$0) AS sum_qty, Final_SUM(sum$1) AS sum_base_price, Final_SUM(sum$2) AS sum_disc_price, Final_SUM(sum$3) AS sum_charge, Final_AVG(sum$4, count$5) AS avg_qty, Final_AVG(sum$6, count$7) AS avg_price, Final_AVG(sum$8, count$9) AS avg_disc, Final_COUNT(count1$10) AS count_order])\n      +- NativeExchange(distribution=[hash[l_returnflag, l_linestatus]])\n         +- NativeAggregate(groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_linestatus, Partial_SUM(l_quantity) AS sum$0, Partial_SUM(l_extendedprice) AS sum$1, Partial_SUM($f4) AS sum$2, Partial_SUM($f5) AS sum$3, Partial_AVG(l_quantity) AS (sum$4, count$5), Partial_AVG(l_extendedprice) AS (sum$6, count$7), Partial_AVG(l_discount) AS (sum$8, count$9), Partial_COUNT(*) AS count1$10])\n            +- NativeCalc(select=[l_returnflag, l_linestatus, l_quantity, l_extendedprice, *(l_extendedprice, -(1, l_discount)) AS $f4, *(*(l_extendedprice, -(1, l_discount)), +(1, l_tax)) AS $f5, l_discount], where=[<=(l_shipdate, 1998-09-02)], nativeFunctions=[], jvmFunctions=[])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<=(l_shipdate, 1998-09-02)], project=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_tax, l_returnflag, l_linestatus, l_shipdate])\n\nStreamFusion batch: 6 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "718c559091a1d1df3b077c793e9841ec",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "d115dd42d5f391926568bb2a2bcdf354",
          "sourceArrowRows": 60175,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_li",
              "recordsIn": 0,
              "jobId": "d115dd42d5f391926568bb2a2bcdf354",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[l_returnflag, l_linestatus], select=[l_returnflag, l_li",
              "recordsIn": 59307,
              "jobId": "d115dd42d5f391926568bb2a2bcdf354",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 4
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_returnflag, l_linestatus], select=[l_",
              "recordsIn": 2,
              "jobId": "d115dd42d5f391926568bb2a2bcdf354",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_returnflag, l_linestatus], select=[l_",
              "recordsIn": 2,
              "jobId": "d115dd42d5f391926568bb2a2bcdf354",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeCalc(select=[l_returnflag, l_linestatus, l_quantity, l_extendedprice, *(l_",
              "recordsIn": 0,
              "jobId": "d115dd42d5f391926568bb2a2bcdf354",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_returnflag, l_linestatus, l_quantity, l_extendedprice, *(l_",
              "recordsIn": 60175,
              "jobId": "d115dd42d5f391926568bb2a2bcdf354",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 59307
            },
            {
              "operator": "NativeSort(orderBy=[l_returnflag ASC, l_linestatus ASC])[45]",
              "recordsIn": 4,
              "jobId": "d115dd42d5f391926568bb2a2bcdf354",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 4
            }
          ]
        }
      ],
      "resultType": "ROW<`l_returnflag` STRING, `l_linestatus` STRING, `sum_qty` DECIMAL(38, 2), `sum_base_price` DECIMAL(38, 2), `sum_disc_price` DECIMAL(38, 4), `sum_charge` DECIMAL(38, 6), `avg_qty` DECIMAL(38, 6), `avg_price` DECIMAL(38, 6), `avg_disc` DECIMAL(38, 6), `count_order` BIGINT NOT NULL> NOT NULL",
      "rows": 4,
      "resultSha256": "9ec085e2998adc5572315b4ad435c9fa0c643bbc38c2ab22fce26a8719507df0",
      "stockNanos": [
        1045684083
      ],
      "nativeNanos": [
        260343208
      ],
      "stockRuntimeMs": [
        764
      ],
      "nativeRuntimeMs": [
        153
      ],
      "status": "passed"
    },
    {
      "query": 2,
      "sqlSha256": "f42e396d36f43602ff020b8f4d37f44a3734aaf0cfb5ce468f674f07555cb79d",
      "sql": "-- database: presto; groups: tpch; tables: part,supplier,partsupp,nation,region\nSELECT\n  s_acctbal,\n  s_name,\n  n_name,\n  p_partkey,\n  p_mfgr,\n  s_address,\n  s_phone,\n  s_comment\nFROM\n  part,\n  supplier,\n  partsupp,\n  nation,\n  region\nWHERE\n  p_partkey = ps_partkey\n  AND s_suppkey = ps_suppkey\n  AND p_size = 15\n  AND p_type LIKE '%BRASS'\n  AND s_nationkey = n_nationkey\n  AND n_regionkey = r_regionkey\n  AND r_name = 'EUROPE'\n  AND ps_supplycost = (\n    SELECT min(ps_supplycost)\n    FROM\n      partsupp, supplier,\n      nation, region\n    WHERE\n      p_partkey = ps_partkey\n      AND s_suppkey = ps_suppkey\n      AND s_nationkey = n_nationkey\n      AND n_regionkey = r_regionkey\n      AND r_name = 'EUROPE'\n  )\nORDER BY\n  s_acctbal DESC,\n  n_name,\n  s_name,\n  p_partkey\nLIMIT 100\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$2], sort2=[$1], sort3=[$3], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], dir2=[ASC-nulls-first], dir3=[ASC-nulls-first], fetch=[100])\n+- LogicalProject(s_acctbal=[$14], s_name=[$10], n_name=[$22], p_partkey=[$0], p_mfgr=[$2], s_address=[$11], s_phone=[$13], s_comment=[$15])\n   +- LogicalFilter(condition=[AND(=($0, $16), =($9, $17), =($5, 15), LIKE($4, _UTF-16LE'%BRASS'), =($12, $21), =($23, $25), =($26, _UTF-16LE'EUROPE'), =($19, $SCALAR_QUERY({\nLogicalAggregate(group=[{}], EXPR$0=[MIN($0)])\n  LogicalProject(ps_supplycost=[$3])\n    LogicalFilter(condition=[AND(=($cor0.p_partkey, $0), =($5, $1), =($8, $12), =($14, $16), =($17, _UTF-16LE'EUROPE'))])\n      LogicalJoin(condition=[true], joinType=[inner])\n        LogicalJoin(condition=[true], joinType=[inner])\n          LogicalJoin(condition=[true], joinType=[inner])\n            LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n          LogicalTableScan(table=[[default_catalog, default_database, nation]])\n        LogicalTableScan(table=[[default_catalog, default_database, region]])\n})))], variablesSet=[[$cor0]])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalJoin(condition=[true], joinType=[inner])\n         :  :- LogicalJoin(condition=[true], joinType=[inner])\n         :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n         :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, part]])\n         :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n         :  :  +- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n         :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, region]])\n\n== Optimized Physical Plan ==\nSortLimit(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[true])\n+- Exchange(distribution=[single])\n   +- SortLimit(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[false])\n      +- Calc(select=[s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment])\n         +- NestedLoopJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(ps_supplycost, EXPR$0))], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, ps_partkey, EXPR$0], build=[right])\n            :- Calc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name])\n            :  +- NestedLoopJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey, r_regionkey], build=[right])\n            :     :- Calc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey])\n            :     :  +- HashJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n            :     :     :- Calc(select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost])\n            :     :     :  +- HashJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(s_suppkey, ps_suppkey))], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n            :     :     :     :- Exchange(distribution=[broadcast])\n            :     :     :     :  +- NestedLoopJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], build=[left])\n            :     :     :     :     :- Exchange(distribution=[broadcast])\n            :     :     :     :     :  +- Calc(select=[p_partkey, p_mfgr], where=[AND(=(p_size, 15), LIKE(p_type, '%BRASS'))])\n            :     :     :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_size, 15), LIKE(p_type, _UTF-16LE'%BRASS'))], project=[p_partkey, p_mfgr, p_type, p_size], metadata=[]]], fields=[p_partkey, p_mfgr, p_type, p_size])\n            :     :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])\n            :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n            :     :     +- Exchange(distribution=[broadcast])\n            :     :        +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n            :     +- Exchange(distribution=[broadcast])\n            :        +- Calc(select=[r_regionkey], where=[=(r_name, 'EUROPE')])\n            :           +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'EUROPE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n            +- Exchange(distribution=[broadcast])\n               +- HashAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_MIN(min$0) AS EXPR$0])\n                  +- Exchange(distribution=[hash[ps_partkey]])\n                     +- LocalHashAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_MIN(ps_supplycost) AS min$0])\n                        +- Calc(select=[ps_partkey, ps_supplycost])\n                           +- NestedLoopJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[ps_partkey, ps_supplycost, n_regionkey, r_regionkey], build=[right])\n                              :- Calc(select=[ps_partkey, ps_supplycost, n_regionkey])\n                              :  +- HashJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_supplycost, s_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                              :     :- Calc(select=[ps_partkey, ps_supplycost, s_nationkey])\n                              :     :  +- HashJoin(joinType=[InnerJoin], where=[=(s_suppkey, ps_suppkey)], select=[ps_partkey, ps_suppkey, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                              :     :     :- Calc(select=[ps_partkey, ps_suppkey, ps_supplycost], where=[IS NOT NULL(ps_partkey)])\n                              :     :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, filter=[IS NOT NULL(ps_partkey)], project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                              :     :     +- Exchange(distribution=[broadcast])\n                              :     :        +- Calc(select=[s_suppkey, s_nationkey])\n                              :     :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])\n                              :     +- Exchange(distribution=[broadcast])\n                              :        +- Calc(select=[n_nationkey, n_regionkey])\n                              :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                              +- Exchange(distribution=[broadcast])\n                                 +- Calc(select=[r_regionkey], where=[=(r_name, 'EUROPE')])\n                                    +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'EUROPE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\n== Optimized Execution Plan ==\nSortLimit(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[true])\n+- Exchange(distribution=[single])\n   +- SortLimit(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[false])\n      +- Calc(select=[s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment])\n         +- MultipleInput(readOrder=[0,0,0,0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[((p_partkey = ps_partkey) AND (ps_supplycost = EXPR$0))], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, ps_partkey, EXPR$0], build=[right])\\n:- Calc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name])\\n:  +- NestedLoopJoin(joinType=[InnerJoin], where=[(n_regionkey = r_regionkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey, r_regionkey], build=[right])\\n:     :- Calc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey])\\n:     :  +- HashJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\\n:     :     :- Calc(select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost])\\n:     :     :  +- HashJoin(joinType=[InnerJoin], where=[((p_partkey = ps_partkey) AND (s_suppkey = ps_suppkey))], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\\n:     :     :     :- [#4] Exchange(distribution=[broadcast])\\n:     :     :     +- [#5] TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\\n:     :     +- [#3] Exchange(distribution=[broadcast])\\n:     +- [#2] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n            :- Exchange(distribution=[broadcast])\n            :  +- HashAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_MIN(min$0) AS EXPR$0])\n            :     +- Exchange(distribution=[hash[ps_partkey]])\n            :        +- LocalHashAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_MIN(ps_supplycost) AS min$0])\n            :           +- Calc(select=[ps_partkey, ps_supplycost])\n            :              +- MultipleInput(readOrder=[0,0,0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[(n_regionkey = r_regionkey)], select=[ps_partkey, ps_supplycost, n_regionkey, r_regionkey], build=[right])\\n:- Calc(select=[ps_partkey, ps_supplycost, n_regionkey])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[ps_partkey, ps_supplycost, s_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\\n:     :- Calc(select=[ps_partkey, ps_supplycost, s_nationkey])\\n:     :  +- HashJoin(joinType=[InnerJoin], where=[(s_suppkey = ps_suppkey)], select=[ps_partkey, ps_suppkey, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\\n:     :     :- Calc(select=[ps_partkey, ps_suppkey, ps_supplycost], where=[ps_partkey IS NOT NULL])\\n:     :     :  +- [#4] TableSourceScan(table=[[default_catalog, default_database, partsupp, filter=[IS NOT NULL(ps_partkey)], project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\\n:     :     +- [#3] Exchange(distribution=[broadcast])\\n:     +- [#2] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n            :                 :- Exchange(distribution=[broadcast])(reuse_id=[1])\n            :                 :  +- Calc(select=[r_regionkey], where=[(r_name = 'EUROPE')])\n            :                 :     +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'EUROPE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n            :                 :- Exchange(distribution=[broadcast])\n            :                 :  +- Calc(select=[n_nationkey, n_regionkey])\n            :                 :     +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])(reuse_id=[2])\n            :                 :- Exchange(distribution=[broadcast])\n            :                 :  +- Calc(select=[s_suppkey, s_nationkey])\n            :                 :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])(reuse_id=[3])\n            :                 +- TableSourceScan(table=[[default_catalog, default_database, partsupp, filter=[IS NOT NULL(ps_partkey)], project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n            :- Reused(reference_id=[1])\n            :- Exchange(distribution=[broadcast])\n            :  +- Reused(reference_id=[2])\n            :- Exchange(distribution=[broadcast])\n            :  +- MultipleInput(readOrder=[0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- [#2] TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])\\n])\n            :     :- Exchange(distribution=[broadcast])\n            :     :  +- Calc(select=[p_partkey, p_mfgr], where=[((p_size = 15) AND LIKE(p_type, '%BRASS'))])\n            :     :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_size, 15), LIKE(p_type, _UTF-16LE'%BRASS'))], project=[p_partkey, p_mfgr, p_type, p_size], metadata=[]]], fields=[p_partkey, p_mfgr, p_type, p_size])\n            :     +- Reused(reference_id=[3])\n            +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$2], sort2=[$1], sort3=[$3], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], dir2=[ASC-nulls-first], dir3=[ASC-nulls-first], fetch=[100])\n+- LogicalProject(s_acctbal=[$14], s_name=[$10], n_name=[$22], p_partkey=[$0], p_mfgr=[$2], s_address=[$11], s_phone=[$13], s_comment=[$15])\n   +- LogicalFilter(condition=[AND(=($0, $16), =($9, $17), =($5, 15), LIKE($4, _UTF-16LE'%BRASS'), =($12, $21), =($23, $25), =($26, _UTF-16LE'EUROPE'), =($19, $SCALAR_QUERY({\nLogicalAggregate(group=[{}], EXPR$0=[MIN($0)])\n  LogicalProject(ps_supplycost=[$3])\n    LogicalFilter(condition=[AND(=($cor0.p_partkey, $0), =($5, $1), =($8, $12), =($14, $16), =($17, _UTF-16LE'EUROPE'))])\n      LogicalJoin(condition=[true], joinType=[inner])\n        LogicalJoin(condition=[true], joinType=[inner])\n          LogicalJoin(condition=[true], joinType=[inner])\n            LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n          LogicalTableScan(table=[[default_catalog, default_database, nation]])\n        LogicalTableScan(table=[[default_catalog, default_database, region]])\n})))], variablesSet=[[$cor0]])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalJoin(condition=[true], joinType=[inner])\n         :  :- LogicalJoin(condition=[true], joinType=[inner])\n         :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n         :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, part]])\n         :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n         :  :  +- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n         :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, region]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[true])\n+- NativeExchange(distribution=[single])\n   +- NativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[false])\n      +- NativeCalc(select=[s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment], nativeFunctions=[], jvmFunctions=[])\n         +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(ps_supplycost, EXPR$0))], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, ps_partkey, EXPR$0], build=[right])\n            :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name], nativeFunctions=[], jvmFunctions=[])\n            :  +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey, r_regionkey], build=[right])\n            :     :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n            :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n            :     :     :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n            :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(s_suppkey, ps_suppkey))], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n            :     :     :     :- NativeExchange(distribution=[broadcast])\n            :     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], build=[left])\n            :     :     :     :     :- NativeExchange(distribution=[broadcast])\n            :     :     :     :     :  +- NativeCalc(select=[p_partkey, p_mfgr], where=[AND(=(p_size, 15), LIKE(p_type, '%BRASS'))], nativeFunctions=[], jvmFunctions=[])\n            :     :     :     :     :     +- RowDataToArrow\n            :     :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_size, 15), LIKE(p_type, _UTF-16LE'%BRASS'))], project=[p_partkey, p_mfgr, p_type, p_size], metadata=[]]], fields=[p_partkey, p_mfgr, p_type, p_size])\n            :     :     :     :     +- RowDataToArrow\n            :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])\n            :     :     :     +- RowDataToArrow\n            :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n            :     :     +- NativeExchange(distribution=[broadcast])\n            :     :        +- RowDataToArrow\n            :     :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n            :     +- NativeExchange(distribution=[broadcast])\n            :        +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[], jvmFunctions=[])\n            :           +- RowDataToArrow\n            :              +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'EUROPE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n            +- NativeExchange(distribution=[broadcast])\n               +- NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_MIN(min$0) AS EXPR$0])\n                  +- NativeExchange(distribution=[hash[ps_partkey]])\n                     +- NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_MIN(ps_supplycost) AS min$0])\n                        +- NativeCalc(select=[ps_partkey, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                           +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[ps_partkey, ps_supplycost, n_regionkey, r_regionkey], build=[right])\n                              :- NativeCalc(select=[ps_partkey, ps_supplycost, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_supplycost, s_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                              :     :- NativeCalc(select=[ps_partkey, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, ps_suppkey)], select=[ps_partkey, ps_suppkey, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                              :     :     :- NativeCalc(select=[ps_partkey, ps_suppkey, ps_supplycost], where=[IS NOT NULL(ps_partkey)], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :  +- RowDataToArrow\n                              :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, partsupp, filter=[IS NOT NULL(ps_partkey)], project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                              :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :        +- NativeCalc(select=[s_suppkey, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :           +- RowDataToArrow\n                              :     :              +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])\n                              :     +- NativeExchange(distribution=[broadcast])\n                              :        +- NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :           +- RowDataToArrow\n                              :              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'EUROPE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[true])\n+- NativeExchange(distribution=[single])\n   +- NativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[false])\n      +- NativeCalc(select=[s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment], nativeFunctions=[], jvmFunctions=[])\n         +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(ps_supplycost, EXPR$0))], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, ps_partkey, EXPR$0], build=[right])\n            :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name], nativeFunctions=[], jvmFunctions=[])\n            :  +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey, r_regionkey], build=[right])\n            :     :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n            :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n            :     :     :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n            :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(s_suppkey, ps_suppkey))], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n            :     :     :     :- NativeExchange(distribution=[broadcast])\n            :     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], build=[left])\n            :     :     :     :     :- NativeExchange(distribution=[broadcast])\n            :     :     :     :     :  +- NativeCalc(select=[p_partkey, p_mfgr], where=[AND(=(p_size, 15), LIKE(p_type, '%BRASS'))], nativeFunctions=[], jvmFunctions=[])\n            :     :     :     :     :     +- RowDataToArrow\n            :     :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_size, 15), LIKE(p_type, _UTF-16LE'%BRASS'))], project=[p_partkey, p_mfgr, p_type, p_size], metadata=[]]], fields=[p_partkey, p_mfgr, p_type, p_size])\n            :     :     :     :     +- RowDataToArrow\n            :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])(reuse_id=[1])\n            :     :     :     +- RowDataToArrow\n            :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n            :     :     +- NativeExchange(distribution=[broadcast])\n            :     :        +- RowDataToArrow\n            :     :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])(reuse_id=[2])\n            :     +- NativeExchange(distribution=[broadcast])\n            :        +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[], jvmFunctions=[])\n            :           +- RowDataToArrow\n            :              +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'EUROPE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])(reuse_id=[3])\n            +- NativeExchange(distribution=[broadcast])\n               +- NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_MIN(min$0) AS EXPR$0])\n                  +- NativeExchange(distribution=[hash[ps_partkey]])\n                     +- NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_MIN(ps_supplycost) AS min$0])\n                        +- NativeCalc(select=[ps_partkey, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                           +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[ps_partkey, ps_supplycost, n_regionkey, r_regionkey], build=[right])\n                              :- NativeCalc(select=[ps_partkey, ps_supplycost, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_supplycost, s_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                              :     :- NativeCalc(select=[ps_partkey, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, ps_suppkey)], select=[ps_partkey, ps_suppkey, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                              :     :     :- NativeCalc(select=[ps_partkey, ps_suppkey, ps_supplycost], where=[IS NOT NULL(ps_partkey)], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :  +- RowDataToArrow\n                              :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, partsupp, filter=[IS NOT NULL(ps_partkey)], project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                              :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :        +- NativeCalc(select=[s_suppkey, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :           +- RowDataToArrow\n                              :     :              +- Reused(reference_id=[1])\n                              :     +- NativeExchange(distribution=[broadcast])\n                              :        +- NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :           +- RowDataToArrow\n                              :              +- Reused(reference_id=[2])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- Reused(reference_id=[3])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$2], sort2=[$1], sort3=[$3], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], dir2=[ASC-nulls-first], dir3=[ASC-nulls-first], fetch=[100])\n+- LogicalProject(s_acctbal=[$14], s_name=[$10], n_name=[$22], p_partkey=[$0], p_mfgr=[$2], s_address=[$11], s_phone=[$13], s_comment=[$15])\n   +- LogicalFilter(condition=[AND(=($0, $16), =($9, $17), =($5, 15), LIKE($4, _UTF-16LE'%BRASS'), =($12, $21), =($23, $25), =($26, _UTF-16LE'EUROPE'), =($19, $SCALAR_QUERY({\nLogicalAggregate(group=[{}], EXPR$0=[MIN($0)])\n  LogicalProject(ps_supplycost=[$3])\n    LogicalFilter(condition=[AND(=($cor1.p_partkey, $0), =($5, $1), =($8, $12), =($14, $16), =($17, _UTF-16LE'EUROPE'))])\n      LogicalJoin(condition=[true], joinType=[inner])\n        LogicalJoin(condition=[true], joinType=[inner])\n          LogicalJoin(condition=[true], joinType=[inner])\n            LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n          LogicalTableScan(table=[[default_catalog, default_database, nation]])\n        LogicalTableScan(table=[[default_catalog, default_database, region]])\n})))], variablesSet=[[$cor1]])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalJoin(condition=[true], joinType=[inner])\n         :  :- LogicalJoin(condition=[true], joinType=[inner])\n         :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n         :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, part]])\n         :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n         :  :  +- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n         :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, region]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[true])\n+- NativeExchange(distribution=[single])\n   +- NativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[false])\n      +- NativeCalc(select=[s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment], nativeFunctions=[], jvmFunctions=[])\n         +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(ps_supplycost, EXPR$0))], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, ps_partkey, EXPR$0], build=[right])\n            :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name], nativeFunctions=[], jvmFunctions=[])\n            :  +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey, r_regionkey], build=[right])\n            :     :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n            :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n            :     :     :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n            :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(s_suppkey, ps_suppkey))], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n            :     :     :     :- NativeExchange(distribution=[broadcast])\n            :     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], build=[left])\n            :     :     :     :     :- NativeExchange(distribution=[broadcast])\n            :     :     :     :     :  +- NativeCalc(select=[p_partkey, p_mfgr], where=[AND(=(p_size, 15), LIKE(p_type, '%BRASS'))], nativeFunctions=[], jvmFunctions=[])\n            :     :     :     :     :     +- RowDataToArrow\n            :     :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_size, 15), LIKE(p_type, _UTF-16LE'%BRASS'))], project=[p_partkey, p_mfgr, p_type, p_size], metadata=[]]], fields=[p_partkey, p_mfgr, p_type, p_size])\n            :     :     :     :     +- RowDataToArrow\n            :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])\n            :     :     :     +- RowDataToArrow\n            :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n            :     :     +- NativeExchange(distribution=[broadcast])\n            :     :        +- RowDataToArrow\n            :     :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n            :     +- NativeExchange(distribution=[broadcast])\n            :        +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[], jvmFunctions=[])\n            :           +- RowDataToArrow\n            :              +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'EUROPE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n            +- NativeExchange(distribution=[broadcast])\n               +- NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_MIN(min$0) AS EXPR$0])\n                  +- NativeExchange(distribution=[hash[ps_partkey]])\n                     +- NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_MIN(ps_supplycost) AS min$0])\n                        +- NativeCalc(select=[ps_partkey, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                           +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[ps_partkey, ps_supplycost, n_regionkey, r_regionkey], build=[right])\n                              :- NativeCalc(select=[ps_partkey, ps_supplycost, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_supplycost, s_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                              :     :- NativeCalc(select=[ps_partkey, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, ps_suppkey)], select=[ps_partkey, ps_suppkey, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                              :     :     :- NativeCalc(select=[ps_partkey, ps_suppkey, ps_supplycost], where=[IS NOT NULL(ps_partkey)], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :  +- RowDataToArrow\n                              :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, partsupp, filter=[IS NOT NULL(ps_partkey)], project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                              :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :        +- NativeCalc(select=[s_suppkey, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :           +- RowDataToArrow\n                              :     :              +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])\n                              :     +- NativeExchange(distribution=[broadcast])\n                              :        +- NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :           +- RowDataToArrow\n                              :              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'EUROPE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[true])\n+- NativeExchange(distribution=[single])\n   +- NativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offset=[0], fetch=[100], global=[false])\n      +- NativeCalc(select=[s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment], nativeFunctions=[], jvmFunctions=[])\n         +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(ps_supplycost, EXPR$0))], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, ps_partkey, EXPR$0], build=[right])\n            :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name], nativeFunctions=[], jvmFunctions=[])\n            :  +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey, r_regionkey], build=[right])\n            :     :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_comment, ps_supplycost, n_name, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n            :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n            :     :     :- NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n            :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(s_suppkey, ps_suppkey))], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n            :     :     :     :- NativeExchange(distribution=[broadcast])\n            :     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, p_mfgr, s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], build=[left])\n            :     :     :     :     :- NativeExchange(distribution=[broadcast])\n            :     :     :     :     :  +- NativeCalc(select=[p_partkey, p_mfgr], where=[AND(=(p_size, 15), LIKE(p_type, '%BRASS'))], nativeFunctions=[], jvmFunctions=[])\n            :     :     :     :     :     +- RowDataToArrow\n            :     :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_size, 15), LIKE(p_type, _UTF-16LE'%BRASS'))], project=[p_partkey, p_mfgr, p_type, p_size], metadata=[]]], fields=[p_partkey, p_mfgr, p_type, p_size])\n            :     :     :     :     +- RowDataToArrow\n            :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey, s_phone, s_acctbal, s_comment])(reuse_id=[1])\n            :     :     :     +- RowDataToArrow\n            :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n            :     :     +- NativeExchange(distribution=[broadcast])\n            :     :        +- RowDataToArrow\n            :     :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])(reuse_id=[2])\n            :     +- NativeExchange(distribution=[broadcast])\n            :        +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[], jvmFunctions=[])\n            :           +- RowDataToArrow\n            :              +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'EUROPE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])(reuse_id=[3])\n            +- NativeExchange(distribution=[broadcast])\n               +- NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_MIN(min$0) AS EXPR$0])\n                  +- NativeExchange(distribution=[hash[ps_partkey]])\n                     +- NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_MIN(ps_supplycost) AS min$0])\n                        +- NativeCalc(select=[ps_partkey, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                           +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[ps_partkey, ps_supplycost, n_regionkey, r_regionkey], build=[right])\n                              :- NativeCalc(select=[ps_partkey, ps_supplycost, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_supplycost, s_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                              :     :- NativeCalc(select=[ps_partkey, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, ps_suppkey)], select=[ps_partkey, ps_suppkey, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                              :     :     :- NativeCalc(select=[ps_partkey, ps_suppkey, ps_supplycost], where=[IS NOT NULL(ps_partkey)], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :  +- RowDataToArrow\n                              :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, partsupp, filter=[IS NOT NULL(ps_partkey)], project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                              :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :        +- NativeCalc(select=[s_suppkey, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :           +- RowDataToArrow\n                              :     :              +- Reused(reference_id=[1])\n                              :     +- NativeExchange(distribution=[broadcast])\n                              :        +- NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :           +- RowDataToArrow\n                              :              +- Reused(reference_id=[2])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- Reused(reference_id=[3])\n\nStreamFusion batch: 35 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "ae4a82c0578de2a7f047f4ab4c7d83dc",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "399afa48529c36640b0492e3cdab887f",
          "sourceArrowRows": 18130,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_MIN(ps_supplyc",
              "recordsIn": 1,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_MIN(ps_supplyc",
              "recordsIn": 1600,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1196
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_",
              "recordsIn": 577,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 577
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_",
              "recordsIn": 619,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 619
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[",
              "recordsIn": 25,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 25
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_nationkey, s_phone, s",
              "recordsIn": 16,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 16
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_c",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_c",
              "recordsIn": 1,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_c",
              "recordsIn": 16,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 16
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_mfgr, s_name, s_address, s_phone, s_acctbal, s_c",
              "recordsIn": 5,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_mfgr], where=[AND(=(p_size, 15), LIKE(p_type, '%",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_mfgr], where=[AND(=(p_size, 15), LIKE(p_type, '%",
              "recordsIn": 2000,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 4
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_suppkey, ps_supplycost], where=[IS NOT NULL(ps",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_suppkey, ps_supplycost], where=[IS NOT NULL(ps",
              "recordsIn": 8000,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_supplycost, n_regionkey], nativeFunctions=[], ",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_supplycost, n_regionkey], nativeFunctions=[], ",
              "recordsIn": 8000,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_supplycost, s_nationkey], nativeFunctions=[], ",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_supplycost, s_nationkey], nativeFunctions=[], ",
              "recordsIn": 8000,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_supplycost], nativeFunctions=[], jvmFunctions=",
              "recordsIn": 1,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_supplycost], nativeFunctions=[], jvmFunctions=",
              "recordsIn": 1600,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1600
            },
            {
              "operator": "NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[]",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[]",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[]",
              "recordsIn": 5,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[r_regionkey], where=[=(r_name, 'EUROPE')], nativeFunctions=[]",
              "recordsIn": 5,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_ph",
              "recordsIn": 1,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_ph",
              "recordsIn": 4,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 4
            },
            {
              "operator": "NativeCalc(select=[s_suppkey, s_nationkey], nativeFunctions=[], jvmFunctions=[])",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_suppkey, s_nationkey], nativeFunctions=[], jvmFunctions=[])",
              "recordsIn": 100,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 100
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 100,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 100
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 25,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 25
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 5,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[p_",
              "recordsIn": 1,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[p_",
              "recordsIn": 17,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[ps",
              "recordsIn": 1,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[ps",
              "recordsIn": 8001,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1600
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[p_",
              "recordsIn": 25,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[p_",
              "recordsIn": 41,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 16
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps",
              "recordsIn": 25,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps",
              "recordsIn": 8025,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, ps_suppkey)], select=[ps_pa",
              "recordsIn": 100,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, ps_suppkey)], select=[ps_pa",
              "recordsIn": 8100,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(ps_suppl",
              "recordsIn": 1197,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(ps_suppl",
              "recordsIn": 1201,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 4
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(s_suppke",
              "recordsIn": 401,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, ps_partkey), =(s_suppke",
              "recordsIn": 8401,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 16
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, p_mfgr, s_supp",
              "recordsIn": 104,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 400
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, p_mfgr, s_supp",
              "recordsIn": 4,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offs",
              "recordsIn": 1,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offs",
              "recordsIn": 4,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 4
            },
            {
              "operator": "NativeSort(orderBy=[s_acctbal DESC, n_name ASC, s_name ASC, p_partkey ASC], offs",
              "recordsIn": 4,
              "jobId": "399afa48529c36640b0492e3cdab887f",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 4
            }
          ]
        }
      ],
      "resultType": "ROW<`s_acctbal` DECIMAL(15, 2), `s_name` STRING, `n_name` STRING, `p_partkey` BIGINT, `p_mfgr` STRING, `s_address` STRING, `s_phone` STRING, `s_comment` STRING> NOT NULL",
      "rows": 4,
      "resultSha256": "b9ecb7f74e0cb46abe3628e8311fbf0fa89fadc14f54551e9fb739eae43b5c9e",
      "stockNanos": [
        607002667
      ],
      "nativeNanos": [
        319208042
      ],
      "stockRuntimeMs": [
        361
      ],
      "nativeRuntimeMs": [
        168
      ],
      "status": "passed"
    },
    {
      "query": 3,
      "sqlSha256": "d8d2f7579eac245cd2609e49f572025a6efa1725dc30e3ccc3c6887f4c4f0bbf",
      "sql": "-- database: presto; groups: tpch; tables: customer,orders,lineitem\nSELECT\n  l_orderkey,\n  sum(l_extendedprice * (1 - l_discount)) AS revenue,\n  o_orderdate,\n  o_shippriority\nFROM\n  customer,\n  orders,\n  lineitem\nWHERE\n  c_mktsegment = 'BUILDING'\n  AND c_custkey = o_custkey\n  AND l_orderkey = o_orderkey\n  AND o_orderdate < DATE '1995-03-15'\n  AND l_shipdate > DATE '1995-03-15'\nGROUP BY\n  l_orderkey,\n  o_orderdate,\n  o_shippriority\nORDER BY\n  revenue DESC,\n  o_orderdate\nLIMIT 10\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], sort1=[$2], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], fetch=[10])\n+- LogicalProject(l_orderkey=[$0], revenue=[$3], o_orderdate=[$1], o_shippriority=[$2])\n   +- LogicalAggregate(group=[{0, 1, 2}], revenue=[SUM($3)])\n      +- LogicalProject(l_orderkey=[$17], o_orderdate=[$12], o_shippriority=[$15], $f3=[*($22, -(1, $23))])\n         +- LogicalFilter(condition=[AND(=($6, _UTF-16LE'BUILDING'), =($0, $9), =($17, $8), <($12, 1995-03-15), >($27, 1995-03-15))])\n            +- LogicalJoin(condition=[true], joinType=[inner])\n               :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n               :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nCalc(select=[l_orderkey, revenue, o_orderdate, o_shippriority])\n+- SortLimit(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[true])\n   +- Exchange(distribution=[single])\n      +- SortLimit(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[false])\n         +- HashAggregate(isMerge=[true], groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Final_SUM(sum$0) AS revenue])\n            +- Exchange(distribution=[hash[l_orderkey, o_orderdate, o_shippriority]])\n               +- LocalHashAggregate(groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Partial_SUM($f3) AS sum$0])\n                  +- Calc(select=[l_orderkey, o_orderdate, o_shippriority, *(l_extendedprice, -(1, l_discount)) AS $f3])\n                     +- HashJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderdate, o_shippriority, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :- Exchange(distribution=[broadcast])\n                        :  +- Calc(select=[o_orderkey, o_orderdate, o_shippriority])\n                        :     +- HashJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey, o_orderdate, o_shippriority], isBroadcast=[true], build=[left])\n                        :        :- Exchange(distribution=[broadcast])\n                        :        :  +- Calc(select=[c_custkey], where=[=(c_mktsegment, 'BUILDING')])\n                        :        :     +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[=(c_mktsegment, _UTF-16LE'BUILDING':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[c_custkey, c_mktsegment], metadata=[]]], fields=[c_custkey, c_mktsegment])\n                        :        +- Calc(select=[o_orderkey, o_custkey, o_orderdate, o_shippriority], where=[<(o_orderdate, 1995-03-15)])\n                        :           +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[<(o_orderdate, 1995-03-15)], project=[o_orderkey, o_custkey, o_orderdate, o_shippriority], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate, o_shippriority])\n                        +- Calc(select=[l_orderkey, l_extendedprice, l_discount], where=[>(l_shipdate, 1995-03-15)])\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_shipdate, 1995-03-15)], project=[l_orderkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_shipdate])\n\n== Optimized Execution Plan ==\nCalc(select=[l_orderkey, revenue, o_orderdate, o_shippriority])\n+- SortLimit(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[true])\n   +- Exchange(distribution=[single])\n      +- SortLimit(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[false])\n         +- HashAggregate(isMerge=[true], groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Final_SUM(sum$0) AS revenue])\n            +- Exchange(distribution=[hash[l_orderkey, o_orderdate, o_shippriority]])\n               +- LocalHashAggregate(groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Partial_SUM($f3) AS sum$0])\n                  +- Calc(select=[l_orderkey, o_orderdate, o_shippriority, (l_extendedprice * (1 - l_discount)) AS $f3])\n                     +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[(l_orderkey = o_orderkey)], select=[o_orderkey, o_orderdate, o_shippriority, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- Calc(select=[l_orderkey, l_extendedprice, l_discount], where=[(l_shipdate > 1995-03-15)])\\n   +- [#2] TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_shipdate, 1995-03-15)], project=[l_orderkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_shipdate])\\n])\n                        :- Exchange(distribution=[broadcast])\n                        :  +- Calc(select=[o_orderkey, o_orderdate, o_shippriority])\n                        :     +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[(c_custkey = o_custkey)], select=[c_custkey, o_orderkey, o_custkey, o_orderdate, o_shippriority], isBroadcast=[true], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- Calc(select=[o_orderkey, o_custkey, o_orderdate, o_shippriority], where=[(o_orderdate < 1995-03-15)])\\n   +- [#2] TableSourceScan(table=[[default_catalog, default_database, orders, filter=[<(o_orderdate, 1995-03-15)], project=[o_orderkey, o_custkey, o_orderdate, o_shippriority], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate, o_shippriority])\\n])\n                        :        :- Exchange(distribution=[broadcast])\n                        :        :  +- Calc(select=[c_custkey], where=[(c_mktsegment = 'BUILDING')])\n                        :        :     +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[=(c_mktsegment, _UTF-16LE'BUILDING':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[c_custkey, c_mktsegment], metadata=[]]], fields=[c_custkey, c_mktsegment])\n                        :        +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[<(o_orderdate, 1995-03-15)], project=[o_orderkey, o_custkey, o_orderdate, o_shippriority], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate, o_shippriority])\n                        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_shipdate, 1995-03-15)], project=[l_orderkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_shipdate])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], sort1=[$2], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], fetch=[10])\n+- LogicalProject(l_orderkey=[$0], revenue=[$3], o_orderdate=[$1], o_shippriority=[$2])\n   +- LogicalAggregate(group=[{0, 1, 2}], revenue=[SUM($3)])\n      +- LogicalProject(l_orderkey=[$17], o_orderdate=[$12], o_shippriority=[$15], $f3=[*($22, -(1, $23))])\n         +- LogicalFilter(condition=[AND(=($6, _UTF-16LE'BUILDING'), =($0, $9), =($17, $8), <($12, 1995-03-15), >($27, 1995-03-15))])\n            +- LogicalJoin(condition=[true], joinType=[inner])\n               :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n               :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[l_orderkey, revenue, o_orderdate, o_shippriority], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Final_SUM(sum$0) AS revenue])\n            +- NativeExchange(distribution=[hash[l_orderkey, o_orderdate, o_shippriority]])\n               +- NativeAggregate(groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Partial_SUM($f3) AS sum$0])\n                  +- NativeCalc(select=[l_orderkey, o_orderdate, o_shippriority, *(l_extendedprice, -(1, l_discount)) AS $f3], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderdate, o_shippriority, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :- NativeExchange(distribution=[broadcast])\n                        :  +- NativeCalc(select=[o_orderkey, o_orderdate, o_shippriority], nativeFunctions=[], jvmFunctions=[])\n                        :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey, o_orderdate, o_shippriority], isBroadcast=[true], build=[left])\n                        :        :- NativeExchange(distribution=[broadcast])\n                        :        :  +- NativeCalc(select=[c_custkey], where=[=(c_mktsegment, 'BUILDING')], nativeFunctions=[], jvmFunctions=[])\n                        :        :     +- RowDataToArrow\n                        :        :        +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[=(c_mktsegment, _UTF-16LE'BUILDING':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[c_custkey, c_mktsegment], metadata=[]]], fields=[c_custkey, c_mktsegment])\n                        :        +- NativeCalc(select=[o_orderkey, o_custkey, o_orderdate, o_shippriority], where=[<(o_orderdate, 1995-03-15)], nativeFunctions=[], jvmFunctions=[])\n                        :           +- RowDataToArrow\n                        :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[<(o_orderdate, 1995-03-15)], project=[o_orderkey, o_custkey, o_orderdate, o_shippriority], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate, o_shippriority])\n                        +- NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[>(l_shipdate, 1995-03-15)], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_shipdate, 1995-03-15)], project=[l_orderkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_shipdate])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[l_orderkey, revenue, o_orderdate, o_shippriority], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Final_SUM(sum$0) AS revenue])\n            +- NativeExchange(distribution=[hash[l_orderkey, o_orderdate, o_shippriority]])\n               +- NativeAggregate(groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Partial_SUM($f3) AS sum$0])\n                  +- NativeCalc(select=[l_orderkey, o_orderdate, o_shippriority, *(l_extendedprice, -(1, l_discount)) AS $f3], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderdate, o_shippriority, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :- NativeExchange(distribution=[broadcast])\n                        :  +- NativeCalc(select=[o_orderkey, o_orderdate, o_shippriority], nativeFunctions=[], jvmFunctions=[])\n                        :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey, o_orderdate, o_shippriority], isBroadcast=[true], build=[left])\n                        :        :- NativeExchange(distribution=[broadcast])\n                        :        :  +- NativeCalc(select=[c_custkey], where=[=(c_mktsegment, 'BUILDING')], nativeFunctions=[], jvmFunctions=[])\n                        :        :     +- RowDataToArrow\n                        :        :        +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[=(c_mktsegment, _UTF-16LE'BUILDING':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[c_custkey, c_mktsegment], metadata=[]]], fields=[c_custkey, c_mktsegment])\n                        :        +- NativeCalc(select=[o_orderkey, o_custkey, o_orderdate, o_shippriority], where=[<(o_orderdate, 1995-03-15)], nativeFunctions=[], jvmFunctions=[])\n                        :           +- RowDataToArrow\n                        :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[<(o_orderdate, 1995-03-15)], project=[o_orderkey, o_custkey, o_orderdate, o_shippriority], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate, o_shippriority])\n                        +- NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[>(l_shipdate, 1995-03-15)], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_shipdate, 1995-03-15)], project=[l_orderkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_shipdate])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], sort1=[$2], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], fetch=[10])\n+- LogicalProject(l_orderkey=[$0], revenue=[$3], o_orderdate=[$1], o_shippriority=[$2])\n   +- LogicalAggregate(group=[{0, 1, 2}], revenue=[SUM($3)])\n      +- LogicalProject(l_orderkey=[$17], o_orderdate=[$12], o_shippriority=[$15], $f3=[*($22, -(1, $23))])\n         +- LogicalFilter(condition=[AND(=($6, _UTF-16LE'BUILDING'), =($0, $9), =($17, $8), <($12, 1995-03-15), >($27, 1995-03-15))])\n            +- LogicalJoin(condition=[true], joinType=[inner])\n               :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n               :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[l_orderkey, revenue, o_orderdate, o_shippriority], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Final_SUM(sum$0) AS revenue])\n            +- NativeExchange(distribution=[hash[l_orderkey, o_orderdate, o_shippriority]])\n               +- NativeAggregate(groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Partial_SUM($f3) AS sum$0])\n                  +- NativeCalc(select=[l_orderkey, o_orderdate, o_shippriority, *(l_extendedprice, -(1, l_discount)) AS $f3], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderdate, o_shippriority, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :- NativeExchange(distribution=[broadcast])\n                        :  +- NativeCalc(select=[o_orderkey, o_orderdate, o_shippriority], nativeFunctions=[], jvmFunctions=[])\n                        :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey, o_orderdate, o_shippriority], isBroadcast=[true], build=[left])\n                        :        :- NativeExchange(distribution=[broadcast])\n                        :        :  +- NativeCalc(select=[c_custkey], where=[=(c_mktsegment, 'BUILDING')], nativeFunctions=[], jvmFunctions=[])\n                        :        :     +- RowDataToArrow\n                        :        :        +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[=(c_mktsegment, _UTF-16LE'BUILDING':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[c_custkey, c_mktsegment], metadata=[]]], fields=[c_custkey, c_mktsegment])\n                        :        +- NativeCalc(select=[o_orderkey, o_custkey, o_orderdate, o_shippriority], where=[<(o_orderdate, 1995-03-15)], nativeFunctions=[], jvmFunctions=[])\n                        :           +- RowDataToArrow\n                        :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[<(o_orderdate, 1995-03-15)], project=[o_orderkey, o_custkey, o_orderdate, o_shippriority], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate, o_shippriority])\n                        +- NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[>(l_shipdate, 1995-03-15)], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_shipdate, 1995-03-15)], project=[l_orderkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_shipdate])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[l_orderkey, revenue, o_orderdate, o_shippriority], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Final_SUM(sum$0) AS revenue])\n            +- NativeExchange(distribution=[hash[l_orderkey, o_orderdate, o_shippriority]])\n               +- NativeAggregate(groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_orderkey, o_orderdate, o_shippriority, Partial_SUM($f3) AS sum$0])\n                  +- NativeCalc(select=[l_orderkey, o_orderdate, o_shippriority, *(l_extendedprice, -(1, l_discount)) AS $f3], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderdate, o_shippriority, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :- NativeExchange(distribution=[broadcast])\n                        :  +- NativeCalc(select=[o_orderkey, o_orderdate, o_shippriority], nativeFunctions=[], jvmFunctions=[])\n                        :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey, o_orderdate, o_shippriority], isBroadcast=[true], build=[left])\n                        :        :- NativeExchange(distribution=[broadcast])\n                        :        :  +- NativeCalc(select=[c_custkey], where=[=(c_mktsegment, 'BUILDING')], nativeFunctions=[], jvmFunctions=[])\n                        :        :     +- RowDataToArrow\n                        :        :        +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[=(c_mktsegment, _UTF-16LE'BUILDING':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[c_custkey, c_mktsegment], metadata=[]]], fields=[c_custkey, c_mktsegment])\n                        :        +- NativeCalc(select=[o_orderkey, o_custkey, o_orderdate, o_shippriority], where=[<(o_orderdate, 1995-03-15)], nativeFunctions=[], jvmFunctions=[])\n                        :           +- RowDataToArrow\n                        :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[<(o_orderdate, 1995-03-15)], project=[o_orderkey, o_custkey, o_orderdate, o_shippriority], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate, o_shippriority])\n                        +- NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[>(l_shipdate, 1995-03-15)], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_shipdate, 1995-03-15)], project=[l_orderkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_shipdate])\n\nStreamFusion batch: 16 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "97cf84f50144058605f3325af1617e0e",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "7f3027c30569d3800dd983a870ebffd9",
          "sourceArrowRows": 76675,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_ord",
              "recordsIn": 0,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[l_orderkey, o_orderdate, o_shippriority], select=[l_ord",
              "recordsIn": 356,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 138
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_orderkey, o_orderdate, o_shippriority",
              "recordsIn": 67,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 67
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_orderkey, o_orderdate, o_shippriority",
              "recordsIn": 71,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 71
            },
            {
              "operator": "NativeCalc(select=[c_custkey], where=[=(c_mktsegment, 'BUILDING')], nativeFuncti",
              "recordsIn": 0,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_custkey], where=[=(c_mktsegment, 'BUILDING')], nativeFuncti",
              "recordsIn": 1500,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 337
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[>(l_shipdate",
              "recordsIn": 0,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[>(l_shipdate",
              "recordsIn": 60175,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 32260
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, o_orderdate, o_shippriority, *(l_extendedprice, -",
              "recordsIn": 0,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, o_orderdate, o_shippriority, *(l_extendedprice, -",
              "recordsIn": 356,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 356
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, revenue, o_orderdate, o_shippriority], nativeFunc",
              "recordsIn": 10,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 10
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey, o_orderdate, o_shippriority], where=[<",
              "recordsIn": 0,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey, o_orderdate, o_shippriority], where=[<",
              "recordsIn": 15000,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 7286
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_orderdate, o_shippriority], nativeFunctions=[],",
              "recordsIn": 0,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_orderdate, o_shippriority], nativeFunctions=[],",
              "recordsIn": 1797,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1797
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_cust",
              "recordsIn": 337,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_cust",
              "recordsIn": 7623,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1797
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[o_or",
              "recordsIn": 1797,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[o_or",
              "recordsIn": 34057,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 356
            },
            {
              "operator": "NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], glob",
              "recordsIn": 20,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 10
            },
            {
              "operator": "NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], glob",
              "recordsIn": 67,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 10
            },
            {
              "operator": "NativeSort(orderBy=[revenue DESC, o_orderdate ASC], offset=[0], fetch=[10], glob",
              "recordsIn": 71,
              "jobId": "7f3027c30569d3800dd983a870ebffd9",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 10
            }
          ]
        }
      ],
      "resultType": "ROW<`l_orderkey` BIGINT, `revenue` DECIMAL(38, 4), `o_orderdate` DATE, `o_shippriority` INT> NOT NULL",
      "rows": 10,
      "resultSha256": "68cd033f95f528eec57ffa8bcf64e8d6e0ccac13181514c03e9e9d4e38916491",
      "stockNanos": [
        286169000
      ],
      "nativeNanos": [
        253836750
      ],
      "stockRuntimeMs": [
        203
      ],
      "nativeRuntimeMs": [
        129
      ],
      "status": "passed"
    },
    {
      "query": 4,
      "sqlSha256": "04297c2ddbbcc2bd3999494f3f531235e8bf5d723e678796ee485c0309711594",
      "sql": "-- database: presto; groups: tpch; tables: orders,lineitem\nSELECT\n  o_orderpriority,\n  count(*) AS order_count\nFROM orders\nWHERE\n  o_orderdate >= DATE '1993-07-01'\n  AND o_orderdate < DATE '1993-07-01' + INTERVAL '3' MONTH\nAND EXISTS (\nSELECT *\nFROM lineitem\nWHERE\nl_orderkey = o_orderkey\nAND l_commitdate < l_receiptdate\n)\nGROUP BY\no_orderpriority\nORDER BY\no_orderpriority\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0}], order_count=[COUNT()])\n   +- LogicalProject(o_orderpriority=[$5])\n      +- LogicalFilter(condition=[AND(>=($4, 1993-07-01), <($4, +(1993-07-01, 3:INTERVAL MONTH)), EXISTS({\nLogicalFilter(condition=[AND(=($0, $cor2.o_orderkey), <($11, $12))])\n  LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n}))], variablesSet=[[$cor2]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[o_orderpriority ASC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[o_orderpriority], select=[o_orderpriority, Final_COUNT(count1$0) AS order_count])\n      +- Exchange(distribution=[hash[o_orderpriority]])\n         +- LocalHashAggregate(groupBy=[o_orderpriority], select=[o_orderpriority, Partial_COUNT(*) AS count1$0])\n            +- Calc(select=[o_orderpriority])\n               +- HashJoin(joinType=[LeftSemiJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderpriority], isBroadcast=[true], build=[right])\n                  :- Calc(select=[o_orderkey, o_orderpriority], where=[SEARCH(o_orderdate, Sarg[[1993-07-01..1993-10-01)])])\n                  :  +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-07-01), <(o_orderdate, 1993-10-01))], project=[o_orderkey, o_orderdate, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderdate, o_orderpriority])\n                  +- Exchange(distribution=[broadcast])\n                     +- Calc(select=[l_orderkey], where=[<(l_commitdate, l_receiptdate)])\n                        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<(l_commitdate, l_receiptdate)], project=[l_orderkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_commitdate, l_receiptdate])\n\n== Optimized Execution Plan ==\nSort(orderBy=[o_orderpriority ASC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[o_orderpriority], select=[o_orderpriority, Final_COUNT(count1$0) AS order_count])\n      +- Exchange(distribution=[hash[o_orderpriority]])\n         +- LocalHashAggregate(groupBy=[o_orderpriority], select=[o_orderpriority, Partial_COUNT(*) AS count1$0])\n            +- Calc(select=[o_orderpriority])\n               +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[LeftSemiJoin], where=[(l_orderkey = o_orderkey)], select=[o_orderkey, o_orderpriority], isBroadcast=[true], build=[right])\\n:- Calc(select=[o_orderkey, o_orderpriority], where=[SEARCH(o_orderdate, Sarg[[1993-07-01..1993-10-01)])])\\n:  +- [#2] TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-07-01), <(o_orderdate, 1993-10-01))], project=[o_orderkey, o_orderdate, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderdate, o_orderpriority])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                  :- Exchange(distribution=[broadcast])\n                  :  +- Calc(select=[l_orderkey], where=[(l_commitdate < l_receiptdate)])\n                  :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<(l_commitdate, l_receiptdate)], project=[l_orderkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_commitdate, l_receiptdate])\n                  +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-07-01), <(o_orderdate, 1993-10-01))], project=[o_orderkey, o_orderdate, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderdate, o_orderpriority])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0}], order_count=[COUNT()])\n   +- LogicalProject(o_orderpriority=[$5])\n      +- LogicalFilter(condition=[AND(>=($4, 1993-07-01), <($4, +(1993-07-01, 3:INTERVAL MONTH)), EXISTS({\nLogicalFilter(condition=[AND(=($0, $cor3.o_orderkey), <($11, $12))])\n  LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n}))], variablesSet=[[$cor3]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[o_orderpriority ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[o_orderpriority], select=[o_orderpriority, Final_COUNT(count1$0) AS order_count])\n      +- NativeExchange(distribution=[hash[o_orderpriority]])\n         +- NativeAggregate(groupBy=[o_orderpriority], select=[o_orderpriority, Partial_COUNT(*) AS count1$0])\n            +- NativeCalc(select=[o_orderpriority], nativeFunctions=[], jvmFunctions=[])\n               +- NativeJoin(joinType=[LeftSemiJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderpriority], isBroadcast=[true], build=[right])\n                  :- NativeCalc(select=[o_orderkey, o_orderpriority], where=[SEARCH(o_orderdate, Sarg[[1993-07-01..1993-10-01)])], nativeFunctions=[], jvmFunctions=[])\n                  :  +- RowDataToArrow\n                  :     +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-07-01), <(o_orderdate, 1993-10-01))], project=[o_orderkey, o_orderdate, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderdate, o_orderpriority])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- NativeCalc(select=[l_orderkey], where=[<(l_commitdate, l_receiptdate)], nativeFunctions=[], jvmFunctions=[])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<(l_commitdate, l_receiptdate)], project=[l_orderkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_commitdate, l_receiptdate])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[o_orderpriority ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[o_orderpriority], select=[o_orderpriority, Final_COUNT(count1$0) AS order_count])\n      +- NativeExchange(distribution=[hash[o_orderpriority]])\n         +- NativeAggregate(groupBy=[o_orderpriority], select=[o_orderpriority, Partial_COUNT(*) AS count1$0])\n            +- NativeCalc(select=[o_orderpriority], nativeFunctions=[], jvmFunctions=[])\n               +- NativeJoin(joinType=[LeftSemiJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderpriority], isBroadcast=[true], build=[right])\n                  :- NativeCalc(select=[o_orderkey, o_orderpriority], where=[SEARCH(o_orderdate, Sarg[[1993-07-01..1993-10-01)])], nativeFunctions=[], jvmFunctions=[])\n                  :  +- RowDataToArrow\n                  :     +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-07-01), <(o_orderdate, 1993-10-01))], project=[o_orderkey, o_orderdate, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderdate, o_orderpriority])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- NativeCalc(select=[l_orderkey], where=[<(l_commitdate, l_receiptdate)], nativeFunctions=[], jvmFunctions=[])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<(l_commitdate, l_receiptdate)], project=[l_orderkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_commitdate, l_receiptdate])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0}], order_count=[COUNT()])\n   +- LogicalProject(o_orderpriority=[$5])\n      +- LogicalFilter(condition=[AND(>=($4, 1993-07-01), <($4, +(1993-07-01, 3:INTERVAL MONTH)), EXISTS({\nLogicalFilter(condition=[AND(=($0, $cor4.o_orderkey), <($11, $12))])\n  LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n}))], variablesSet=[[$cor4]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[o_orderpriority ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[o_orderpriority], select=[o_orderpriority, Final_COUNT(count1$0) AS order_count])\n      +- NativeExchange(distribution=[hash[o_orderpriority]])\n         +- NativeAggregate(groupBy=[o_orderpriority], select=[o_orderpriority, Partial_COUNT(*) AS count1$0])\n            +- NativeCalc(select=[o_orderpriority], nativeFunctions=[], jvmFunctions=[])\n               +- NativeJoin(joinType=[LeftSemiJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderpriority], isBroadcast=[true], build=[right])\n                  :- NativeCalc(select=[o_orderkey, o_orderpriority], where=[SEARCH(o_orderdate, Sarg[[1993-07-01..1993-10-01)])], nativeFunctions=[], jvmFunctions=[])\n                  :  +- RowDataToArrow\n                  :     +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-07-01), <(o_orderdate, 1993-10-01))], project=[o_orderkey, o_orderdate, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderdate, o_orderpriority])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- NativeCalc(select=[l_orderkey], where=[<(l_commitdate, l_receiptdate)], nativeFunctions=[], jvmFunctions=[])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<(l_commitdate, l_receiptdate)], project=[l_orderkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_commitdate, l_receiptdate])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[o_orderpriority ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[o_orderpriority], select=[o_orderpriority, Final_COUNT(count1$0) AS order_count])\n      +- NativeExchange(distribution=[hash[o_orderpriority]])\n         +- NativeAggregate(groupBy=[o_orderpriority], select=[o_orderpriority, Partial_COUNT(*) AS count1$0])\n            +- NativeCalc(select=[o_orderpriority], nativeFunctions=[], jvmFunctions=[])\n               +- NativeJoin(joinType=[LeftSemiJoin], where=[=(l_orderkey, o_orderkey)], select=[o_orderkey, o_orderpriority], isBroadcast=[true], build=[right])\n                  :- NativeCalc(select=[o_orderkey, o_orderpriority], where=[SEARCH(o_orderdate, Sarg[[1993-07-01..1993-10-01)])], nativeFunctions=[], jvmFunctions=[])\n                  :  +- RowDataToArrow\n                  :     +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-07-01), <(o_orderdate, 1993-10-01))], project=[o_orderkey, o_orderdate, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderdate, o_orderpriority])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- NativeCalc(select=[l_orderkey], where=[<(l_commitdate, l_receiptdate)], nativeFunctions=[], jvmFunctions=[])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[<(l_commitdate, l_receiptdate)], project=[l_orderkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_commitdate, l_receiptdate])\n\nStreamFusion batch: 10 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "af3b283c96fd8ff82e9104de5553a3d9",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
          "sourceArrowRows": 75175,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[o_orderpriority], select=[o_orderpriority, Partial_COUN",
              "recordsIn": 0,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[o_orderpriority], select=[o_orderpriority, Partial_COUN",
              "recordsIn": 535,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[o_orderpriority], select=[o_orderpriori",
              "recordsIn": 2,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[o_orderpriority], select=[o_orderpriori",
              "recordsIn": 3,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 3
            },
            {
              "operator": "NativeCalc(select=[l_orderkey], where=[<(l_commitdate, l_receiptdate)], nativeFu",
              "recordsIn": 0,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_orderkey], where=[<(l_commitdate, l_receiptdate)], nativeFu",
              "recordsIn": 60175,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 37897
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_orderpriority], where=[SEARCH(o_orderdate, Sarg",
              "recordsIn": 0,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_orderpriority], where=[SEARCH(o_orderdate, Sarg",
              "recordsIn": 15000,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 582
            },
            {
              "operator": "NativeCalc(select=[o_orderpriority], nativeFunctions=[], jvmFunctions=[])[569]",
              "recordsIn": 0,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_orderpriority], nativeFunctions=[], jvmFunctions=[])[569]",
              "recordsIn": 535,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 535
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[=(l_orderkey, o_orderkey)], select=[o",
              "recordsIn": 37897,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[=(l_orderkey, o_orderkey)], select=[o",
              "recordsIn": 38479,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 535
            },
            {
              "operator": "NativeSort(orderBy=[o_orderpriority ASC])[575]",
              "recordsIn": 5,
              "jobId": "55c8765cada05b3db9b4e904de6ce3a7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            }
          ]
        }
      ],
      "resultType": "ROW<`o_orderpriority` STRING, `order_count` BIGINT NOT NULL> NOT NULL",
      "rows": 5,
      "resultSha256": "7e56380468cb51ff6ffe7601b7d279b8b6a53fb8be7398b02e35982042159670",
      "stockNanos": [
        269203208
      ],
      "nativeNanos": [
        146561750
      ],
      "stockRuntimeMs": [
        182
      ],
      "nativeRuntimeMs": [
        96
      ],
      "status": "passed"
    },
    {
      "query": 5,
      "sqlSha256": "c4fe1313161ee7e67d0c554a54126ac20560c0df04b86e33aa5ec251f908c315",
      "sql": "-- database: presto; groups: big_query, tpch; tables: customer,orders,lineitem,supplier,nation,region\nSELECT\n  n_name,\n  sum(l_extendedprice * (1 - l_discount)) AS revenue\nFROM\n  customer,\n  orders,\n  lineitem,\n  supplier,\n  nation,\n  region\nWHERE\n  c_custkey = o_custkey\n  AND l_orderkey = o_orderkey\n  AND l_suppkey = s_suppkey\n  AND c_nationkey = s_nationkey\n  AND s_nationkey = n_nationkey\n  AND n_regionkey = r_regionkey\n  AND r_name = 'ASIA'\n  AND o_orderdate >= DATE '1994-01-01'\n  AND o_orderdate < DATE '1994-01-01' + INTERVAL '1' YEAR\nGROUP BY\nn_name\nORDER BY\nrevenue DESC\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], dir0=[DESC-nulls-last])\n+- LogicalAggregate(group=[{0}], revenue=[SUM($1)])\n   +- LogicalProject(n_name=[$41], $f1=[*($22, -(1, $23))])\n      +- LogicalFilter(condition=[AND(=($0, $9), =($17, $8), =($19, $33), =($3, $36), =($36, $40), =($42, $44), =($45, _UTF-16LE'ASIA'), >=($12, 1994-01-01), <($12, +(1994-01-01, 12:INTERVAL YEAR)))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n            :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, region]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[revenue DESC])\n+- Exchange(distribution=[single])\n   +- SortAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$0) AS revenue])\n      +- Sort(orderBy=[n_name ASC])\n         +- Exchange(distribution=[hash[n_name]])\n            +- LocalSortAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])\n               +- Sort(orderBy=[n_name ASC])\n                  +- Calc(select=[n_name, *(l_extendedprice, -(1, l_discount)) AS $f1])\n                     +- NestedLoopJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, n_name, n_regionkey, r_regionkey], build=[right])\n                        :- Calc(select=[l_extendedprice, l_discount, n_name, n_regionkey])\n                        :  +- HashJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[l_extendedprice, l_discount, s_nationkey, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n                        :     :- Calc(select=[l_extendedprice, l_discount, s_nationkey])\n                        :     :  +- HashJoin(joinType=[InnerJoin], where=[AND(=(l_suppkey, s_suppkey), =(c_nationkey, s_nationkey))], select=[c_nationkey, l_suppkey, l_extendedprice, l_discount, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                        :     :     :- Calc(select=[c_nationkey, l_suppkey, l_extendedprice, l_discount])\n                        :     :     :  +- HashJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_nationkey, o_orderkey, l_orderkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :     :     :     :- Exchange(distribution=[broadcast])\n                        :     :     :     :  +- Calc(select=[c_nationkey, o_orderkey])\n                        :     :     :     :     +- HashJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_nationkey, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                        :     :     :     :        :- Exchange(distribution=[broadcast])\n                        :     :     :     :        :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                        :     :     :     :        +- Calc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1994-01-01..1995-01-01)])])\n                        :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1994-01-01), <(o_orderdate, 1995-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                        :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount])\n                        :     :     +- Exchange(distribution=[broadcast])\n                        :     :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                        :     +- Exchange(distribution=[broadcast])\n                        :        +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                        +- Exchange(distribution=[broadcast])\n                           +- Calc(select=[r_regionkey], where=[=(r_name, 'ASIA')])\n                              +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'ASIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\n== Optimized Execution Plan ==\nSort(orderBy=[revenue DESC])\n+- Exchange(distribution=[single])\n   +- SortAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$0) AS revenue])\n      +- Exchange(distribution=[forward])\n         +- Sort(orderBy=[n_name ASC])\n            +- Exchange(distribution=[hash[n_name]])\n               +- LocalSortAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])\n                  +- Exchange(distribution=[forward])\n                     +- Sort(orderBy=[n_name ASC])\n                        +- Calc(select=[n_name, (l_extendedprice * (1 - l_discount)) AS $f1])\n                           +- MultipleInput(readOrder=[0,0,0,0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[(n_regionkey = r_regionkey)], select=[l_extendedprice, l_discount, n_name, n_regionkey, r_regionkey], build=[right])\\n:- Calc(select=[l_extendedprice, l_discount, n_name, n_regionkey])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[l_extendedprice, l_discount, s_nationkey, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\\n:     :- Calc(select=[l_extendedprice, l_discount, s_nationkey])\\n:     :  +- HashJoin(joinType=[InnerJoin], where=[((l_suppkey = s_suppkey) AND (c_nationkey = s_nationkey))], select=[c_nationkey, l_suppkey, l_extendedprice, l_discount, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\\n:     :     :- Calc(select=[c_nationkey, l_suppkey, l_extendedprice, l_discount])\\n:     :     :  +- HashJoin(joinType=[InnerJoin], where=[(l_orderkey = o_orderkey)], select=[c_nationkey, o_orderkey, l_orderkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\\n:     :     :     :- [#4] Exchange(distribution=[broadcast])\\n:     :     :     +- [#5] TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount])\\n:     :     +- [#3] Exchange(distribution=[broadcast])\\n:     +- [#2] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                              :- Exchange(distribution=[broadcast])\n                              :  +- Calc(select=[r_regionkey], where=[(r_name = 'ASIA')])\n                              :     +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'ASIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n                              :- Exchange(distribution=[broadcast])\n                              :  +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                              :- Exchange(distribution=[broadcast])\n                              :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                              :- Exchange(distribution=[broadcast])\n                              :  +- Calc(select=[c_nationkey, o_orderkey])\n                              :     +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[(c_custkey = o_custkey)], select=[c_custkey, c_nationkey, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- Calc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1994-01-01..1995-01-01)])])\\n   +- [#2] TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1994-01-01), <(o_orderdate, 1995-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\\n])\n                              :        :- Exchange(distribution=[broadcast])\n                              :        :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                              :        +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1994-01-01), <(o_orderdate, 1995-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], dir0=[DESC-nulls-last])\n+- LogicalAggregate(group=[{0}], revenue=[SUM($1)])\n   +- LogicalProject(n_name=[$41], $f1=[*($22, -(1, $23))])\n      +- LogicalFilter(condition=[AND(=($0, $9), =($17, $8), =($19, $33), =($3, $36), =($36, $40), =($42, $44), =($45, _UTF-16LE'ASIA'), >=($12, 1994-01-01), <($12, +(1994-01-01, 12:INTERVAL YEAR)))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n            :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, region]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[revenue DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$0) AS revenue])\n      +- NativeExchange(orderBy=[n_name ASC])\n         +- NativeSort(orderBy=[n_name ASC])\n            +- NativeExchange(distribution=[hash[n_name]])\n               +- NativeAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])\n                  +- NativeSort(orderBy=[n_name ASC])\n                     +- NativeCalc(select=[n_name, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeFunctions=[], jvmFunctions=[])\n                        +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, n_name, n_regionkey, r_regionkey], build=[right])\n                           :- NativeCalc(select=[l_extendedprice, l_discount, n_name, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                           :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[l_extendedprice, l_discount, s_nationkey, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n                           :     :- NativeCalc(select=[l_extendedprice, l_discount, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                           :     :  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(l_suppkey, s_suppkey), =(c_nationkey, s_nationkey))], select=[c_nationkey, l_suppkey, l_extendedprice, l_discount, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                           :     :     :- NativeCalc(select=[c_nationkey, l_suppkey, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_nationkey, o_orderkey, l_orderkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                           :     :     :     :- NativeExchange(distribution=[broadcast])\n                           :     :     :     :  +- NativeCalc(select=[c_nationkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_nationkey, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                           :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                           :     :     :     :        :  +- RowDataToArrow\n                           :     :     :     :        :     +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                           :     :     :     :        +- NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1994-01-01..1995-01-01)])], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :     :           +- RowDataToArrow\n                           :     :     :     :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1994-01-01), <(o_orderdate, 1995-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                           :     :     :     +- RowDataToArrow\n                           :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount])\n                           :     :     +- NativeExchange(distribution=[broadcast])\n                           :     :        +- RowDataToArrow\n                           :     :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                           :     +- NativeExchange(distribution=[broadcast])\n                           :        +- RowDataToArrow\n                           :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                           +- NativeExchange(distribution=[broadcast])\n                              +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'ASIA')], nativeFunctions=[], jvmFunctions=[])\n                                 +- RowDataToArrow\n                                    +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'ASIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[revenue DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$0) AS revenue])\n      +- NativeExchange(orderBy=[n_name ASC])\n         +- NativeSort(orderBy=[n_name ASC])\n            +- NativeExchange(distribution=[hash[n_name]])\n               +- NativeAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])\n                  +- NativeSort(orderBy=[n_name ASC])\n                     +- NativeCalc(select=[n_name, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeFunctions=[], jvmFunctions=[])\n                        +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, n_name, n_regionkey, r_regionkey], build=[right])\n                           :- NativeCalc(select=[l_extendedprice, l_discount, n_name, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                           :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[l_extendedprice, l_discount, s_nationkey, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n                           :     :- NativeCalc(select=[l_extendedprice, l_discount, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                           :     :  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(l_suppkey, s_suppkey), =(c_nationkey, s_nationkey))], select=[c_nationkey, l_suppkey, l_extendedprice, l_discount, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                           :     :     :- NativeCalc(select=[c_nationkey, l_suppkey, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_nationkey, o_orderkey, l_orderkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                           :     :     :     :- NativeExchange(distribution=[broadcast])\n                           :     :     :     :  +- NativeCalc(select=[c_nationkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_nationkey, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                           :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                           :     :     :     :        :  +- RowDataToArrow\n                           :     :     :     :        :     +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                           :     :     :     :        +- NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1994-01-01..1995-01-01)])], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :     :           +- RowDataToArrow\n                           :     :     :     :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1994-01-01), <(o_orderdate, 1995-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                           :     :     :     +- RowDataToArrow\n                           :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount])\n                           :     :     +- NativeExchange(distribution=[broadcast])\n                           :     :        +- RowDataToArrow\n                           :     :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                           :     +- NativeExchange(distribution=[broadcast])\n                           :        +- RowDataToArrow\n                           :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                           +- NativeExchange(distribution=[broadcast])\n                              +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'ASIA')], nativeFunctions=[], jvmFunctions=[])\n                                 +- RowDataToArrow\n                                    +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'ASIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], dir0=[DESC-nulls-last])\n+- LogicalAggregate(group=[{0}], revenue=[SUM($1)])\n   +- LogicalProject(n_name=[$41], $f1=[*($22, -(1, $23))])\n      +- LogicalFilter(condition=[AND(=($0, $9), =($17, $8), =($19, $33), =($3, $36), =($36, $40), =($42, $44), =($45, _UTF-16LE'ASIA'), >=($12, 1994-01-01), <($12, +(1994-01-01, 12:INTERVAL YEAR)))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n            :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, region]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[revenue DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$0) AS revenue])\n      +- NativeExchange(orderBy=[n_name ASC])\n         +- NativeSort(orderBy=[n_name ASC])\n            +- NativeExchange(distribution=[hash[n_name]])\n               +- NativeAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])\n                  +- NativeSort(orderBy=[n_name ASC])\n                     +- NativeCalc(select=[n_name, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeFunctions=[], jvmFunctions=[])\n                        +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, n_name, n_regionkey, r_regionkey], build=[right])\n                           :- NativeCalc(select=[l_extendedprice, l_discount, n_name, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                           :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[l_extendedprice, l_discount, s_nationkey, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n                           :     :- NativeCalc(select=[l_extendedprice, l_discount, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                           :     :  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(l_suppkey, s_suppkey), =(c_nationkey, s_nationkey))], select=[c_nationkey, l_suppkey, l_extendedprice, l_discount, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                           :     :     :- NativeCalc(select=[c_nationkey, l_suppkey, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_nationkey, o_orderkey, l_orderkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                           :     :     :     :- NativeExchange(distribution=[broadcast])\n                           :     :     :     :  +- NativeCalc(select=[c_nationkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_nationkey, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                           :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                           :     :     :     :        :  +- RowDataToArrow\n                           :     :     :     :        :     +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                           :     :     :     :        +- NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1994-01-01..1995-01-01)])], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :     :           +- RowDataToArrow\n                           :     :     :     :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1994-01-01), <(o_orderdate, 1995-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                           :     :     :     +- RowDataToArrow\n                           :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount])\n                           :     :     +- NativeExchange(distribution=[broadcast])\n                           :     :        +- RowDataToArrow\n                           :     :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                           :     +- NativeExchange(distribution=[broadcast])\n                           :        +- RowDataToArrow\n                           :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                           +- NativeExchange(distribution=[broadcast])\n                              +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'ASIA')], nativeFunctions=[], jvmFunctions=[])\n                                 +- RowDataToArrow\n                                    +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'ASIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[revenue DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$0) AS revenue])\n      +- NativeExchange(orderBy=[n_name ASC])\n         +- NativeSort(orderBy=[n_name ASC])\n            +- NativeExchange(distribution=[hash[n_name]])\n               +- NativeAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])\n                  +- NativeSort(orderBy=[n_name ASC])\n                     +- NativeCalc(select=[n_name, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeFunctions=[], jvmFunctions=[])\n                        +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, n_name, n_regionkey, r_regionkey], build=[right])\n                           :- NativeCalc(select=[l_extendedprice, l_discount, n_name, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                           :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[l_extendedprice, l_discount, s_nationkey, n_nationkey, n_name, n_regionkey], isBroadcast=[true], build=[right])\n                           :     :- NativeCalc(select=[l_extendedprice, l_discount, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                           :     :  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(l_suppkey, s_suppkey), =(c_nationkey, s_nationkey))], select=[c_nationkey, l_suppkey, l_extendedprice, l_discount, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                           :     :     :- NativeCalc(select=[c_nationkey, l_suppkey, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_nationkey, o_orderkey, l_orderkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                           :     :     :     :- NativeExchange(distribution=[broadcast])\n                           :     :     :     :  +- NativeCalc(select=[c_nationkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_nationkey, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                           :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                           :     :     :     :        :  +- RowDataToArrow\n                           :     :     :     :        :     +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                           :     :     :     :        +- NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1994-01-01..1995-01-01)])], nativeFunctions=[], jvmFunctions=[])\n                           :     :     :     :           +- RowDataToArrow\n                           :     :     :     :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1994-01-01), <(o_orderdate, 1995-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                           :     :     :     +- RowDataToArrow\n                           :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount])\n                           :     :     +- NativeExchange(distribution=[broadcast])\n                           :     :        +- RowDataToArrow\n                           :     :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                           :     +- NativeExchange(distribution=[broadcast])\n                           :        +- RowDataToArrow\n                           :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                           +- NativeExchange(distribution=[broadcast])\n                              +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'ASIA')], nativeFunctions=[], jvmFunctions=[])\n                                 +- RowDataToArrow\n                                    +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'ASIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\nStreamFusion batch: 24 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "09fd2c2e8f451be322d773bf5392ea3c",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
          "sourceArrowRows": 76805,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])[79",
              "recordsIn": 0,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])[79",
              "recordsIn": 0,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])[79",
              "recordsIn": 103,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            },
            {
              "operator": "NativeAggregate(groupBy=[n_name], select=[n_name, Partial_SUM($f1) AS sum$0])[79",
              "recordsIn": 5,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$",
              "recordsIn": 2,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$",
              "recordsIn": 2,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$",
              "recordsIn": 3,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 3
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[n_name], select=[n_name, Final_SUM(sum$",
              "recordsIn": 3,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 3
            },
            {
              "operator": "NativeCalc(select=[c_nationkey, l_suppkey, l_extendedprice, l_discount], nativeF",
              "recordsIn": 0,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_nationkey, l_suppkey, l_extendedprice, l_discount], nativeF",
              "recordsIn": 9284,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 9284
            },
            {
              "operator": "NativeCalc(select=[c_nationkey, o_orderkey], nativeFunctions=[], jvmFunctions=[]",
              "recordsIn": 0,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_nationkey, o_orderkey], nativeFunctions=[], jvmFunctions=[]",
              "recordsIn": 2303,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2303
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice, l_discount, n_name, n_regionkey], nativeFunc",
              "recordsIn": 0,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice, l_discount, n_name, n_regionkey], nativeFunc",
              "recordsIn": 382,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 382
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice, l_discount, s_nationkey], nativeFunctions=[]",
              "recordsIn": 0,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice, l_discount, s_nationkey], nativeFunctions=[]",
              "recordsIn": 382,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 382
            },
            {
              "operator": "NativeCalc(select=[n_name, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeF",
              "recordsIn": 1,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[n_name, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeF",
              "recordsIn": 103,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 103
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1994",
              "recordsIn": 0,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1994",
              "recordsIn": 15000,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2303
            },
            {
              "operator": "NativeCalc(select=[r_regionkey], where=[=(r_name, 'ASIA')], nativeFunctions=[], ",
              "recordsIn": 0,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[r_regionkey], where=[=(r_name, 'ASIA')], nativeFunctions=[], ",
              "recordsIn": 5,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_cust",
              "recordsIn": 1500,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_cust",
              "recordsIn": 3803,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2303
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_na",
              "recordsIn": 2303,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_na",
              "recordsIn": 62478,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 9284
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_",
              "recordsIn": 1,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_",
              "recordsIn": 383,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 103
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[l_",
              "recordsIn": 25,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[l_",
              "recordsIn": 407,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 382
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(l_suppkey, s_suppkey), =(c_nationk",
              "recordsIn": 100,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(l_suppkey, s_suppkey), =(c_nationk",
              "recordsIn": 9384,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 382
            },
            {
              "operator": "NativeSort(orderBy=[n_name ASC])[790]",
              "recordsIn": 1,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[n_name ASC])[790]",
              "recordsIn": 103,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 103
            },
            {
              "operator": "NativeSort(orderBy=[n_name ASC])[793]",
              "recordsIn": 2,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeSort(orderBy=[n_name ASC])[793]",
              "recordsIn": 3,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 3
            },
            {
              "operator": "NativeSort(orderBy=[revenue DESC])[797]",
              "recordsIn": 5,
              "jobId": "b2b93f6547bfce0758b63cc6e0c9cb8b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            }
          ]
        }
      ],
      "resultType": "ROW<`n_name` STRING, `revenue` DECIMAL(38, 4)> NOT NULL",
      "rows": 5,
      "resultSha256": "4be9310584821abd3672dd8c5a5fe52fd24373ff9935679e2c18d2506dd3ddab",
      "stockNanos": [
        422263333
      ],
      "nativeNanos": [
        274173166
      ],
      "stockRuntimeMs": [
        224
      ],
      "nativeRuntimeMs": [
        141
      ],
      "status": "passed"
    },
    {
      "query": 6,
      "sqlSha256": "9a0f373ae3a61ce5596f4b77647988f09b3f8261661853a11db1930708771c21",
      "sql": "-- database: presto; groups: tpch; tables: lineitem\nSELECT sum(l_extendedprice * l_discount) AS revenue\nFROM\n  lineitem\nWHERE\n  l_shipdate >= DATE '1994-01-01'\n  AND l_shipdate < DATE '1994-01-01' + INTERVAL '1' YEAR\n-- AND l_discount BETWEEN decimal '0.06' - decimal '0.01' AND decimal '0.06' + decimal '0.01'\n-- we don't support the above feature\nAND l_discount BETWEEN 0.06 - 0.01 AND 0.06 + 0.01\nAND l_quantity < 24\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalAggregate(group=[{}], revenue=[SUM($0)])\n+- LogicalProject($f0=[*($5, $6)])\n   +- LogicalFilter(condition=[AND(>=($10, 1994-01-01), <($10, +(1994-01-01, 12:INTERVAL YEAR)), >=($6, -(0.06:DECIMAL(3, 2), 0.01:DECIMAL(3, 2))), <=($6, +(0.06:DECIMAL(3, 2), 0.01:DECIMAL(3, 2))), <($4, 24))])\n      +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nHashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- Exchange(distribution=[single])\n   +- LocalHashAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- Calc(select=[*(l_extendedprice, l_discount) AS $f0], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), SEARCH(l_discount, Sarg[[0.05..0.07]]), <(l_quantity, 24))])\n         +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), AND(>=(l_discount, 0.05:DECIMAL(4, 2)), <=(l_discount, 0.07:DECIMAL(4, 2)))), <(l_quantity, 24))], project=[l_quantity, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_shipdate])\n\n== Optimized Execution Plan ==\nHashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- Exchange(distribution=[single])\n   +- LocalHashAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- Calc(select=[(l_extendedprice * l_discount) AS $f0], where=[(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]) AND SEARCH(l_discount, Sarg[[0.05..0.07]]) AND (l_quantity < 24))])\n         +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), AND(>=(l_discount, 0.05:DECIMAL(4, 2)), <=(l_discount, 0.07:DECIMAL(4, 2)))), <(l_quantity, 24))], project=[l_quantity, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_shipdate])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalAggregate(group=[{}], revenue=[SUM($0)])\n+- LogicalProject($f0=[*($5, $6)])\n   +- LogicalFilter(condition=[AND(>=($10, 1994-01-01), <($10, +(1994-01-01, 12:INTERVAL YEAR)), >=($6, -(0.06:DECIMAL(3, 2), 0.01:DECIMAL(3, 2))), <=($6, +(0.06:DECIMAL(3, 2), 0.01:DECIMAL(3, 2))), <($4, 24))])\n      +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- NativeCalc(select=[*(l_extendedprice, l_discount) AS $f0], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), SEARCH(l_discount, Sarg[[0.05..0.07]]), <(l_quantity, 24))], nativeFunctions=[], jvmFunctions=[])\n         +- RowDataToArrow\n            +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), AND(>=(l_discount, 0.05:DECIMAL(4, 2)), <=(l_discount, 0.07:DECIMAL(4, 2)))), <(l_quantity, 24))], project=[l_quantity, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_shipdate])\n\n== Optimized Execution Plan ==\nNativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- NativeCalc(select=[*(l_extendedprice, l_discount) AS $f0], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), SEARCH(l_discount, Sarg[[0.05..0.07]]), <(l_quantity, 24))], nativeFunctions=[], jvmFunctions=[])\n         +- RowDataToArrow\n            +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), AND(>=(l_discount, 0.05:DECIMAL(4, 2)), <=(l_discount, 0.07:DECIMAL(4, 2)))), <(l_quantity, 24))], project=[l_quantity, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_shipdate])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalAggregate(group=[{}], revenue=[SUM($0)])\n+- LogicalProject($f0=[*($5, $6)])\n   +- LogicalFilter(condition=[AND(>=($10, 1994-01-01), <($10, +(1994-01-01, 12:INTERVAL YEAR)), >=($6, -(0.06:DECIMAL(3, 2), 0.01:DECIMAL(3, 2))), <=($6, +(0.06:DECIMAL(3, 2), 0.01:DECIMAL(3, 2))), <($4, 24))])\n      +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- NativeCalc(select=[*(l_extendedprice, l_discount) AS $f0], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), SEARCH(l_discount, Sarg[[0.05..0.07]]), <(l_quantity, 24))], nativeFunctions=[], jvmFunctions=[])\n         +- RowDataToArrow\n            +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), AND(>=(l_discount, 0.05:DECIMAL(4, 2)), <=(l_discount, 0.07:DECIMAL(4, 2)))), <(l_quantity, 24))], project=[l_quantity, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_shipdate])\n\n== Optimized Execution Plan ==\nNativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- NativeCalc(select=[*(l_extendedprice, l_discount) AS $f0], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), SEARCH(l_discount, Sarg[[0.05..0.07]]), <(l_quantity, 24))], nativeFunctions=[], jvmFunctions=[])\n         +- RowDataToArrow\n            +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), AND(>=(l_discount, 0.05:DECIMAL(4, 2)), <=(l_discount, 0.07:DECIMAL(4, 2)))), <(l_quantity, 24))], project=[l_quantity, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_quantity, l_extendedprice, l_discount, l_shipdate])\n\nStreamFusion batch: 4 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "408287c7952e6ac170872d2480b161d3",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "d225050fcb8947b581bdf17ebc9b4331",
          "sourceArrowRows": 60175,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])[835]",
              "recordsIn": 1,
              "jobId": "d225050fcb8947b581bdf17ebc9b4331",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM($f0) AS sum$0])[833]",
              "recordsIn": 0,
              "jobId": "d225050fcb8947b581bdf17ebc9b4331",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM($f0) AS sum$0])[833]",
              "recordsIn": 1191,
              "jobId": "d225050fcb8947b581bdf17ebc9b4331",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[*(l_extendedprice, l_discount) AS $f0], where=[AND(SEARCH(l_s",
              "recordsIn": 0,
              "jobId": "d225050fcb8947b581bdf17ebc9b4331",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[*(l_extendedprice, l_discount) AS $f0], where=[AND(SEARCH(l_s",
              "recordsIn": 60175,
              "jobId": "d225050fcb8947b581bdf17ebc9b4331",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1191
            }
          ]
        }
      ],
      "resultType": "ROW<`revenue` DECIMAL(38, 4)> NOT NULL",
      "rows": 1,
      "resultSha256": "1618df4be83c3b8f05deb7f16459269384a8fabf25faccfc7f883c39244dc83c",
      "stockNanos": [
        140184042
      ],
      "nativeNanos": [
        125383875
      ],
      "stockRuntimeMs": [
        105
      ],
      "nativeRuntimeMs": [
        60
      ],
      "status": "passed"
    },
    {
      "query": 7,
      "sqlSha256": "ae45f801e45c97c4a69a9156b2709b29a7373b5a3a82741bf1a4fb1415fa100b",
      "sql": "-- database: presto; groups: tpch; tables: supplier,lineitem,orders,customer,nation\nSELECT\n  supp_nation,\n  cust_nation,\n  l_year,\n  sum(volume) AS revenue\nFROM (\n       SELECT\n         n1.n_name                          AS supp_nation,\n         n2.n_name                          AS cust_nation,\n         extract(YEAR FROM l_shipdate)      AS l_year,\n         l_extendedprice * (1 - l_discount) AS volume\n       FROM\n         supplier,\n         lineitem,\n         orders,\n         customer,\n         nation n1,\n         nation n2\n       WHERE\n         s_suppkey = l_suppkey\n         AND o_orderkey = l_orderkey\n         AND c_custkey = o_custkey\n         AND s_nationkey = n1.n_nationkey\n         AND c_nationkey = n2.n_nationkey\n         AND (\n           (n1.n_name = 'FRANCE' AND n2.n_name = 'GERMANY')\n           OR (n1.n_name = 'GERMANY' AND n2.n_name = 'FRANCE')\n         )\n         AND l_shipdate BETWEEN DATE '1995-01-01' AND DATE '1996-12-31'\n     ) AS shipping\nGROUP BY\n  supp_nation,\n  cust_nation,\n  l_year\nORDER BY\n  supp_nation,\n  cust_nation,\n  l_year\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$1], sort2=[$2], dir0=[ASC-nulls-first], dir1=[ASC-nulls-first], dir2=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0, 1, 2}], revenue=[SUM($3)])\n   +- LogicalProject(supp_nation=[$41], cust_nation=[$45], l_year=[EXTRACT(FLAG(YEAR), $17)], volume=[*($12, -(1, $13))])\n      +- LogicalFilter(condition=[AND(=($0, $9), =($23, $7), =($32, $24), =($3, $40), =($35, $44), OR(AND(=($41, _UTF-16LE'FRANCE'), =($45, _UTF-16LE'GERMANY')), AND(=($41, _UTF-16LE'GERMANY'), =($45, _UTF-16LE'FRANCE'))), >=($17, 1995-01-01), <=($17, 1996-12-31))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n+- Exchange(distribution=[single])\n   +- SortAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], select=[supp_nation, cust_nation, l_year, SUM(volume) AS revenue])\n      +- Sort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n         +- Exchange(distribution=[hash[supp_nation, cust_nation, l_year]])\n            +- Calc(select=[n_name AS supp_nation, n_name0 AS cust_nation, EXTRACT(YEAR, l_shipdate) AS l_year, *(l_extendedprice, -(1, l_discount)) AS volume])\n               +- NestedLoopJoin(joinType=[InnerJoin], where=[AND(=(c_nationkey, n_nationkey), OR(AND(=(n_name, 'FRANCE'), =(n_name0, 'GERMANY')), AND(=(n_name, 'GERMANY'), =(n_name0, 'FRANCE'))))], select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name, n_nationkey, n_name0], build=[right])\n                  :- Calc(select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name])\n                  :  +- NestedLoopJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey, n_nationkey, n_name], build=[right])\n                  :     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey])\n                  :     :  +- HashJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                  :     :     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey])\n                  :     :     :  +- HashJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                  :     :     :     :- Exchange(distribution=[broadcast])\n                  :     :     :     :  +- Calc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate])\n                  :     :     :     :     +- HashJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_nationkey, l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], isBroadcast=[true], build=[left])\n                  :     :     :     :        :- Exchange(distribution=[broadcast])\n                  :     :     :     :        :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                  :     :     :     :        +- Calc(select=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], where=[SEARCH(l_shipdate, Sarg[[1995-01-01..1996-12-31]])])\n                  :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-01-01), <=(l_shipdate, 1996-12-31))], project=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate])\n                  :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey], metadata=[]]], fields=[o_orderkey, o_custkey])\n                  :     :     +- Exchange(distribution=[broadcast])\n                  :     :        +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                  :     +- Exchange(distribution=[broadcast])\n                  :        +- Calc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])])\n                  :           +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[OR(=(n_name, _UTF-16LE'FRANCE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                  +- Exchange(distribution=[broadcast])\n                     +- Calc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])])\n                        +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[OR(=(n_name, _UTF-16LE'FRANCE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n+- Exchange(distribution=[single])\n   +- SortAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], select=[supp_nation, cust_nation, l_year, SUM(volume) AS revenue])\n      +- Exchange(distribution=[forward])\n         +- Sort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n            +- Exchange(distribution=[hash[supp_nation, cust_nation, l_year]])\n               +- Calc(select=[n_name AS supp_nation, n_name0 AS cust_nation, EXTRACT(YEAR, l_shipdate) AS l_year, (l_extendedprice * (1 - l_discount)) AS volume])\n                  +- MultipleInput(readOrder=[0,0,0,0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[((c_nationkey = n_nationkey) AND (((n_name = 'FRANCE') AND (n_name0 = 'GERMANY')) OR ((n_name = 'GERMANY') AND (n_name0 = 'FRANCE'))))], select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name, n_nationkey, n_name0], build=[right])\\n:- Calc(select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name])\\n:  +- NestedLoopJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey, n_nationkey, n_name], build=[right])\\n:     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey])\\n:     :  +- HashJoin(joinType=[InnerJoin], where=[(c_custkey = o_custkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\\n:     :     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey])\\n:     :     :  +- HashJoin(joinType=[InnerJoin], where=[(o_orderkey = l_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\\n:     :     :     :- [#4] Exchange(distribution=[broadcast])\\n:     :     :     +- [#5] TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey], metadata=[]]], fields=[o_orderkey, o_custkey])\\n:     :     +- [#3] Exchange(distribution=[broadcast])\\n:     +- [#1] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                     :- Exchange(distribution=[broadcast])(reuse_id=[1])\n                     :  +- Calc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])])\n                     :     +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[OR(=(n_name, _UTF-16LE'FRANCE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                     :- Reused(reference_id=[1])\n                     :- Exchange(distribution=[broadcast])\n                     :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                     :- Exchange(distribution=[broadcast])\n                     :  +- Calc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate])\n                     :     +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[(s_suppkey = l_suppkey)], select=[s_suppkey, s_nationkey, l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], isBroadcast=[true], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- Calc(select=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], where=[SEARCH(l_shipdate, Sarg[[1995-01-01..1996-12-31]])])\\n   +- [#2] TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-01-01), <=(l_shipdate, 1996-12-31))], project=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate])\\n])\n                     :        :- Exchange(distribution=[broadcast])\n                     :        :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-01-01), <=(l_shipdate, 1996-12-31))], project=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate])\n                     +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey], metadata=[]]], fields=[o_orderkey, o_custkey])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$1], sort2=[$2], dir0=[ASC-nulls-first], dir1=[ASC-nulls-first], dir2=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0, 1, 2}], revenue=[SUM($3)])\n   +- LogicalProject(supp_nation=[$41], cust_nation=[$45], l_year=[EXTRACT(FLAG(YEAR), $17)], volume=[*($12, -(1, $13))])\n      +- LogicalFilter(condition=[AND(=($0, $9), =($23, $7), =($32, $24), =($3, $40), =($35, $44), OR(AND(=($41, _UTF-16LE'FRANCE'), =($45, _UTF-16LE'GERMANY')), AND(=($41, _UTF-16LE'GERMANY'), =($45, _UTF-16LE'FRANCE'))), >=($17, 1995-01-01), <=($17, 1996-12-31))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], select=[supp_nation, cust_nation, l_year, SUM(volume) AS revenue])\n      +- NativeExchange(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n         +- NativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n            +- NativeExchange(distribution=[hash[supp_nation, cust_nation, l_year]])\n               +- NativeCalc(select=[n_name AS supp_nation, n_name0 AS cust_nation, EXTRACT(YEAR, l_shipdate) AS l_year, *(l_extendedprice, -(1, l_discount)) AS volume], nativeFunctions=[EXTRACT], jvmFunctions=[])\n                  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(c_nationkey, n_nationkey), OR(AND(=(n_name, 'FRANCE'), =(n_name0, 'GERMANY')), AND(=(n_name, 'GERMANY'), =(n_name0, 'FRANCE'))))], select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name, n_nationkey, n_name0], build=[right])\n                     :- NativeCalc(select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])\n                     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey, n_nationkey, n_name], build=[right])\n                     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey], nativeFunctions=[], jvmFunctions=[])\n                     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                     :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                     :     :     :     :- NativeExchange(distribution=[broadcast])\n                     :     :     :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_nationkey, l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], isBroadcast=[true], build=[left])\n                     :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                     :     :     :     :        :  +- RowDataToArrow\n                     :     :     :     :        :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                     :     :     :     :        +- NativeCalc(select=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], where=[SEARCH(l_shipdate, Sarg[[1995-01-01..1996-12-31]])], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :     :           +- RowDataToArrow\n                     :     :     :     :              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-01-01), <=(l_shipdate, 1996-12-31))], project=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate])\n                     :     :     :     +- RowDataToArrow\n                     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey], metadata=[]]], fields=[o_orderkey, o_custkey])\n                     :     :     +- NativeExchange(distribution=[broadcast])\n                     :     :        +- RowDataToArrow\n                     :     :           +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                     :     +- NativeExchange(distribution=[broadcast])\n                     :        +- NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])], nativeFunctions=[], jvmFunctions=[])\n                     :           +- RowDataToArrow\n                     :              +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[OR(=(n_name, _UTF-16LE'FRANCE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                     +- NativeExchange(distribution=[broadcast])\n                        +- NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[OR(=(n_name, _UTF-16LE'FRANCE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], select=[supp_nation, cust_nation, l_year, SUM(volume) AS revenue])\n      +- NativeExchange(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n         +- NativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n            +- NativeExchange(distribution=[hash[supp_nation, cust_nation, l_year]])\n               +- NativeCalc(select=[n_name AS supp_nation, n_name0 AS cust_nation, EXTRACT(YEAR, l_shipdate) AS l_year, *(l_extendedprice, -(1, l_discount)) AS volume], nativeFunctions=[EXTRACT], jvmFunctions=[])\n                  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(c_nationkey, n_nationkey), OR(AND(=(n_name, 'FRANCE'), =(n_name0, 'GERMANY')), AND(=(n_name, 'GERMANY'), =(n_name0, 'FRANCE'))))], select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name, n_nationkey, n_name0], build=[right])\n                     :- NativeCalc(select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])\n                     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey, n_nationkey, n_name], build=[right])\n                     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey], nativeFunctions=[], jvmFunctions=[])\n                     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                     :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                     :     :     :     :- NativeExchange(distribution=[broadcast])\n                     :     :     :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_nationkey, l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], isBroadcast=[true], build=[left])\n                     :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                     :     :     :     :        :  +- RowDataToArrow\n                     :     :     :     :        :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                     :     :     :     :        +- NativeCalc(select=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], where=[SEARCH(l_shipdate, Sarg[[1995-01-01..1996-12-31]])], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :     :           +- RowDataToArrow\n                     :     :     :     :              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-01-01), <=(l_shipdate, 1996-12-31))], project=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate])\n                     :     :     :     +- RowDataToArrow\n                     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey], metadata=[]]], fields=[o_orderkey, o_custkey])\n                     :     :     +- NativeExchange(distribution=[broadcast])\n                     :     :        +- RowDataToArrow\n                     :     :           +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                     :     +- NativeExchange(distribution=[broadcast])\n                     :        +- NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])], nativeFunctions=[], jvmFunctions=[])\n                     :           +- RowDataToArrow\n                     :              +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[OR(=(n_name, _UTF-16LE'FRANCE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])(reuse_id=[1])\n                     +- NativeExchange(distribution=[broadcast])\n                        +- NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- Reused(reference_id=[1])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$1], sort2=[$2], dir0=[ASC-nulls-first], dir1=[ASC-nulls-first], dir2=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0, 1, 2}], revenue=[SUM($3)])\n   +- LogicalProject(supp_nation=[$41], cust_nation=[$45], l_year=[EXTRACT(FLAG(YEAR), $17)], volume=[*($12, -(1, $13))])\n      +- LogicalFilter(condition=[AND(=($0, $9), =($23, $7), =($32, $24), =($3, $40), =($35, $44), OR(AND(=($41, _UTF-16LE'FRANCE'), =($45, _UTF-16LE'GERMANY')), AND(=($41, _UTF-16LE'GERMANY'), =($45, _UTF-16LE'FRANCE'))), >=($17, 1995-01-01), <=($17, 1996-12-31))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], select=[supp_nation, cust_nation, l_year, SUM(volume) AS revenue])\n      +- NativeExchange(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n         +- NativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n            +- NativeExchange(distribution=[hash[supp_nation, cust_nation, l_year]])\n               +- NativeCalc(select=[n_name AS supp_nation, n_name0 AS cust_nation, EXTRACT(YEAR, l_shipdate) AS l_year, *(l_extendedprice, -(1, l_discount)) AS volume], nativeFunctions=[EXTRACT], jvmFunctions=[])\n                  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(c_nationkey, n_nationkey), OR(AND(=(n_name, 'FRANCE'), =(n_name0, 'GERMANY')), AND(=(n_name, 'GERMANY'), =(n_name0, 'FRANCE'))))], select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name, n_nationkey, n_name0], build=[right])\n                     :- NativeCalc(select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])\n                     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey, n_nationkey, n_name], build=[right])\n                     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey], nativeFunctions=[], jvmFunctions=[])\n                     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                     :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                     :     :     :     :- NativeExchange(distribution=[broadcast])\n                     :     :     :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_nationkey, l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], isBroadcast=[true], build=[left])\n                     :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                     :     :     :     :        :  +- RowDataToArrow\n                     :     :     :     :        :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                     :     :     :     :        +- NativeCalc(select=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], where=[SEARCH(l_shipdate, Sarg[[1995-01-01..1996-12-31]])], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :     :           +- RowDataToArrow\n                     :     :     :     :              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-01-01), <=(l_shipdate, 1996-12-31))], project=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate])\n                     :     :     :     +- RowDataToArrow\n                     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey], metadata=[]]], fields=[o_orderkey, o_custkey])\n                     :     :     +- NativeExchange(distribution=[broadcast])\n                     :     :        +- RowDataToArrow\n                     :     :           +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                     :     +- NativeExchange(distribution=[broadcast])\n                     :        +- NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])], nativeFunctions=[], jvmFunctions=[])\n                     :           +- RowDataToArrow\n                     :              +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[OR(=(n_name, _UTF-16LE'FRANCE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                     +- NativeExchange(distribution=[broadcast])\n                        +- NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[OR(=(n_name, _UTF-16LE'FRANCE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], select=[supp_nation, cust_nation, l_year, SUM(volume) AS revenue])\n      +- NativeExchange(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n         +- NativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])\n            +- NativeExchange(distribution=[hash[supp_nation, cust_nation, l_year]])\n               +- NativeCalc(select=[n_name AS supp_nation, n_name0 AS cust_nation, EXTRACT(YEAR, l_shipdate) AS l_year, *(l_extendedprice, -(1, l_discount)) AS volume], nativeFunctions=[EXTRACT], jvmFunctions=[])\n                  +- NativeJoin(joinType=[InnerJoin], where=[AND(=(c_nationkey, n_nationkey), OR(AND(=(n_name, 'FRANCE'), =(n_name0, 'GERMANY')), AND(=(n_name, 'GERMANY'), =(n_name0, 'FRANCE'))))], select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name, n_nationkey, n_name0], build=[right])\n                     :- NativeCalc(select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])\n                     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey, n_nationkey, n_name], build=[right])\n                     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_nationkey], nativeFunctions=[], jvmFunctions=[])\n                     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                     :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custkey], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate, o_orderkey, o_custkey], isBroadcast=[true], build=[left])\n                     :     :     :     :- NativeExchange(distribution=[broadcast])\n                     :     :     :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipdate], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_nationkey, l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], isBroadcast=[true], build=[left])\n                     :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                     :     :     :     :        :  +- RowDataToArrow\n                     :     :     :     :        :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                     :     :     :     :        +- NativeCalc(select=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], where=[SEARCH(l_shipdate, Sarg[[1995-01-01..1996-12-31]])], nativeFunctions=[], jvmFunctions=[])\n                     :     :     :     :           +- RowDataToArrow\n                     :     :     :     :              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-01-01), <=(l_shipdate, 1996-12-31))], project=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdate])\n                     :     :     :     +- RowDataToArrow\n                     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey], metadata=[]]], fields=[o_orderkey, o_custkey])\n                     :     :     +- NativeExchange(distribution=[broadcast])\n                     :     :        +- RowDataToArrow\n                     :     :           +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                     :     +- NativeExchange(distribution=[broadcast])\n                     :        +- NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])], nativeFunctions=[], jvmFunctions=[])\n                     :           +- RowDataToArrow\n                     :              +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[OR(=(n_name, _UTF-16LE'FRANCE':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])(reuse_id=[1])\n                     +- NativeExchange(distribution=[broadcast])\n                        +- NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FRANCE', _UTF-16LE'GERMANY'])], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- Reused(reference_id=[1])\n\nStreamFusion batch: 23 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "3b128c71f93408f1e35aefe55308b810",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "1287d803010213fb4a05a159fbc048fe",
          "sourceArrowRows": 76800,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], sel",
              "recordsIn": 19,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], sel",
              "recordsIn": 2,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], sel",
              "recordsIn": 2,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[false], groupBy=[supp_nation, cust_nation, l_year], sel",
              "recordsIn": 27,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name]",
              "recordsIn": 1,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice, l_discount, l_shipdate, c_nationkey, n_name]",
              "recordsIn": 1278,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1278
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdat",
              "recordsIn": 0,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_suppkey, l_extendedprice, l_discount, l_shipdat",
              "recordsIn": 60175,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 17973
            },
            {
              "operator": "NativeCalc(select=[n_name AS supp_nation, n_name0 AS cust_nation, EXTRACT(YEAR, ",
              "recordsIn": 1,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[n_name AS supp_nation, n_name0 AS cust_nation, EXTRACT(YEAR, ",
              "recordsIn": 46,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 46
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FR",
              "recordsIn": 0,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FR",
              "recordsIn": 0,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FR",
              "recordsIn": 25,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_name], where=[SEARCH(n_name, Sarg[_UTF-16LE'FR",
              "recordsIn": 25,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_natio",
              "recordsIn": 0,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, c_natio",
              "recordsIn": 17973,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 17973
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custk",
              "recordsIn": 0,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, l_shipdate, o_custk",
              "recordsIn": 17973,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 17973
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipd",
              "recordsIn": 0,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, l_shipd",
              "recordsIn": 17973,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 17973
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 25,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 25
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[s_nati",
              "recordsIn": 1500,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[s_nati",
              "recordsIn": 19473,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 17973
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_na",
              "recordsIn": 17973,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_na",
              "recordsIn": 32973,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 17973
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 17975,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1278
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 2,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_supp",
              "recordsIn": 100,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_supp",
              "recordsIn": 18073,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 17973
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(c_nationkey, n_nationkey), OR(AND(",
              "recordsIn": 1280,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 46
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(c_nationkey, n_nationkey), OR(AND(",
              "recordsIn": 3,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])[1040]",
              "recordsIn": 19,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 19
            },
            {
              "operator": "NativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])[1040]",
              "recordsIn": 27,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 27
            },
            {
              "operator": "NativeSort(orderBy=[supp_nation ASC, cust_nation ASC, l_year ASC])[1044]",
              "recordsIn": 4,
              "jobId": "1287d803010213fb4a05a159fbc048fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 4
            }
          ]
        }
      ],
      "resultType": "ROW<`supp_nation` STRING, `cust_nation` STRING, `l_year` BIGINT, `revenue` DECIMAL(38, 4)> NOT NULL",
      "rows": 4,
      "resultSha256": "7210ea9d6979246007769e271f182a35d8ad1b45c5542e31e9b648b858c05599",
      "stockNanos": [
        428772916
      ],
      "nativeNanos": [
        270431500
      ],
      "stockRuntimeMs": [
        239
      ],
      "nativeRuntimeMs": [
        150
      ],
      "status": "passed"
    },
    {
      "query": 8,
      "sqlSha256": "32f7a9d5fa9a84fecdc2c25f2acf33491d1cf8e176eaca5c2d48bcf5a8c41c31",
      "sql": "-- database: presto; groups: tpch, big_query; tables: part,supplier,lineitem,orders,customer,nation\nSELECT\n  o_year,\n  sum(CASE\n      WHEN nation = 'BRAZIL'\n        THEN volume\n      ELSE 0\n      END) / sum(volume) AS mkt_share\nFROM (\n       SELECT\n         extract(YEAR FROM o_orderdate)     AS o_year,\n         l_extendedprice * (1 - l_discount) AS volume,\n         n2.n_name                          AS nation\n       FROM\n         part,\n         supplier,\n         lineitem,\n         orders,\n         customer,\n         nation n1,\n         nation n2,\n         region\n       WHERE\n         p_partkey = l_partkey\n         AND s_suppkey = l_suppkey\n         AND l_orderkey = o_orderkey\n         AND o_custkey = c_custkey\n         AND c_nationkey = n1.n_nationkey\n         AND n1.n_regionkey = r_regionkey\n         AND r_name = 'AMERICA'\n         AND s_nationkey = n2.n_nationkey\n         AND o_orderdate BETWEEN DATE '1995-01-01' AND DATE '1996-12-31'\n         AND p_type = 'ECONOMY ANODIZED STEEL'\n     ) AS all_nations\nGROUP BY\n  o_year\nORDER BY\n  o_year\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalProject(o_year=[$0], mkt_share=[/($1, $2)])\n   +- LogicalAggregate(group=[{0}], agg#0=[SUM($1)], agg#1=[SUM($2)])\n      +- LogicalProject(o_year=[$0], $f1=[CASE(=($2, _UTF-16LE'BRAZIL'), $1, 0:DECIMAL(32, 4))], volume=[$1])\n         +- LogicalProject(o_year=[EXTRACT(FLAG(YEAR), $36)], volume=[*($21, -(1, $22))], nation=[$54])\n            +- LogicalFilter(condition=[AND(=($0, $17), =($9, $18), =($16, $32), =($33, $41), =($44, $49), =($51, $57), =($58, _UTF-16LE'AMERICA'), =($12, $53), >=($36, 1995-01-01), <=($36, 1996-12-31), =($4, _UTF-16LE'ECONOMY ANODIZED STEEL'))])\n               +- LogicalJoin(condition=[true], joinType=[inner])\n                  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, part]])\n                  :  :  :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n                  :  :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n                  :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n                  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n                  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n                  :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n                  +- LogicalTableScan(table=[[default_catalog, default_database, region]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[o_year ASC])\n+- Exchange(distribution=[single])\n   +- Calc(select=[o_year, /($f1, $f2) AS mkt_share])\n      +- SortAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$0) AS $f1, Final_SUM(sum$1) AS $f2])\n         +- Sort(orderBy=[o_year ASC])\n            +- Exchange(distribution=[hash[o_year]])\n               +- LocalSortAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Partial_SUM(volume) AS sum$1])\n                  +- Sort(orderBy=[o_year ASC])\n                     +- Calc(select=[EXTRACT(YEAR, o_orderdate) AS o_year, CASE(=(n_name0, 'BRAZIL'), *(l_extendedprice, -(1, l_discount)), 0) AS $f1, *(l_extendedprice, -(1, l_discount)) AS volume])\n                        +- NestedLoopJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name0, r_regionkey], build=[right])\n                           :- Calc(select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name AS n_name0])\n                           :  +- HashJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                           :     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey])\n                           :     :  +- HashJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                           :     :     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey])\n                           :     :     :  +- HashJoin(joinType=[InnerJoin], where=[=(o_custkey, c_custkey)], select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                           :     :     :     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate])\n                           :     :     :     :  +- HashJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, o_orderkey, o_custkey, o_orderdate], isBroadcast=[true], build=[left])\n                           :     :     :     :     :- Exchange(distribution=[broadcast])\n                           :     :     :     :     :  +- Calc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount])\n                           :     :     :     :     :     +- HashJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), =(s_suppkey, l_suppkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                           :     :     :     :     :        :- Exchange(distribution=[broadcast])\n                           :     :     :     :     :        :  +- NestedLoopJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[right])\n                           :     :     :     :     :        :     :- Calc(select=[p_partkey], where=[=(p_type, 'ECONOMY ANODIZED STEEL')])\n                           :     :     :     :     :        :     :  +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[=(p_type, _UTF-16LE'ECONOMY ANODIZED STEEL':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n                           :     :     :     :     :        :     +- Exchange(distribution=[broadcast])\n                           :     :     :     :     :        :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                           :     :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount])\n                           :     :     :     :     +- Calc(select=[o_orderkey, o_custkey, o_orderdate], where=[SEARCH(o_orderdate, Sarg[[1995-01-01..1996-12-31]])])\n                           :     :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1995-01-01), <=(o_orderdate, 1996-12-31))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                           :     :     :     +- Exchange(distribution=[broadcast])\n                           :     :     :        +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                           :     :     +- Exchange(distribution=[broadcast])\n                           :     :        +- Calc(select=[n_nationkey, n_regionkey])\n                           :     :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                           :     +- Exchange(distribution=[broadcast])\n                           :        +- Calc(select=[n_nationkey, n_name])\n                           :           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                           +- Exchange(distribution=[broadcast])\n                              +- Calc(select=[r_regionkey], where=[=(r_name, 'AMERICA')])\n                                 +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'AMERICA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\n== Optimized Execution Plan ==\nSort(orderBy=[o_year ASC])\n+- Exchange(distribution=[single])\n   +- Calc(select=[o_year, ($f1 / $f2) AS mkt_share])\n      +- SortAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$0) AS $f1, Final_SUM(sum$1) AS $f2])\n         +- Exchange(distribution=[forward])\n            +- Sort(orderBy=[o_year ASC])\n               +- Exchange(distribution=[hash[o_year]])\n                  +- LocalSortAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Partial_SUM(volume) AS sum$1])\n                     +- Exchange(distribution=[forward])\n                        +- Sort(orderBy=[o_year ASC])\n                           +- Calc(select=[EXTRACT(YEAR, o_orderdate) AS o_year, CASE((n_name0 = 'BRAZIL'), (l_extendedprice * (1 - l_discount)), 0) AS $f1, (l_extendedprice * (1 - l_discount)) AS volume])\n                              +- MultipleInput(readOrder=[0,0,0,0,0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[(n_regionkey = r_regionkey)], select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name0, r_regionkey], build=[right])\\n:- Calc(select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name AS n_name0])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey, n_nationkey, n_name], isBroadcast=[true], build=[right])\\n:     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey])\\n:     :  +- HashJoin(joinType=[InnerJoin], where=[(c_nationkey = n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\\n:     :     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey])\\n:     :     :  +- HashJoin(joinType=[InnerJoin], where=[(o_custkey = c_custkey)], select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\\n:     :     :     :- Calc(select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate])\\n:     :     :     :  +- HashJoin(joinType=[InnerJoin], where=[(l_orderkey = o_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, o_orderkey, o_custkey, o_orderdate], isBroadcast=[true], build=[left])\\n:     :     :     :     :- [#5] Exchange(distribution=[broadcast])\\n:     :     :     :     +- Calc(select=[o_orderkey, o_custkey, o_orderdate], where=[SEARCH(o_orderdate, Sarg[[1995-01-01..1996-12-31]])])\\n:     :     :     :        +- [#6] TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1995-01-01), <=(o_orderdate, 1996-12-31))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\\n:     :     :     +- [#4] Exchange(distribution=[broadcast])\\n:     :     +- [#3] Exchange(distribution=[broadcast])\\n:     +- [#2] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                                 :- Exchange(distribution=[broadcast])\n                                 :  +- Calc(select=[r_regionkey], where=[(r_name = 'AMERICA')])\n                                 :     +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'AMERICA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n                                 :- Exchange(distribution=[broadcast])\n                                 :  +- Calc(select=[n_nationkey, n_name])\n                                 :     +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])(reuse_id=[1])\n                                 :- Exchange(distribution=[broadcast])\n                                 :  +- Calc(select=[n_nationkey, n_regionkey])\n                                 :     +- Reused(reference_id=[1])\n                                 :- Exchange(distribution=[broadcast])\n                                 :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                                 :- Exchange(distribution=[broadcast])\n                                 :  +- Calc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount])\n                                 :     +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[((p_partkey = l_partkey) AND (s_suppkey = l_suppkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- [#2] TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount])\\n])\n                                 :        :- Exchange(distribution=[broadcast])\n                                 :        :  +- MultipleInput(readOrder=[0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[right])\\n:- Calc(select=[p_partkey], where=[(p_type = 'ECONOMY ANODIZED STEEL')])\\n:  +- [#2] TableSourceScan(table=[[default_catalog, default_database, part, filter=[=(p_type, _UTF-16LE'ECONOMY ANODIZED STEEL':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                                 :        :     :- Exchange(distribution=[broadcast])\n                                 :        :     :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                                 :        :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[=(p_type, _UTF-16LE'ECONOMY ANODIZED STEEL':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n                                 :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount])\n                                 +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1995-01-01), <=(o_orderdate, 1996-12-31))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalProject(o_year=[$0], mkt_share=[/($1, $2)])\n   +- LogicalAggregate(group=[{0}], agg#0=[SUM($1)], agg#1=[SUM($2)])\n      +- LogicalProject(o_year=[$0], $f1=[CASE(=($2, _UTF-16LE'BRAZIL'), $1, 0:DECIMAL(32, 4))], volume=[$1])\n         +- LogicalProject(o_year=[EXTRACT(FLAG(YEAR), $36)], volume=[*($21, -(1, $22))], nation=[$54])\n            +- LogicalFilter(condition=[AND(=($0, $17), =($9, $18), =($16, $32), =($33, $41), =($44, $49), =($51, $57), =($58, _UTF-16LE'AMERICA'), =($12, $53), >=($36, 1995-01-01), <=($36, 1996-12-31), =($4, _UTF-16LE'ECONOMY ANODIZED STEEL'))])\n               +- LogicalJoin(condition=[true], joinType=[inner])\n                  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, part]])\n                  :  :  :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n                  :  :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n                  :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n                  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n                  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n                  :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n                  +- LogicalTableScan(table=[[default_catalog, default_database, region]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[o_year ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[o_year, /($f1, $f2) AS mkt_share], nativeFunctions=[], jvmFunctions=[])\n      +- NativeAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$0) AS $f1, Final_SUM(sum$1) AS $f2])\n         +- NativeExchange(orderBy=[o_year ASC])\n            +- NativeSort(orderBy=[o_year ASC])\n               +- NativeExchange(distribution=[hash[o_year]])\n                  +- NativeAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Partial_SUM(volume) AS sum$1])\n                     +- NativeSort(orderBy=[o_year ASC])\n                        +- NativeCalc(select=[EXTRACT(YEAR, o_orderdate) AS o_year, CASE(=(n_name0, 'BRAZIL'), *(l_extendedprice, -(1, l_discount)), 0) AS $f1, *(l_extendedprice, -(1, l_discount)) AS volume], nativeFunctions=[EXTRACT], jvmFunctions=[])\n                           +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name0, r_regionkey], build=[right])\n                              :- NativeCalc(select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name AS n_name0], nativeFunctions=[], jvmFunctions=[])\n                              :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                              :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                              :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_custkey, c_custkey)], select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                              :     :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, o_orderkey, o_custkey, o_orderdate], isBroadcast=[true], build=[left])\n                              :     :     :     :     :- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), =(s_suppkey, l_suppkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                              :     :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :        :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[right])\n                              :     :     :     :     :        :     :- NativeCalc(select=[p_partkey], where=[=(p_type, 'ECONOMY ANODIZED STEEL')], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :     :        :     :  +- RowDataToArrow\n                              :     :     :     :     :        :     :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[=(p_type, _UTF-16LE'ECONOMY ANODIZED STEEL':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n                              :     :     :     :     :        :     +- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :        :        +- RowDataToArrow\n                              :     :     :     :     :        :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                              :     :     :     :     :        +- RowDataToArrow\n                              :     :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount])\n                              :     :     :     :     +- NativeCalc(select=[o_orderkey, o_custkey, o_orderdate], where=[SEARCH(o_orderdate, Sarg[[1995-01-01..1996-12-31]])], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :        +- RowDataToArrow\n                              :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1995-01-01), <=(o_orderdate, 1996-12-31))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                              :     :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :     :        +- RowDataToArrow\n                              :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                              :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :        +- NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :           +- RowDataToArrow\n                              :     :              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                              :     +- NativeExchange(distribution=[broadcast])\n                              :        +- NativeCalc(select=[n_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])\n                              :           +- RowDataToArrow\n                              :              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'AMERICA')], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'AMERICA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[o_year ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[o_year, /($f1, $f2) AS mkt_share], nativeFunctions=[], jvmFunctions=[])\n      +- NativeAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$0) AS $f1, Final_SUM(sum$1) AS $f2])\n         +- NativeExchange(orderBy=[o_year ASC])\n            +- NativeSort(orderBy=[o_year ASC])\n               +- NativeExchange(distribution=[hash[o_year]])\n                  +- NativeAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Partial_SUM(volume) AS sum$1])\n                     +- NativeSort(orderBy=[o_year ASC])\n                        +- NativeCalc(select=[EXTRACT(YEAR, o_orderdate) AS o_year, CASE(=(n_name0, 'BRAZIL'), *(l_extendedprice, -(1, l_discount)), 0) AS $f1, *(l_extendedprice, -(1, l_discount)) AS volume], nativeFunctions=[EXTRACT], jvmFunctions=[])\n                           +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name0, r_regionkey], build=[right])\n                              :- NativeCalc(select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name AS n_name0], nativeFunctions=[], jvmFunctions=[])\n                              :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                              :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                              :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_custkey, c_custkey)], select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                              :     :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, o_orderkey, o_custkey, o_orderdate], isBroadcast=[true], build=[left])\n                              :     :     :     :     :- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), =(s_suppkey, l_suppkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                              :     :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :        :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[right])\n                              :     :     :     :     :        :     :- NativeCalc(select=[p_partkey], where=[=(p_type, 'ECONOMY ANODIZED STEEL')], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :     :        :     :  +- RowDataToArrow\n                              :     :     :     :     :        :     :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[=(p_type, _UTF-16LE'ECONOMY ANODIZED STEEL':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n                              :     :     :     :     :        :     +- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :        :        +- RowDataToArrow\n                              :     :     :     :     :        :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                              :     :     :     :     :        +- RowDataToArrow\n                              :     :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount])\n                              :     :     :     :     +- NativeCalc(select=[o_orderkey, o_custkey, o_orderdate], where=[SEARCH(o_orderdate, Sarg[[1995-01-01..1996-12-31]])], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :        +- RowDataToArrow\n                              :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1995-01-01), <=(o_orderdate, 1996-12-31))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                              :     :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :     :        +- RowDataToArrow\n                              :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                              :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :        +- NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :           +- RowDataToArrow\n                              :     :              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])(reuse_id=[1])\n                              :     +- NativeExchange(distribution=[broadcast])\n                              :        +- NativeCalc(select=[n_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])\n                              :           +- RowDataToArrow\n                              :              +- Reused(reference_id=[1])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'AMERICA')], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'AMERICA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalProject(o_year=[$0], mkt_share=[/($1, $2)])\n   +- LogicalAggregate(group=[{0}], agg#0=[SUM($1)], agg#1=[SUM($2)])\n      +- LogicalProject(o_year=[$0], $f1=[CASE(=($2, _UTF-16LE'BRAZIL'), $1, 0:DECIMAL(32, 4))], volume=[$1])\n         +- LogicalProject(o_year=[EXTRACT(FLAG(YEAR), $36)], volume=[*($21, -(1, $22))], nation=[$54])\n            +- LogicalFilter(condition=[AND(=($0, $17), =($9, $18), =($16, $32), =($33, $41), =($44, $49), =($51, $57), =($58, _UTF-16LE'AMERICA'), =($12, $53), >=($36, 1995-01-01), <=($36, 1996-12-31), =($4, _UTF-16LE'ECONOMY ANODIZED STEEL'))])\n               +- LogicalJoin(condition=[true], joinType=[inner])\n                  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n                  :  :  :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, part]])\n                  :  :  :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n                  :  :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n                  :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n                  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n                  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n                  :  +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n                  +- LogicalTableScan(table=[[default_catalog, default_database, region]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[o_year ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[o_year, /($f1, $f2) AS mkt_share], nativeFunctions=[], jvmFunctions=[])\n      +- NativeAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$0) AS $f1, Final_SUM(sum$1) AS $f2])\n         +- NativeExchange(orderBy=[o_year ASC])\n            +- NativeSort(orderBy=[o_year ASC])\n               +- NativeExchange(distribution=[hash[o_year]])\n                  +- NativeAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Partial_SUM(volume) AS sum$1])\n                     +- NativeSort(orderBy=[o_year ASC])\n                        +- NativeCalc(select=[EXTRACT(YEAR, o_orderdate) AS o_year, CASE(=(n_name0, 'BRAZIL'), *(l_extendedprice, -(1, l_discount)), 0) AS $f1, *(l_extendedprice, -(1, l_discount)) AS volume], nativeFunctions=[EXTRACT], jvmFunctions=[])\n                           +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name0, r_regionkey], build=[right])\n                              :- NativeCalc(select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name AS n_name0], nativeFunctions=[], jvmFunctions=[])\n                              :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                              :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                              :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_custkey, c_custkey)], select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                              :     :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, o_orderkey, o_custkey, o_orderdate], isBroadcast=[true], build=[left])\n                              :     :     :     :     :- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), =(s_suppkey, l_suppkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                              :     :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :        :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[right])\n                              :     :     :     :     :        :     :- NativeCalc(select=[p_partkey], where=[=(p_type, 'ECONOMY ANODIZED STEEL')], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :     :        :     :  +- RowDataToArrow\n                              :     :     :     :     :        :     :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[=(p_type, _UTF-16LE'ECONOMY ANODIZED STEEL':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n                              :     :     :     :     :        :     +- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :        :        +- RowDataToArrow\n                              :     :     :     :     :        :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                              :     :     :     :     :        +- RowDataToArrow\n                              :     :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount])\n                              :     :     :     :     +- NativeCalc(select=[o_orderkey, o_custkey, o_orderdate], where=[SEARCH(o_orderdate, Sarg[[1995-01-01..1996-12-31]])], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :        +- RowDataToArrow\n                              :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1995-01-01), <=(o_orderdate, 1996-12-31))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                              :     :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :     :        +- RowDataToArrow\n                              :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                              :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :        +- NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :           +- RowDataToArrow\n                              :     :              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                              :     +- NativeExchange(distribution=[broadcast])\n                              :        +- NativeCalc(select=[n_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])\n                              :           +- RowDataToArrow\n                              :              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'AMERICA')], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'AMERICA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[o_year ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[o_year, /($f1, $f2) AS mkt_share], nativeFunctions=[], jvmFunctions=[])\n      +- NativeAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$0) AS $f1, Final_SUM(sum$1) AS $f2])\n         +- NativeExchange(orderBy=[o_year ASC])\n            +- NativeSort(orderBy=[o_year ASC])\n               +- NativeExchange(distribution=[hash[o_year]])\n                  +- NativeAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Partial_SUM(volume) AS sum$1])\n                     +- NativeSort(orderBy=[o_year ASC])\n                        +- NativeCalc(select=[EXTRACT(YEAR, o_orderdate) AS o_year, CASE(=(n_name0, 'BRAZIL'), *(l_extendedprice, -(1, l_discount)), 0) AS $f1, *(l_extendedprice, -(1, l_discount)) AS volume], nativeFunctions=[EXTRACT], jvmFunctions=[])\n                           +- NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name0, r_regionkey], build=[right])\n                              :- NativeCalc(select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name AS n_name0], nativeFunctions=[], jvmFunctions=[])\n                              :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                              :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey, n_nationkey, n_regionkey], isBroadcast=[true], build=[right])\n                              :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nationkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_custkey, c_custkey)], select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate, c_custkey, c_nationkey], isBroadcast=[true], build=[right])\n                              :     :     :     :- NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[s_nationkey, l_orderkey, l_extendedprice, l_discount, o_orderkey, o_custkey, o_orderdate], isBroadcast=[true], build=[left])\n                              :     :     :     :     :- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :     :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), =(s_suppkey, l_suppkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                              :     :     :     :     :        :- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :        :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[right])\n                              :     :     :     :     :        :     :- NativeCalc(select=[p_partkey], where=[=(p_type, 'ECONOMY ANODIZED STEEL')], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :     :        :     :  +- RowDataToArrow\n                              :     :     :     :     :        :     :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[=(p_type, _UTF-16LE'ECONOMY ANODIZED STEEL':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n                              :     :     :     :     :        :     +- NativeExchange(distribution=[broadcast])\n                              :     :     :     :     :        :        +- RowDataToArrow\n                              :     :     :     :     :        :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                              :     :     :     :     :        +- RowDataToArrow\n                              :     :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_extendedprice, l_discount])\n                              :     :     :     :     +- NativeCalc(select=[o_orderkey, o_custkey, o_orderdate], where=[SEARCH(o_orderdate, Sarg[[1995-01-01..1996-12-31]])], nativeFunctions=[], jvmFunctions=[])\n                              :     :     :     :        +- RowDataToArrow\n                              :     :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1995-01-01), <=(o_orderdate, 1996-12-31))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                              :     :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :     :        +- RowDataToArrow\n                              :     :     :           +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_nationkey], metadata=[]]], fields=[c_custkey, c_nationkey])\n                              :     :     +- NativeExchange(distribution=[broadcast])\n                              :     :        +- NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[])\n                              :     :           +- RowDataToArrow\n                              :     :              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name, n_regionkey], metadata=[]]], fields=[n_nationkey, n_name, n_regionkey])(reuse_id=[1])\n                              :     +- NativeExchange(distribution=[broadcast])\n                              :        +- NativeCalc(select=[n_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])\n                              :           +- RowDataToArrow\n                              :              +- Reused(reference_id=[1])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[r_regionkey], where=[=(r_name, 'AMERICA')], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, region, filter=[=(r_name, _UTF-16LE'AMERICA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[r_regionkey, r_name], metadata=[]]], fields=[r_regionkey, r_name])\n\nStreamFusion batch: 33 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "7278170c6b2915bffb0e37af7139e8a7",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "4181410d79c3b8d821140ca0f426ca78",
          "sourceArrowRows": 78805,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Par",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Par",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Par",
              "recordsIn": 2,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(groupBy=[o_year], select=[o_year, Partial_SUM($f1) AS sum$0, Par",
              "recordsIn": 29,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$",
              "recordsIn": 2,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[o_year], select=[o_year, Final_SUM(sum$",
              "recordsIn": 2,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeCalc(select=[EXTRACT(YEAR, o_orderdate) AS o_year, CASE(=(n_name0, 'BRAZIL",
              "recordsIn": 1,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[EXTRACT(YEAR, o_orderdate) AS o_year, CASE(=(n_name0, 'BRAZIL",
              "recordsIn": 29,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 29
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice, l_discount, o_orderdate, n_regionkey, n_name",
              "recordsIn": 116,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 116
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])[13",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_name], nativeFunctions=[], jvmFunctions=[])[13",
              "recordsIn": 25,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 25
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_nationkey, n_regionkey], nativeFunctions=[], jvmFunctions=[",
              "recordsIn": 25,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 25
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey, o_orderdate], where=[SEARCH(o_orderdat",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey, o_orderdate], where=[SEARCH(o_orderdat",
              "recordsIn": 15000,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 4501
            },
            {
              "operator": "NativeCalc(select=[o_year, /($f1, $f2) AS mkt_share], nativeFunctions=[], jvmFun",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_year, /($f1, $f2) AS mkt_share], nativeFunctions=[], jvmFun",
              "recordsIn": 2,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeCalc(select=[p_partkey], where=[=(p_type, 'ECONOMY ANODIZED STEEL')], nati",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey], where=[=(p_type, 'ECONOMY ANODIZED STEEL')], nati",
              "recordsIn": 2000,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 12
            },
            {
              "operator": "NativeCalc(select=[r_regionkey], where=[=(r_name, 'AMERICA')], nativeFunctions=[",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[r_regionkey], where=[=(r_name, 'AMERICA')], nativeFunctions=[",
              "recordsIn": 5,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderd",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_custkey, o_orderd",
              "recordsIn": 116,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 116
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nati",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, c_nati",
              "recordsIn": 116,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 116
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regi",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_extendedprice, l_discount, o_orderdate, n_regi",
              "recordsIn": 116,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 116
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount], native",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_orderkey, l_extendedprice, l_discount], native",
              "recordsIn": 366,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 366
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 25,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 25
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 141,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 116
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 25,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[s_na",
              "recordsIn": 366,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[s_na",
              "recordsIn": 4867,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 116
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_",
              "recordsIn": 1,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(n_regionkey, r_regionkey)], select=[l_",
              "recordsIn": 117,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 29
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_custkey, c_custkey)], select=[s_nati",
              "recordsIn": 1500,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_custkey, c_custkey)], select=[s_nati",
              "recordsIn": 1616,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 116
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 141,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 116
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 25,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), =(s_suppkey",
              "recordsIn": 1201,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), =(s_suppkey",
              "recordsIn": 61376,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 366
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_n",
              "recordsIn": 100,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_n",
              "recordsIn": 112,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1200
            },
            {
              "operator": "NativeSort(orderBy=[o_year ASC])[1336]",
              "recordsIn": 1,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[o_year ASC])[1336]",
              "recordsIn": 29,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 29
            },
            {
              "operator": "NativeSort(orderBy=[o_year ASC])[1339]",
              "recordsIn": 0,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[o_year ASC])[1339]",
              "recordsIn": 2,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeSort(orderBy=[o_year ASC])[1345]",
              "recordsIn": 2,
              "jobId": "4181410d79c3b8d821140ca0f426ca78",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            }
          ]
        }
      ],
      "resultType": "ROW<`o_year` BIGINT, `mkt_share` DECIMAL(38, 6)> NOT NULL",
      "rows": 2,
      "resultSha256": "2b88fd12aa466431ccbcc107c0d21d207fb65edfc559d7430812843ebf98283d",
      "stockNanos": [
        459511583
      ],
      "nativeNanos": [
        273728792
      ],
      "stockRuntimeMs": [
        306
      ],
      "nativeRuntimeMs": [
        141
      ],
      "status": "passed"
    },
    {
      "query": 9,
      "sqlSha256": "0adb679bcda7561efec2c45c9bbc3de42549f21c3aee299cf6ef47f9e58662f0",
      "sql": "-- database: presto; groups: tpch, big_query; tables: part,supplier,lineitem,partsupp,orders,nation\nSELECT\n  nation,\n  o_year,\n  sum(amount) AS sum_profit\nFROM (\n       SELECT\n         n_name                                                          AS nation,\n         extract(YEAR FROM o_orderdate)                                  AS o_year,\n         l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity AS amount\n       FROM\n         part,\n         supplier,\n         lineitem,\n         partsupp,\n         orders,\n         nation\n       WHERE\n         s_suppkey = l_suppkey\n         AND ps_suppkey = l_suppkey\n         AND ps_partkey = l_partkey\n         AND p_partkey = l_partkey\n         AND o_orderkey = l_orderkey\n         AND s_nationkey = n_nationkey\n         AND p_name LIKE '%green%'\n     ) AS profit\nGROUP BY\n  nation,\n  o_year\nORDER BY\n  nation,\n  o_year DESC\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$1], dir0=[ASC-nulls-first], dir1=[DESC-nulls-last])\n+- LogicalAggregate(group=[{0, 1}], sum_profit=[SUM($2)])\n   +- LogicalProject(nation=[$47], o_year=[EXTRACT(FLAG(YEAR), $41)], amount=[-(*($21, -(1, $22)), *($35, $20))])\n      +- LogicalFilter(condition=[AND(=($9, $18), =($33, $18), =($32, $17), =($0, $17), =($37, $16), =($12, $46), LIKE($1, _UTF-16LE'%green%'))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, part]])\n            :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[nation ASC, o_year DESC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[nation, o_year], select=[nation, o_year, Final_SUM(sum$0) AS sum_profit])\n      +- Exchange(distribution=[hash[nation, o_year]])\n         +- LocalHashAggregate(groupBy=[nation, o_year], select=[nation, o_year, Partial_SUM(amount) AS sum$0])\n            +- Calc(select=[n_name AS nation, EXTRACT(YEAR, o_orderdate) AS o_year, -(*(l_extendedprice, -(1, l_discount)), *(ps_supplycost, l_quantity)) AS amount])\n               +- HashJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                  :- Calc(select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate])\n                  :  +- HashJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderkey, o_orderdate], isBroadcast=[true], build=[left])\n                  :     :- Exchange(distribution=[broadcast])\n                  :     :  +- Calc(select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost])\n                  :     :     +- HashJoin(joinType=[InnerJoin], where=[AND(=(ps_suppkey, l_suppkey), =(ps_partkey, l_partkey))], select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n                  :     :        :- Exchange(distribution=[broadcast])\n                  :     :        :  +- Calc(select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount])\n                  :     :        :     +- HashJoin(joinType=[InnerJoin], where=[AND(=(s_suppkey, l_suppkey), =(p_partkey, l_partkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                  :     :        :        :- Exchange(distribution=[broadcast])\n                  :     :        :        :  +- NestedLoopJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[left])\n                  :     :        :        :     :- Exchange(distribution=[broadcast])\n                  :     :        :        :     :  +- Calc(select=[p_partkey], where=[LIKE(p_name, '%green%')])\n                  :     :        :        :     :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'%green%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n                  :     :        :        :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                  :     :        :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount])\n                  :     :        +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                  :     +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_orderdate])\n                  +- Exchange(distribution=[broadcast])\n                     +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nSort(orderBy=[nation ASC, o_year DESC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[nation, o_year], select=[nation, o_year, Final_SUM(sum$0) AS sum_profit])\n      +- Exchange(distribution=[hash[nation, o_year]])\n         +- LocalHashAggregate(groupBy=[nation, o_year], select=[nation, o_year, Partial_SUM(amount) AS sum$0])\n            +- Calc(select=[n_name AS nation, EXTRACT(YEAR, o_orderdate) AS o_year, ((l_extendedprice * (1 - l_discount)) - (ps_supplycost * l_quantity)) AS amount])\n               +- MultipleInput(readOrder=[0,0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate, n_nationkey, n_name], isBroadcast=[true], build=[right])\\n:- Calc(select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(o_orderkey = l_orderkey)], select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderkey, o_orderdate], isBroadcast=[true], build=[left])\\n:     :- [#2] Exchange(distribution=[broadcast])\\n:     +- [#3] TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_orderdate])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                  :- Exchange(distribution=[broadcast])\n                  :  +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                  :- Exchange(distribution=[broadcast])\n                  :  +- Calc(select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost])\n                  :     +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[((ps_suppkey = l_suppkey) AND (ps_partkey = l_partkey))], select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- [#2] TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\\n])\n                  :        :- Exchange(distribution=[broadcast])\n                  :        :  +- Calc(select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount])\n                  :        :     +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[((s_suppkey = l_suppkey) AND (p_partkey = l_partkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- [#2] TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount])\\n])\n                  :        :        :- Exchange(distribution=[broadcast])\n                  :        :        :  +- MultipleInput(readOrder=[0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- [#2] TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\\n])\n                  :        :        :     :- Exchange(distribution=[broadcast])\n                  :        :        :     :  +- Calc(select=[p_partkey], where=[LIKE(p_name, '%green%')])\n                  :        :        :     :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'%green%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n                  :        :        :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                  :        :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount])\n                  :        +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                  +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_orderdate])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$1], dir0=[ASC-nulls-first], dir1=[DESC-nulls-last])\n+- LogicalAggregate(group=[{0, 1}], sum_profit=[SUM($2)])\n   +- LogicalProject(nation=[$47], o_year=[EXTRACT(FLAG(YEAR), $41)], amount=[-(*($21, -(1, $22)), *($35, $20))])\n      +- LogicalFilter(condition=[AND(=($9, $18), =($33, $18), =($32, $17), =($0, $17), =($37, $16), =($12, $46), LIKE($1, _UTF-16LE'%green%'))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, part]])\n            :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[nation ASC, o_year DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[nation, o_year], select=[nation, o_year, Final_SUM(sum$0) AS sum_profit])\n      +- NativeExchange(distribution=[hash[nation, o_year]])\n         +- NativeAggregate(groupBy=[nation, o_year], select=[nation, o_year, Partial_SUM(amount) AS sum$0])\n            +- NativeCalc(select=[n_name AS nation, EXTRACT(YEAR, o_orderdate) AS o_year, -(*(l_extendedprice, -(1, l_discount)), *(ps_supplycost, l_quantity)) AS amount], nativeFunctions=[EXTRACT], jvmFunctions=[])\n               +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                  :- NativeCalc(select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                  :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderkey, o_orderdate], isBroadcast=[true], build=[left])\n                  :     :- NativeExchange(distribution=[broadcast])\n                  :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                  :     :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_suppkey, l_suppkey), =(ps_partkey, l_partkey))], select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n                  :     :        :- NativeExchange(distribution=[broadcast])\n                  :     :        :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                  :     :        :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(s_suppkey, l_suppkey), =(p_partkey, l_partkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                  :     :        :        :- NativeExchange(distribution=[broadcast])\n                  :     :        :        :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[left])\n                  :     :        :        :     :- NativeExchange(distribution=[broadcast])\n                  :     :        :        :     :  +- NativeCalc(select=[p_partkey], where=[LIKE(p_name, '%green%')], nativeFunctions=[], jvmFunctions=[])\n                  :     :        :        :     :     +- RowDataToArrow\n                  :     :        :        :     :        +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'%green%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n                  :     :        :        :     +- RowDataToArrow\n                  :     :        :        :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                  :     :        :        +- RowDataToArrow\n                  :     :        :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount])\n                  :     :        +- RowDataToArrow\n                  :     :           +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                  :     +- RowDataToArrow\n                  :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_orderdate])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- RowDataToArrow\n                        +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[nation ASC, o_year DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[nation, o_year], select=[nation, o_year, Final_SUM(sum$0) AS sum_profit])\n      +- NativeExchange(distribution=[hash[nation, o_year]])\n         +- NativeAggregate(groupBy=[nation, o_year], select=[nation, o_year, Partial_SUM(amount) AS sum$0])\n            +- NativeCalc(select=[n_name AS nation, EXTRACT(YEAR, o_orderdate) AS o_year, -(*(l_extendedprice, -(1, l_discount)), *(ps_supplycost, l_quantity)) AS amount], nativeFunctions=[EXTRACT], jvmFunctions=[])\n               +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                  :- NativeCalc(select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                  :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderkey, o_orderdate], isBroadcast=[true], build=[left])\n                  :     :- NativeExchange(distribution=[broadcast])\n                  :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                  :     :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_suppkey, l_suppkey), =(ps_partkey, l_partkey))], select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n                  :     :        :- NativeExchange(distribution=[broadcast])\n                  :     :        :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                  :     :        :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(s_suppkey, l_suppkey), =(p_partkey, l_partkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                  :     :        :        :- NativeExchange(distribution=[broadcast])\n                  :     :        :        :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[left])\n                  :     :        :        :     :- NativeExchange(distribution=[broadcast])\n                  :     :        :        :     :  +- NativeCalc(select=[p_partkey], where=[LIKE(p_name, '%green%')], nativeFunctions=[], jvmFunctions=[])\n                  :     :        :        :     :     +- RowDataToArrow\n                  :     :        :        :     :        +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'%green%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n                  :     :        :        :     +- RowDataToArrow\n                  :     :        :        :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                  :     :        :        +- RowDataToArrow\n                  :     :        :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount])\n                  :     :        +- RowDataToArrow\n                  :     :           +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                  :     +- RowDataToArrow\n                  :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_orderdate])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- RowDataToArrow\n                        +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], sort1=[$1], dir0=[ASC-nulls-first], dir1=[DESC-nulls-last])\n+- LogicalAggregate(group=[{0, 1}], sum_profit=[SUM($2)])\n   +- LogicalProject(nation=[$47], o_year=[EXTRACT(FLAG(YEAR), $41)], amount=[-(*($21, -(1, $22)), *($35, $20))])\n      +- LogicalFilter(condition=[AND(=($9, $18), =($33, $18), =($32, $17), =($0, $17), =($37, $16), =($12, $46), LIKE($1, _UTF-16LE'%green%'))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :  :  :- LogicalTableScan(table=[[default_catalog, default_database, part]])\n            :  :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[nation ASC, o_year DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[nation, o_year], select=[nation, o_year, Final_SUM(sum$0) AS sum_profit])\n      +- NativeExchange(distribution=[hash[nation, o_year]])\n         +- NativeAggregate(groupBy=[nation, o_year], select=[nation, o_year, Partial_SUM(amount) AS sum$0])\n            +- NativeCalc(select=[n_name AS nation, EXTRACT(YEAR, o_orderdate) AS o_year, -(*(l_extendedprice, -(1, l_discount)), *(ps_supplycost, l_quantity)) AS amount], nativeFunctions=[EXTRACT], jvmFunctions=[])\n               +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                  :- NativeCalc(select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                  :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderkey, o_orderdate], isBroadcast=[true], build=[left])\n                  :     :- NativeExchange(distribution=[broadcast])\n                  :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                  :     :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_suppkey, l_suppkey), =(ps_partkey, l_partkey))], select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n                  :     :        :- NativeExchange(distribution=[broadcast])\n                  :     :        :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                  :     :        :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(s_suppkey, l_suppkey), =(p_partkey, l_partkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                  :     :        :        :- NativeExchange(distribution=[broadcast])\n                  :     :        :        :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[left])\n                  :     :        :        :     :- NativeExchange(distribution=[broadcast])\n                  :     :        :        :     :  +- NativeCalc(select=[p_partkey], where=[LIKE(p_name, '%green%')], nativeFunctions=[], jvmFunctions=[])\n                  :     :        :        :     :     +- RowDataToArrow\n                  :     :        :        :     :        +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'%green%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n                  :     :        :        :     +- RowDataToArrow\n                  :     :        :        :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                  :     :        :        +- RowDataToArrow\n                  :     :        :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount])\n                  :     :        +- RowDataToArrow\n                  :     :           +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                  :     +- RowDataToArrow\n                  :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_orderdate])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- RowDataToArrow\n                        +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[nation ASC, o_year DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[nation, o_year], select=[nation, o_year, Final_SUM(sum$0) AS sum_profit])\n      +- NativeExchange(distribution=[hash[nation, o_year]])\n         +- NativeAggregate(groupBy=[nation, o_year], select=[nation, o_year, Partial_SUM(amount) AS sum$0])\n            +- NativeCalc(select=[n_name AS nation, EXTRACT(YEAR, o_orderdate) AS o_year, -(*(l_extendedprice, -(1, l_discount)), *(ps_supplycost, l_quantity)) AS amount], nativeFunctions=[EXTRACT], jvmFunctions=[])\n               +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                  :- NativeCalc(select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                  :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost, o_orderkey, o_orderdate], isBroadcast=[true], build=[left])\n                  :     :- NativeExchange(distribution=[broadcast])\n                  :     :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_discount, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                  :     :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_suppkey, l_suppkey), =(ps_partkey, l_partkey))], select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount, ps_partkey, ps_suppkey, ps_supplycost], isBroadcast=[true], build=[left])\n                  :     :        :- NativeExchange(distribution=[broadcast])\n                  :     :        :  +- NativeCalc(select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                  :     :        :     +- NativeJoin(joinType=[InnerJoin], where=[AND(=(s_suppkey, l_suppkey), =(p_partkey, l_partkey))], select=[p_partkey, s_suppkey, s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                  :     :        :        :- NativeExchange(distribution=[broadcast])\n                  :     :        :        :  +- NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_nationkey], build=[left])\n                  :     :        :        :     :- NativeExchange(distribution=[broadcast])\n                  :     :        :        :     :  +- NativeCalc(select=[p_partkey], where=[LIKE(p_name, '%green%')], nativeFunctions=[], jvmFunctions=[])\n                  :     :        :        :     :     +- RowDataToArrow\n                  :     :        :        :     :        +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'%green%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n                  :     :        :        :     +- RowDataToArrow\n                  :     :        :        :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                  :     :        :        +- RowDataToArrow\n                  :     :        :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount], metadata=[]]], fields=[l_orderkey, l_partkey, l_suppkey, l_quantity, l_extendedprice, l_discount])\n                  :     :        +- RowDataToArrow\n                  :     :           +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_supplycost])\n                  :     +- RowDataToArrow\n                  :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_orderdate])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- RowDataToArrow\n                        +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\nStreamFusion batch: 20 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "9be4d56e70dbbabd6f72fa704df1fb89",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "23dd54aaed162bcce51bb2862f92c447",
          "sourceArrowRows": 85300,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[nation, o_year], select=[nation, o_year, Partial_SUM(am",
              "recordsIn": 0,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[nation, o_year], select=[nation, o_year, Partial_SUM(am",
              "recordsIn": 3223,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 173
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[nation, o_year], select=[nation, o_year",
              "recordsIn": 84,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 84
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[nation, o_year], select=[nation, o_year",
              "recordsIn": 89,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 89
            },
            {
              "operator": "NativeCalc(select=[n_name AS nation, EXTRACT(YEAR, o_orderdate) AS o_year, -(*(l",
              "recordsIn": 0,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_name AS nation, EXTRACT(YEAR, o_orderdate) AS o_year, -(*(l",
              "recordsIn": 3223,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 3223
            },
            {
              "operator": "NativeCalc(select=[p_partkey], where=[LIKE(p_name, '%green%')], nativeFunctions=",
              "recordsIn": 0,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey], where=[LIKE(p_name, '%green%')], nativeFunctions=",
              "recordsIn": 2000,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 107
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_",
              "recordsIn": 0,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_orderkey, l_partkey, l_suppkey, l_quantity, l_",
              "recordsIn": 3223,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 3223
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_disco",
              "recordsIn": 0,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_orderkey, l_quantity, l_extendedprice, l_disco",
              "recordsIn": 3223,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 3223
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supp",
              "recordsIn": 0,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_nationkey, l_quantity, l_extendedprice, l_discount, ps_supp",
              "recordsIn": 3223,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 3223
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_na",
              "recordsIn": 18223,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 3223
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_na",
              "recordsIn": 3223,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 25,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 3248,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 3223
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_suppkey, l_suppkey), =(ps_partk",
              "recordsIn": 11223,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 3223
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_suppkey, l_suppkey), =(ps_partk",
              "recordsIn": 3223,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(s_suppkey, l_suppkey), =(p_partkey",
              "recordsIn": 10701,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(s_suppkey, l_suppkey), =(p_partkey",
              "recordsIn": 70876,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 3223
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_n",
              "recordsIn": 107,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[true], select=[p_partkey, s_suppkey, s_n",
              "recordsIn": 207,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 10700
            },
            {
              "operator": "NativeSort(orderBy=[nation ASC, o_year DESC])[1538]",
              "recordsIn": 173,
              "jobId": "23dd54aaed162bcce51bb2862f92c447",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 173
            }
          ]
        }
      ],
      "resultType": "ROW<`nation` STRING, `o_year` BIGINT, `sum_profit` DECIMAL(38, 4)> NOT NULL",
      "rows": 173,
      "resultSha256": "6c1cb82ff0e006e203ef1aad7dd92ee83dfe4cadd862264a402a9f6897b00b48",
      "stockNanos": [
        500517375
      ],
      "nativeNanos": [
        252527959
      ],
      "stockRuntimeMs": [
        318
      ],
      "nativeRuntimeMs": [
        120
      ],
      "status": "passed"
    },
    {
      "query": 10,
      "sqlSha256": "2c82e9ab8c67d6423ed357ef3c945f60cc140f50d489a1a098cbb290fd1f191e",
      "sql": "-- database: presto; groups: tpch; tables: customer,orders,lineitem,nation\nSELECT\n  c_custkey,\n  c_name,\n  sum(l_extendedprice * (1 - l_discount)) AS revenue,\n  c_acctbal,\n  n_name,\n  c_address,\n  c_phone,\n  c_comment\nFROM\n  customer,\n  orders,\n  lineitem,\n  nation\nWHERE\n  c_custkey = o_custkey\n  AND l_orderkey = o_orderkey\n  AND o_orderdate >= DATE '1993-10-01'\n  AND o_orderdate < DATE '1993-10-01' + INTERVAL '3' MONTH\n  AND l_returnflag = 'R'\n  AND c_nationkey = n_nationkey\nGROUP BY\n  c_custkey,\n  c_name,\n  c_acctbal,\n  c_phone,\n  n_name,\n  c_address,\n  c_comment\nORDER BY\n  revenue DESC\nLIMIT 20\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$2], dir0=[DESC-nulls-last], fetch=[20])\n+- LogicalProject(c_custkey=[$0], c_name=[$1], revenue=[$7], c_acctbal=[$2], n_name=[$4], c_address=[$5], c_phone=[$3], c_comment=[$6])\n   +- LogicalAggregate(group=[{0, 1, 2, 3, 4, 5, 6}], revenue=[SUM($7)])\n      +- LogicalProject(c_custkey=[$0], c_name=[$1], c_acctbal=[$5], c_phone=[$4], n_name=[$34], c_address=[$2], c_comment=[$7], $f7=[*($22, -(1, $23))])\n         +- LogicalFilter(condition=[AND(=($0, $9), =($17, $8), >=($12, 1993-10-01), <($12, +(1993-10-01, 3:INTERVAL MONTH)), =($25, _UTF-16LE'R'), =($3, $33))])\n            +- LogicalJoin(condition=[true], joinType=[inner])\n               :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n               :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n               :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nCalc(select=[c_custkey, c_name, revenue, c_acctbal, n_name, c_address, c_phone, c_comment])\n+- SortLimit(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[true])\n   +- Exchange(distribution=[single])\n      +- SortLimit(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[false])\n         +- HashAggregate(isMerge=[true], groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Final_SUM(sum$0) AS revenue])\n            +- Exchange(distribution=[hash[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment]])\n               +- LocalHashAggregate(groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Partial_SUM($f7) AS sum$0])\n                  +- Calc(select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, *(l_extendedprice, -(1, l_discount)) AS $f7])\n                     +- HashJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                        :- Calc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount])\n                        :  +- HashJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :     :- Exchange(distribution=[broadcast])\n                        :     :  +- Calc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey])\n                        :     :     +- HashJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                        :     :        :- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment], metadata=[]]], fields=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment])\n                        :     :        +- Exchange(distribution=[broadcast])\n                        :     :           +- Calc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1993-10-01..1994-01-01)])])\n                        :     :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-10-01), <(o_orderdate, 1994-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                        :     +- Calc(select=[l_orderkey, l_extendedprice, l_discount], where=[=(l_returnflag, 'R')])\n                        :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[=(l_returnflag, _UTF-16LE'R':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[l_orderkey, l_extendedprice, l_discount, l_returnflag], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_returnflag])\n                        +- Exchange(distribution=[broadcast])\n                           +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nCalc(select=[c_custkey, c_name, revenue, c_acctbal, n_name, c_address, c_phone, c_comment])\n+- SortLimit(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[true])\n   +- Exchange(distribution=[single])\n      +- SortLimit(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[false])\n         +- HashAggregate(isMerge=[true], groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Final_SUM(sum$0) AS revenue])\n            +- Exchange(distribution=[hash[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment]])\n               +- LocalHashAggregate(groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Partial_SUM($f7) AS sum$0])\n                  +- Calc(select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, (l_extendedprice * (1 - l_discount)) AS $f7])\n                     +- MultipleInput(readOrder=[0,0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[(c_nationkey = n_nationkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount, n_nationkey, n_name], isBroadcast=[true], build=[right])\\n:- Calc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(l_orderkey = o_orderkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\\n:     :- [#2] Exchange(distribution=[broadcast])\\n:     +- Calc(select=[l_orderkey, l_extendedprice, l_discount], where=[(l_returnflag = 'R')])\\n:        +- [#3] TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[=(l_returnflag, _UTF-16LE'R':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[l_orderkey, l_extendedprice, l_discount, l_returnflag], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_returnflag])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                        :- Exchange(distribution=[broadcast])\n                        :  +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                        :- Exchange(distribution=[broadcast])\n                        :  +- Calc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey])\n                        :     +- MultipleInput(readOrder=[1,0], members=[\\nHashJoin(joinType=[InnerJoin], where=[(c_custkey = o_custkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\\n:- [#1] TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment], metadata=[]]], fields=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment])\\n+- [#2] Exchange(distribution=[broadcast])\\n])\n                        :        :- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment], metadata=[]]], fields=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment])\n                        :        +- Exchange(distribution=[broadcast])\n                        :           +- Calc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1993-10-01..1994-01-01)])])\n                        :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-10-01), <(o_orderdate, 1994-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[=(l_returnflag, _UTF-16LE'R':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[l_orderkey, l_extendedprice, l_discount, l_returnflag], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_returnflag])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$2], dir0=[DESC-nulls-last], fetch=[20])\n+- LogicalProject(c_custkey=[$0], c_name=[$1], revenue=[$7], c_acctbal=[$2], n_name=[$4], c_address=[$5], c_phone=[$3], c_comment=[$6])\n   +- LogicalAggregate(group=[{0, 1, 2, 3, 4, 5, 6}], revenue=[SUM($7)])\n      +- LogicalProject(c_custkey=[$0], c_name=[$1], c_acctbal=[$5], c_phone=[$4], n_name=[$34], c_address=[$2], c_comment=[$7], $f7=[*($22, -(1, $23))])\n         +- LogicalFilter(condition=[AND(=($0, $9), =($17, $8), >=($12, 1993-10-01), <($12, +(1993-10-01, 3:INTERVAL MONTH)), =($25, _UTF-16LE'R'), =($3, $33))])\n            +- LogicalJoin(condition=[true], joinType=[inner])\n               :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n               :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n               :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[c_custkey, c_name, revenue, c_acctbal, n_name, c_address, c_phone, c_comment], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Final_SUM(sum$0) AS revenue])\n            +- NativeExchange(distribution=[hash[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment]])\n               +- NativeAggregate(groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Partial_SUM($f7) AS sum$0])\n                  +- NativeCalc(select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, *(l_extendedprice, -(1, l_discount)) AS $f7], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                        :- NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                        :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :     :- NativeExchange(distribution=[broadcast])\n                        :     :  +- NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                        :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                        :     :        :- RowDataToArrow\n                        :     :        :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment], metadata=[]]], fields=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment])\n                        :     :        +- NativeExchange(distribution=[broadcast])\n                        :     :           +- NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1993-10-01..1994-01-01)])], nativeFunctions=[], jvmFunctions=[])\n                        :     :              +- RowDataToArrow\n                        :     :                 +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-10-01), <(o_orderdate, 1994-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                        :     +- NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[=(l_returnflag, 'R')], nativeFunctions=[], jvmFunctions=[])\n                        :        +- RowDataToArrow\n                        :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[=(l_returnflag, _UTF-16LE'R':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[l_orderkey, l_extendedprice, l_discount, l_returnflag], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_returnflag])\n                        +- NativeExchange(distribution=[broadcast])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[c_custkey, c_name, revenue, c_acctbal, n_name, c_address, c_phone, c_comment], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Final_SUM(sum$0) AS revenue])\n            +- NativeExchange(distribution=[hash[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment]])\n               +- NativeAggregate(groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Partial_SUM($f7) AS sum$0])\n                  +- NativeCalc(select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, *(l_extendedprice, -(1, l_discount)) AS $f7], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                        :- NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                        :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :     :- NativeExchange(distribution=[broadcast])\n                        :     :  +- NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                        :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                        :     :        :- RowDataToArrow\n                        :     :        :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment], metadata=[]]], fields=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment])\n                        :     :        +- NativeExchange(distribution=[broadcast])\n                        :     :           +- NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1993-10-01..1994-01-01)])], nativeFunctions=[], jvmFunctions=[])\n                        :     :              +- RowDataToArrow\n                        :     :                 +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-10-01), <(o_orderdate, 1994-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                        :     +- NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[=(l_returnflag, 'R')], nativeFunctions=[], jvmFunctions=[])\n                        :        +- RowDataToArrow\n                        :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[=(l_returnflag, _UTF-16LE'R':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[l_orderkey, l_extendedprice, l_discount, l_returnflag], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_returnflag])\n                        +- NativeExchange(distribution=[broadcast])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$2], dir0=[DESC-nulls-last], fetch=[20])\n+- LogicalProject(c_custkey=[$0], c_name=[$1], revenue=[$7], c_acctbal=[$2], n_name=[$4], c_address=[$5], c_phone=[$3], c_comment=[$6])\n   +- LogicalAggregate(group=[{0, 1, 2, 3, 4, 5, 6}], revenue=[SUM($7)])\n      +- LogicalProject(c_custkey=[$0], c_name=[$1], c_acctbal=[$5], c_phone=[$4], n_name=[$34], c_address=[$2], c_comment=[$7], $f7=[*($22, -(1, $23))])\n         +- LogicalFilter(condition=[AND(=($0, $9), =($17, $8), >=($12, 1993-10-01), <($12, +(1993-10-01, 3:INTERVAL MONTH)), =($25, _UTF-16LE'R'), =($3, $33))])\n            +- LogicalJoin(condition=[true], joinType=[inner])\n               :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n               :  :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n               :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[c_custkey, c_name, revenue, c_acctbal, n_name, c_address, c_phone, c_comment], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Final_SUM(sum$0) AS revenue])\n            +- NativeExchange(distribution=[hash[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment]])\n               +- NativeAggregate(groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Partial_SUM($f7) AS sum$0])\n                  +- NativeCalc(select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, *(l_extendedprice, -(1, l_discount)) AS $f7], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                        :- NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                        :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :     :- NativeExchange(distribution=[broadcast])\n                        :     :  +- NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                        :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                        :     :        :- RowDataToArrow\n                        :     :        :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment], metadata=[]]], fields=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment])\n                        :     :        +- NativeExchange(distribution=[broadcast])\n                        :     :           +- NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1993-10-01..1994-01-01)])], nativeFunctions=[], jvmFunctions=[])\n                        :     :              +- RowDataToArrow\n                        :     :                 +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-10-01), <(o_orderdate, 1994-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                        :     +- NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[=(l_returnflag, 'R')], nativeFunctions=[], jvmFunctions=[])\n                        :        +- RowDataToArrow\n                        :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[=(l_returnflag, _UTF-16LE'R':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[l_orderkey, l_extendedprice, l_discount, l_returnflag], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_returnflag])\n                        +- NativeExchange(distribution=[broadcast])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[c_custkey, c_name, revenue, c_acctbal, n_name, c_address, c_phone, c_comment], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Final_SUM(sum$0) AS revenue])\n            +- NativeExchange(distribution=[hash[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment]])\n               +- NativeAggregate(groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment], select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, Partial_SUM($f7) AS sum$0])\n                  +- NativeCalc(select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_comment, *(l_extendedprice, -(1, l_discount)) AS $f7], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount, n_nationkey, n_name], isBroadcast=[true], build=[right])\n                        :- NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, l_extendedprice, l_discount], nativeFunctions=[], jvmFunctions=[])\n                        :  +- NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, l_orderkey, l_extendedprice, l_discount], isBroadcast=[true], build=[left])\n                        :     :- NativeExchange(distribution=[broadcast])\n                        :     :  +- NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                        :     :     +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                        :     :        :- RowDataToArrow\n                        :     :        :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment], metadata=[]]], fields=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal, c_comment])\n                        :     :        +- NativeExchange(distribution=[broadcast])\n                        :     :           +- NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1993-10-01..1994-01-01)])], nativeFunctions=[], jvmFunctions=[])\n                        :     :              +- RowDataToArrow\n                        :     :                 +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[and(>=(o_orderdate, 1993-10-01), <(o_orderdate, 1994-01-01))], project=[o_orderkey, o_custkey, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_orderdate])\n                        :     +- NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[=(l_returnflag, 'R')], nativeFunctions=[], jvmFunctions=[])\n                        :        +- RowDataToArrow\n                        :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[=(l_returnflag, _UTF-16LE'R':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[l_orderkey, l_extendedprice, l_discount, l_returnflag], metadata=[]]], fields=[l_orderkey, l_extendedprice, l_discount, l_returnflag])\n                        +- NativeExchange(distribution=[broadcast])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, nation, project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\nStreamFusion batch: 18 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "18b19aaba6fdbce063534bfdf8e364c5",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "5e37383d03550f8b9d2753bc17907b70",
          "sourceArrowRows": 76700,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_addres",
              "recordsIn": 0,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_addres",
              "recordsIn": 1259,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 399
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, c_acctbal, c_phone, ",
              "recordsIn": 199,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 199
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, c_acctbal, c_phone, ",
              "recordsIn": 200,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 200
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_c",
              "recordsIn": 0,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, c_acctbal, c_phone, n_name, c_address, c_c",
              "recordsIn": 1259,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1259
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal",
              "recordsIn": 0,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal",
              "recordsIn": 0,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal",
              "recordsIn": 1259,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1259
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, c_address, c_nationkey, c_phone, c_acctbal",
              "recordsIn": 611,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 611
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, revenue, c_acctbal, n_name, c_address, c_p",
              "recordsIn": 20,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 20
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[=(l_returnfl",
              "recordsIn": 0,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_extendedprice, l_discount], where=[=(l_returnfl",
              "recordsIn": 60175,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 14902
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1993",
              "recordsIn": 0,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey], where=[SEARCH(o_orderdate, Sarg[[1993",
              "recordsIn": 15000,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 611
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_cust",
              "recordsIn": 2111,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 611
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_cust",
              "recordsIn": 611,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[c_",
              "recordsIn": 1284,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1259
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_nationkey, n_nationkey)], select=[c_",
              "recordsIn": 25,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_cu",
              "recordsIn": 15513,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1259
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_orderkey, o_orderkey)], select=[c_cu",
              "recordsIn": 611,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[false])[1694]",
              "recordsIn": 199,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 20
            },
            {
              "operator": "NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[false])[1694]",
              "recordsIn": 200,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 20
            },
            {
              "operator": "NativeSort(orderBy=[revenue DESC], offset=[0], fetch=[20], global=[true])[1696]",
              "recordsIn": 40,
              "jobId": "5e37383d03550f8b9d2753bc17907b70",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 20
            }
          ]
        }
      ],
      "resultType": "ROW<`c_custkey` BIGINT, `c_name` STRING, `revenue` DECIMAL(38, 4), `c_acctbal` DECIMAL(15, 2), `n_name` STRING, `c_address` STRING, `c_phone` STRING, `c_comment` STRING> NOT NULL",
      "rows": 20,
      "resultSha256": "f8cf8af189283b7bad4e806729559e512b2a3cec030afdb2fa735f05ff15bc6b",
      "stockNanos": [
        451534166
      ],
      "nativeNanos": [
        146141625
      ],
      "stockRuntimeMs": [
        255
      ],
      "nativeRuntimeMs": [
        97
      ],
      "status": "passed"
    },
    {
      "query": 11,
      "sqlSha256": "6c13dffd3aa87a4bb45ccb379ff54b834d12b87d070ee3dafd63906c8c6ce8ce",
      "sql": "-- database: presto; groups: tpch; tables: partsupp,supplier,nation\nSELECT\n  ps_partkey,\n--  sum(ps_supplycost * ps_availqty) AS value\n  sum(ps_supplycost * ps_availqty) AS `value`\nFROM\n  partsupp,\n  supplier,\n  nation\nWHERE\n  ps_suppkey = s_suppkey\n  AND s_nationkey = n_nationkey\n  AND n_name = 'GERMANY'\nGROUP BY\n  ps_partkey\nHAVING\n  sum(ps_supplycost * ps_availqty) > (\n    SELECT sum(ps_supplycost * ps_availqty) * 0.0001\n    FROM\n      partsupp,\n      supplier,\n      nation\n    WHERE\n      ps_suppkey = s_suppkey\n      AND s_nationkey = n_nationkey\n      AND n_name = 'GERMANY'\n  )\nORDER BY\n--  value DESC\n  `value` DESC\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], dir0=[DESC-nulls-last])\n+- LogicalFilter(condition=[>($1, $SCALAR_QUERY({\nLogicalProject(EXPR$0=[*($0, 0.0001:DECIMAL(5, 4))])\n  LogicalAggregate(group=[{}], agg#0=[SUM($0)])\n    LogicalProject($f0=[*($3, $2)])\n      LogicalFilter(condition=[AND(=($1, $5), =($8, $12), =($13, _UTF-16LE'GERMANY'))])\n        LogicalJoin(condition=[true], joinType=[inner])\n          LogicalJoin(condition=[true], joinType=[inner])\n            LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n          LogicalTableScan(table=[[default_catalog, default_database, nation]])\n}))])\n   +- LogicalAggregate(group=[{0}], value=[SUM($1)])\n      +- LogicalProject(ps_partkey=[$0], $f1=[*($3, $2)])\n         +- LogicalFilter(condition=[AND(=($1, $5), =($8, $12), =($13, _UTF-16LE'GERMANY'))])\n            +- LogicalJoin(condition=[true], joinType=[inner])\n               :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n               :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[value DESC])\n+- Exchange(distribution=[single])\n   +- Calc(select=[ps_partkey, value])\n      +- NestedLoopJoin(joinType=[InnerJoin], where=[>(value, $f0)], select=[ps_partkey, value, $f0], build=[right], singleRowJoin=[true])\n         :- HashAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_SUM(sum$0) AS value])\n         :  +- Exchange(distribution=[hash[ps_partkey]])\n         :     +- LocalHashAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_SUM($f1) AS sum$0])\n         :        +- Calc(select=[ps_partkey, *(ps_supplycost, ps_availqty) AS $f1])\n         :           +- NestedLoopJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n         :              :- Calc(select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey])\n         :              :  +- HashJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n         :              :     :- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])\n         :              :     +- Exchange(distribution=[broadcast])\n         :              :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n         :              +- Exchange(distribution=[broadcast])\n         :                 +- Calc(select=[n_nationkey], where=[=(n_name, 'GERMANY')])\n         :                    +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n         +- Exchange(distribution=[broadcast])\n            +- HashAggregate(isMerge=[false], select=[SINGLE_VALUE(EXPR$0) AS $f0])\n               +- Calc(select=[*($f0, 0.0001) AS EXPR$0])\n                  +- HashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n                     +- Exchange(distribution=[single])\n                        +- LocalHashAggregate(select=[Partial_SUM($f0) AS sum$0])\n                           +- Calc(select=[*(ps_supplycost, ps_availqty) AS $f0])\n                              +- NestedLoopJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n                                 :- Calc(select=[ps_availqty, ps_supplycost, s_nationkey])\n                                 :  +- HashJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                                 :     :- Calc(select=[ps_suppkey, ps_availqty, ps_supplycost])\n                                 :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])\n                                 :     +- Exchange(distribution=[broadcast])\n                                 :        +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                                 +- Exchange(distribution=[broadcast])\n                                    +- Calc(select=[n_nationkey], where=[=(n_name, 'GERMANY')])\n                                       +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nSort(orderBy=[value DESC])\n+- Exchange(distribution=[single])\n   +- Calc(select=[ps_partkey, value])\n      +- MultipleInput(readOrder=[0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[(value > $f0)], select=[ps_partkey, value, $f0], build=[right], singleRowJoin=[true])\\n:- HashAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_SUM(sum$0) AS value])\\n:  +- [#2] Exchange(distribution=[hash[ps_partkey]])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n         :- Exchange(distribution=[broadcast])\n         :  +- HashAggregate(isMerge=[false], select=[SINGLE_VALUE(EXPR$0) AS $f0])\n         :     +- Calc(select=[($f0 * 0.0001) AS EXPR$0])\n         :        +- HashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n         :           +- Exchange(distribution=[single])\n         :              +- LocalHashAggregate(select=[Partial_SUM($f0) AS sum$0])\n         :                 +- Calc(select=[(ps_supplycost * ps_availqty) AS $f0])\n         :                    +- MultipleInput(readOrder=[0,0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\\n:- Calc(select=[ps_availqty, ps_supplycost, s_nationkey])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(ps_suppkey = s_suppkey)], select=[ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\\n:     :- Calc(select=[ps_suppkey, ps_availqty, ps_supplycost])\\n:     :  +- [#3] TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])\\n:     +- [#2] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n         :                       :- Exchange(distribution=[broadcast])(reuse_id=[1])\n         :                       :  +- Calc(select=[n_nationkey], where=[(n_name = 'GERMANY')])\n         :                       :     +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n         :                       :- Exchange(distribution=[broadcast])(reuse_id=[3])\n         :                       :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n         :                       +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])(reuse_id=[2])\n         +- Exchange(distribution=[hash[ps_partkey]])\n            +- LocalHashAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_SUM($f1) AS sum$0])\n               +- Calc(select=[ps_partkey, (ps_supplycost * ps_availqty) AS $f1])\n                  +- MultipleInput(readOrder=[0,1,0], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\\n:- Calc(select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(ps_suppkey = s_suppkey)], select=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\\n:     :- [#2] TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])\\n:     +- [#3] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                     :- Reused(reference_id=[1])\n                     :- Reused(reference_id=[2])\n                     +- Reused(reference_id=[3])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], dir0=[DESC-nulls-last])\n+- LogicalFilter(condition=[>($1, $SCALAR_QUERY({\nLogicalProject(EXPR$0=[*($0, 0.0001:DECIMAL(5, 4))])\n  LogicalAggregate(group=[{}], agg#0=[SUM($0)])\n    LogicalProject($f0=[*($3, $2)])\n      LogicalFilter(condition=[AND(=($1, $5), =($8, $12), =($13, _UTF-16LE'GERMANY'))])\n        LogicalJoin(condition=[true], joinType=[inner])\n          LogicalJoin(condition=[true], joinType=[inner])\n            LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n          LogicalTableScan(table=[[default_catalog, default_database, nation]])\n}))])\n   +- LogicalAggregate(group=[{0}], value=[SUM($1)])\n      +- LogicalProject(ps_partkey=[$0], $f1=[*($3, $2)])\n         +- LogicalFilter(condition=[AND(=($1, $5), =($8, $12), =($13, _UTF-16LE'GERMANY'))])\n            +- LogicalJoin(condition=[true], joinType=[inner])\n               :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n               :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[value DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[ps_partkey, value], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[>(value, $f0)], select=[ps_partkey, value, $f0], build=[right], singleRowJoin=[true])\n         :- NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_SUM(sum$0) AS value])\n         :  +- NativeExchange(distribution=[hash[ps_partkey]])\n         :     +- NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_SUM($f1) AS sum$0])\n         :        +- NativeCalc(select=[ps_partkey, *(ps_supplycost, ps_availqty) AS $f1], nativeFunctions=[], jvmFunctions=[])\n         :           +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n         :              :- NativeCalc(select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n         :              :  +- NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n         :              :     :- RowDataToArrow\n         :              :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])\n         :              :     +- NativeExchange(distribution=[broadcast])\n         :              :        +- RowDataToArrow\n         :              :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n         :              +- NativeExchange(distribution=[broadcast])\n         :                 +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[], jvmFunctions=[])\n         :                    +- RowDataToArrow\n         :                       +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeAggregate(isMerge=[false], select=[SINGLE_VALUE(EXPR$0) AS $f0])\n               +- NativeCalc(select=[*($f0, 0.0001) AS EXPR$0], nativeFunctions=[], jvmFunctions=[])\n                  +- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n                     +- NativeExchange(distribution=[single])\n                        +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n                           +- NativeCalc(select=[*(ps_supplycost, ps_availqty) AS $f0], nativeFunctions=[], jvmFunctions=[])\n                              +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n                                 :- NativeCalc(select=[ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                                 :  +- NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                                 :     :- NativeCalc(select=[ps_suppkey, ps_availqty, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                                 :     :  +- RowDataToArrow\n                                 :     :     +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])\n                                 :     +- NativeExchange(distribution=[broadcast])\n                                 :        +- RowDataToArrow\n                                 :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                                 +- NativeExchange(distribution=[broadcast])\n                                    +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[], jvmFunctions=[])\n                                       +- RowDataToArrow\n                                          +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[value DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[ps_partkey, value], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[>(value, $f0)], select=[ps_partkey, value, $f0], build=[right], singleRowJoin=[true])\n         :- NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_SUM(sum$0) AS value])\n         :  +- NativeExchange(distribution=[hash[ps_partkey]])\n         :     +- NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_SUM($f1) AS sum$0])\n         :        +- NativeCalc(select=[ps_partkey, *(ps_supplycost, ps_availqty) AS $f1], nativeFunctions=[], jvmFunctions=[])\n         :           +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n         :              :- NativeCalc(select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n         :              :  +- NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n         :              :     :- RowDataToArrow\n         :              :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])(reuse_id=[1])\n         :              :     +- NativeExchange(distribution=[broadcast])\n         :              :        +- RowDataToArrow\n         :              :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])(reuse_id=[2])\n         :              +- NativeExchange(distribution=[broadcast])\n         :                 +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[], jvmFunctions=[])\n         :                    +- RowDataToArrow\n         :                       +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])(reuse_id=[3])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeAggregate(isMerge=[false], select=[SINGLE_VALUE(EXPR$0) AS $f0])\n               +- NativeCalc(select=[*($f0, 0.0001) AS EXPR$0], nativeFunctions=[], jvmFunctions=[])\n                  +- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n                     +- NativeExchange(distribution=[single])\n                        +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n                           +- NativeCalc(select=[*(ps_supplycost, ps_availqty) AS $f0], nativeFunctions=[], jvmFunctions=[])\n                              +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n                                 :- NativeCalc(select=[ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                                 :  +- NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                                 :     :- NativeCalc(select=[ps_suppkey, ps_availqty, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                                 :     :  +- RowDataToArrow\n                                 :     :     +- Reused(reference_id=[1])\n                                 :     +- NativeExchange(distribution=[broadcast])\n                                 :        +- RowDataToArrow\n                                 :           +- Reused(reference_id=[2])\n                                 +- NativeExchange(distribution=[broadcast])\n                                    +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[], jvmFunctions=[])\n                                       +- RowDataToArrow\n                                          +- Reused(reference_id=[3])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], dir0=[DESC-nulls-last])\n+- LogicalFilter(condition=[>($1, $SCALAR_QUERY({\nLogicalProject(EXPR$0=[*($0, 0.0001:DECIMAL(5, 4))])\n  LogicalAggregate(group=[{}], agg#0=[SUM($0)])\n    LogicalProject($f0=[*($3, $2)])\n      LogicalFilter(condition=[AND(=($1, $5), =($8, $12), =($13, _UTF-16LE'GERMANY'))])\n        LogicalJoin(condition=[true], joinType=[inner])\n          LogicalJoin(condition=[true], joinType=[inner])\n            LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n          LogicalTableScan(table=[[default_catalog, default_database, nation]])\n}))])\n   +- LogicalAggregate(group=[{0}], value=[SUM($1)])\n      +- LogicalProject(ps_partkey=[$0], $f1=[*($3, $2)])\n         +- LogicalFilter(condition=[AND(=($1, $5), =($8, $12), =($13, _UTF-16LE'GERMANY'))])\n            +- LogicalJoin(condition=[true], joinType=[inner])\n               :- LogicalJoin(condition=[true], joinType=[inner])\n               :  :- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n               :  +- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[value DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[ps_partkey, value], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[>(value, $f0)], select=[ps_partkey, value, $f0], build=[right], singleRowJoin=[true])\n         :- NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_SUM(sum$0) AS value])\n         :  +- NativeExchange(distribution=[hash[ps_partkey]])\n         :     +- NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_SUM($f1) AS sum$0])\n         :        +- NativeCalc(select=[ps_partkey, *(ps_supplycost, ps_availqty) AS $f1], nativeFunctions=[], jvmFunctions=[])\n         :           +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n         :              :- NativeCalc(select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n         :              :  +- NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n         :              :     :- RowDataToArrow\n         :              :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])\n         :              :     +- NativeExchange(distribution=[broadcast])\n         :              :        +- RowDataToArrow\n         :              :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n         :              +- NativeExchange(distribution=[broadcast])\n         :                 +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[], jvmFunctions=[])\n         :                    +- RowDataToArrow\n         :                       +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeAggregate(isMerge=[false], select=[SINGLE_VALUE(EXPR$0) AS $f0])\n               +- NativeCalc(select=[*($f0, 0.0001) AS EXPR$0], nativeFunctions=[], jvmFunctions=[])\n                  +- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n                     +- NativeExchange(distribution=[single])\n                        +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n                           +- NativeCalc(select=[*(ps_supplycost, ps_availqty) AS $f0], nativeFunctions=[], jvmFunctions=[])\n                              +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n                                 :- NativeCalc(select=[ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                                 :  +- NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                                 :     :- NativeCalc(select=[ps_suppkey, ps_availqty, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                                 :     :  +- RowDataToArrow\n                                 :     :     +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])\n                                 :     +- NativeExchange(distribution=[broadcast])\n                                 :        +- RowDataToArrow\n                                 :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])\n                                 +- NativeExchange(distribution=[broadcast])\n                                    +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[], jvmFunctions=[])\n                                       +- RowDataToArrow\n                                          +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[value DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[ps_partkey, value], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[>(value, $f0)], select=[ps_partkey, value, $f0], build=[right], singleRowJoin=[true])\n         :- NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_SUM(sum$0) AS value])\n         :  +- NativeExchange(distribution=[hash[ps_partkey]])\n         :     +- NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_SUM($f1) AS sum$0])\n         :        +- NativeCalc(select=[ps_partkey, *(ps_supplycost, ps_availqty) AS $f1], nativeFunctions=[], jvmFunctions=[])\n         :           +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n         :              :- NativeCalc(select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n         :              :  +- NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n         :              :     :- RowDataToArrow\n         :              :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty, ps_supplycost])(reuse_id=[1])\n         :              :     +- NativeExchange(distribution=[broadcast])\n         :              :        +- RowDataToArrow\n         :              :           +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_nationkey], metadata=[]]], fields=[s_suppkey, s_nationkey])(reuse_id=[2])\n         :              +- NativeExchange(distribution=[broadcast])\n         :                 +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[], jvmFunctions=[])\n         :                    +- RowDataToArrow\n         :                       +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'GERMANY':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])(reuse_id=[3])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeAggregate(isMerge=[false], select=[SINGLE_VALUE(EXPR$0) AS $f0])\n               +- NativeCalc(select=[*($f0, 0.0001) AS EXPR$0], nativeFunctions=[], jvmFunctions=[])\n                  +- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n                     +- NativeExchange(distribution=[single])\n                        +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n                           +- NativeCalc(select=[*(ps_supplycost, ps_availqty) AS $f0], nativeFunctions=[], jvmFunctions=[])\n                              +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps_availqty, ps_supplycost, s_nationkey, n_nationkey], build=[right])\n                                 :- NativeCalc(select=[ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n                                 :  +- NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_suppkey, ps_availqty, ps_supplycost, s_suppkey, s_nationkey], isBroadcast=[true], build=[right])\n                                 :     :- NativeCalc(select=[ps_suppkey, ps_availqty, ps_supplycost], nativeFunctions=[], jvmFunctions=[])\n                                 :     :  +- RowDataToArrow\n                                 :     :     +- Reused(reference_id=[1])\n                                 :     +- NativeExchange(distribution=[broadcast])\n                                 :        +- RowDataToArrow\n                                 :           +- Reused(reference_id=[2])\n                                 +- NativeExchange(distribution=[broadcast])\n                                    +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[], jvmFunctions=[])\n                                       +- RowDataToArrow\n                                          +- Reused(reference_id=[3])\n\nStreamFusion batch: 28 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "d4f56977c3b85e179b693a5b0ec284cd",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
          "sourceArrowRows": 8125,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_SUM($f1) AS su",
              "recordsIn": 1,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[ps_partkey], select=[ps_partkey, Partial_SUM($f1) AS su",
              "recordsIn": 400,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 374
            },
            {
              "operator": "NativeAggregate(isMerge=[false], select=[SINGLE_VALUE(EXPR$0) AS $f0])[1914]",
              "recordsIn": 1,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_",
              "recordsIn": 175,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 175
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[ps_partkey], select=[ps_partkey, Final_",
              "recordsIn": 199,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 199
            },
            {
              "operator": "NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])[1911]",
              "recordsIn": 1,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM($f0) AS sum$0])[1909]",
              "recordsIn": 1,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM($f0) AS sum$0])[1909]",
              "recordsIn": 400,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[*($f0, 0.0001) AS EXPR$0], nativeFunctions=[], jvmFunctions=[",
              "recordsIn": 1,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[*(ps_supplycost, ps_availqty) AS $f0], nativeFunctions=[], jv",
              "recordsIn": 1,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[*(ps_supplycost, ps_availqty) AS $f0], nativeFunctions=[], jv",
              "recordsIn": 400,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 400
            },
            {
              "operator": "NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[",
              "recordsIn": 0,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[",
              "recordsIn": 0,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[",
              "recordsIn": 25,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[n_nationkey], where=[=(n_name, 'GERMANY')], nativeFunctions=[",
              "recordsIn": 25,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[],",
              "recordsIn": 0,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[ps_availqty, ps_supplycost, s_nationkey], nativeFunctions=[],",
              "recordsIn": 8000,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, *(ps_supplycost, ps_availqty) AS $f1], nativeFunc",
              "recordsIn": 1,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, *(ps_supplycost, ps_availqty) AS $f1], nativeFunc",
              "recordsIn": 400,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 400
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey], nativeF",
              "recordsIn": 0,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, ps_availqty, ps_supplycost, s_nationkey], nativeF",
              "recordsIn": 8000,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, value], nativeFunctions=[], jvmFunctions=[])[1917",
              "recordsIn": 173,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 173
            },
            {
              "operator": "NativeCalc(select=[ps_partkey, value], nativeFunctions=[], jvmFunctions=[])[1917",
              "recordsIn": 186,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 186
            },
            {
              "operator": "NativeCalc(select=[ps_suppkey, ps_availqty, ps_supplycost], nativeFunctions=[], ",
              "recordsIn": 0,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[ps_suppkey, ps_availqty, ps_supplycost], nativeFunctions=[], ",
              "recordsIn": 8000,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 100,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 100
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 25,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 25
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 8000,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_pa",
              "recordsIn": 100,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_pa",
              "recordsIn": 8100,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_su",
              "recordsIn": 100,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(ps_suppkey, s_suppkey)], select=[ps_su",
              "recordsIn": 8100,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 8000
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps",
              "recordsIn": 1,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps",
              "recordsIn": 1,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps",
              "recordsIn": 8001,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 400
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[ps",
              "recordsIn": 8001,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 400
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[>(value, $f0)], select=[ps_partkey, valu",
              "recordsIn": 176,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 173
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[>(value, $f0)], select=[ps_partkey, valu",
              "recordsIn": 200,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 186
            },
            {
              "operator": "NativeSort(orderBy=[value DESC])[1920]",
              "recordsIn": 359,
              "jobId": "cbb570eccad87f9abb527da2e3dd9a92",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 359
            }
          ]
        }
      ],
      "resultType": "ROW<`ps_partkey` BIGINT, `value` DECIMAL(38, 2)> NOT NULL",
      "rows": 359,
      "resultSha256": "6f8c69ff95b7659ffbf2a2da0e1429ebef702290d9bc6ab203e4f6f2b6b6c954",
      "stockNanos": [
        306927750
      ],
      "nativeNanos": [
        149647000
      ],
      "stockRuntimeMs": [
        201
      ],
      "nativeRuntimeMs": [
        100
      ],
      "status": "passed"
    },
    {
      "query": 12,
      "sqlSha256": "8622e45700f76a2b08b67c19a124013fc4e021623a8bd2c0d65845b1a1a3e9b0",
      "sql": "-- database: presto; groups: tpch; tables: orders,lineitem\nSELECT\n  l_shipmode,\n  sum(CASE\n      WHEN o_orderpriority = '1-URGENT'\n           OR o_orderpriority = '2-HIGH'\n        THEN 1\n      ELSE 0\n      END) AS high_line_count,\n  sum(CASE\n      WHEN o_orderpriority <> '1-URGENT'\n           AND o_orderpriority <> '2-HIGH'\n        THEN 1\n      ELSE 0\n      END) AS low_line_count\nFROM\n  orders,\n  lineitem\nWHERE\n  o_orderkey = l_orderkey\n  AND l_shipmode IN ('MAIL', 'SHIP')\n  AND l_commitdate < l_receiptdate\n  AND l_shipdate < l_commitdate\n  AND l_receiptdate >= DATE '1994-01-01'\n  AND l_receiptdate < DATE '1994-01-01' + INTERVAL '1' YEAR\nGROUP BY\n  l_shipmode\nORDER BY\n  l_shipmode\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0}], high_line_count=[SUM($1)], low_line_count=[SUM($2)])\n   +- LogicalProject(l_shipmode=[$23], $f1=[CASE(SEARCH($5, Sarg[_UTF-16LE'1-URGENT':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\", _UTF-16LE'2-HIGH':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"]:VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), 1, 0)], $f2=[CASE(SEARCH($5, Sarg[(-\u221e.._UTF-16LE'1-URGENT':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), (_UTF-16LE'1-URGENT':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\".._UTF-16LE'2-HIGH':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), (_UTF-16LE'2-HIGH':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"..+\u221e)]:VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), 1, 0)])\n      +- LogicalFilter(condition=[AND(=($0, $9), OR(=($23, _UTF-16LE'MAIL'), =($23, _UTF-16LE'SHIP')), <($20, $21), <($19, $20), >=($21, 1994-01-01), <($21, +(1994-01-01, 12:INTERVAL YEAR)))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[l_shipmode ASC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[l_shipmode], select=[l_shipmode, Final_SUM(sum$0) AS high_line_count, Final_SUM(sum$1) AS low_line_count])\n      +- Exchange(distribution=[hash[l_shipmode]])\n         +- LocalHashAggregate(groupBy=[l_shipmode], select=[l_shipmode, Partial_SUM($f1) AS sum$0, Partial_SUM($f2) AS sum$1])\n            +- Calc(select=[l_shipmode, CASE(SEARCH(o_orderpriority, Sarg[_UTF-16LE'1-URGENT', _UTF-16LE'2-HIGH']), 1, 0) AS $f1, CASE(SEARCH(o_orderpriority, Sarg[(-\u221e.._UTF-16LE'1-URGENT'), (_UTF-16LE'1-URGENT'.._UTF-16LE'2-HIGH'), (_UTF-16LE'2-HIGH'..+\u221e)]), 1, 0) AS $f2])\n               +- HashJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[o_orderkey, o_orderpriority, l_orderkey, l_shipmode], isBroadcast=[true], build=[right])\n                  :- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderpriority])\n                  +- Exchange(distribution=[broadcast])\n                     +- Calc(select=[l_orderkey, l_shipmode], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'MAIL', _UTF-16LE'SHIP']), <(l_commitdate, l_receiptdate), <(l_shipdate, l_commitdate), SEARCH(l_receiptdate, Sarg[[1994-01-01..1995-01-01)]))])\n                        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(and(OR(=(l_shipmode, _UTF-16LE'MAIL'), =(l_shipmode, _UTF-16LE'SHIP')), <(l_commitdate, l_receiptdate)), <(l_shipdate, l_commitdate)), AND(>=(l_receiptdate, 1994-01-01), <(l_receiptdate, 1995-01-01)))], project=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode], metadata=[]]], fields=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode])\n\n== Optimized Execution Plan ==\nSort(orderBy=[l_shipmode ASC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[l_shipmode], select=[l_shipmode, Final_SUM(sum$0) AS high_line_count, Final_SUM(sum$1) AS low_line_count])\n      +- Exchange(distribution=[hash[l_shipmode]])\n         +- LocalHashAggregate(groupBy=[l_shipmode], select=[l_shipmode, Partial_SUM($f1) AS sum$0, Partial_SUM($f2) AS sum$1])\n            +- Calc(select=[l_shipmode, CASE(SEARCH(o_orderpriority, Sarg[_UTF-16LE'1-URGENT', _UTF-16LE'2-HIGH']), 1, 0) AS $f1, CASE(SEARCH(o_orderpriority, Sarg[(-\u221e.._UTF-16LE'1-URGENT'), (_UTF-16LE'1-URGENT'.._UTF-16LE'2-HIGH'), (_UTF-16LE'2-HIGH'..+\u221e)]), 1, 0) AS $f2])\n               +- MultipleInput(readOrder=[1,0], members=[\\nHashJoin(joinType=[InnerJoin], where=[(o_orderkey = l_orderkey)], select=[o_orderkey, o_orderpriority, l_orderkey, l_shipmode], isBroadcast=[true], build=[right])\\n:- [#1] TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderpriority])\\n+- [#2] Exchange(distribution=[broadcast])\\n])\n                  :- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderpriority])\n                  +- Exchange(distribution=[broadcast])\n                     +- Calc(select=[l_orderkey, l_shipmode], where=[(SEARCH(l_shipmode, Sarg[_UTF-16LE'MAIL', _UTF-16LE'SHIP']) AND (l_commitdate < l_receiptdate) AND (l_shipdate < l_commitdate) AND SEARCH(l_receiptdate, Sarg[[1994-01-01..1995-01-01)]))])\n                        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(and(OR(=(l_shipmode, _UTF-16LE'MAIL'), =(l_shipmode, _UTF-16LE'SHIP')), <(l_commitdate, l_receiptdate)), <(l_shipdate, l_commitdate)), AND(>=(l_receiptdate, 1994-01-01), <(l_receiptdate, 1995-01-01)))], project=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode], metadata=[]]], fields=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0}], high_line_count=[SUM($1)], low_line_count=[SUM($2)])\n   +- LogicalProject(l_shipmode=[$23], $f1=[CASE(SEARCH($5, Sarg[_UTF-16LE'1-URGENT':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\", _UTF-16LE'2-HIGH':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"]:VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), 1, 0)], $f2=[CASE(SEARCH($5, Sarg[(-\u221e.._UTF-16LE'1-URGENT':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), (_UTF-16LE'1-URGENT':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\".._UTF-16LE'2-HIGH':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), (_UTF-16LE'2-HIGH':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"..+\u221e)]:VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), 1, 0)])\n      +- LogicalFilter(condition=[AND(=($0, $9), OR(=($23, _UTF-16LE'MAIL'), =($23, _UTF-16LE'SHIP')), <($20, $21), <($19, $20), >=($21, 1994-01-01), <($21, +(1994-01-01, 12:INTERVAL YEAR)))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[l_shipmode ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[l_shipmode], select=[l_shipmode, Final_SUM(sum$0) AS high_line_count, Final_SUM(sum$1) AS low_line_count])\n      +- NativeExchange(distribution=[hash[l_shipmode]])\n         +- NativeAggregate(groupBy=[l_shipmode], select=[l_shipmode, Partial_SUM($f1) AS sum$0, Partial_SUM($f2) AS sum$1])\n            +- NativeCalc(select=[l_shipmode, CASE(SEARCH(o_orderpriority, Sarg[_UTF-16LE'1-URGENT', _UTF-16LE'2-HIGH']), 1, 0) AS $f1, CASE(SEARCH(o_orderpriority, Sarg[(-\u221e.._UTF-16LE'1-URGENT'), (_UTF-16LE'1-URGENT'.._UTF-16LE'2-HIGH'), (_UTF-16LE'2-HIGH'..+\u221e)]), 1, 0) AS $f2], nativeFunctions=[], jvmFunctions=[])\n               +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[o_orderkey, o_orderpriority, l_orderkey, l_shipmode], isBroadcast=[true], build=[right])\n                  :- RowDataToArrow\n                  :  +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderpriority])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- NativeCalc(select=[l_orderkey, l_shipmode], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'MAIL', _UTF-16LE'SHIP']), <(l_commitdate, l_receiptdate), <(l_shipdate, l_commitdate), SEARCH(l_receiptdate, Sarg[[1994-01-01..1995-01-01)]))], nativeFunctions=[], jvmFunctions=[])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(and(OR(=(l_shipmode, _UTF-16LE'MAIL'), =(l_shipmode, _UTF-16LE'SHIP')), <(l_commitdate, l_receiptdate)), <(l_shipdate, l_commitdate)), AND(>=(l_receiptdate, 1994-01-01), <(l_receiptdate, 1995-01-01)))], project=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode], metadata=[]]], fields=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[l_shipmode ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[l_shipmode], select=[l_shipmode, Final_SUM(sum$0) AS high_line_count, Final_SUM(sum$1) AS low_line_count])\n      +- NativeExchange(distribution=[hash[l_shipmode]])\n         +- NativeAggregate(groupBy=[l_shipmode], select=[l_shipmode, Partial_SUM($f1) AS sum$0, Partial_SUM($f2) AS sum$1])\n            +- NativeCalc(select=[l_shipmode, CASE(SEARCH(o_orderpriority, Sarg[_UTF-16LE'1-URGENT', _UTF-16LE'2-HIGH']), 1, 0) AS $f1, CASE(SEARCH(o_orderpriority, Sarg[(-\u221e.._UTF-16LE'1-URGENT'), (_UTF-16LE'1-URGENT'.._UTF-16LE'2-HIGH'), (_UTF-16LE'2-HIGH'..+\u221e)]), 1, 0) AS $f2], nativeFunctions=[], jvmFunctions=[])\n               +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[o_orderkey, o_orderpriority, l_orderkey, l_shipmode], isBroadcast=[true], build=[right])\n                  :- RowDataToArrow\n                  :  +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderpriority])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- NativeCalc(select=[l_orderkey, l_shipmode], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'MAIL', _UTF-16LE'SHIP']), <(l_commitdate, l_receiptdate), <(l_shipdate, l_commitdate), SEARCH(l_receiptdate, Sarg[[1994-01-01..1995-01-01)]))], nativeFunctions=[], jvmFunctions=[])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(and(OR(=(l_shipmode, _UTF-16LE'MAIL'), =(l_shipmode, _UTF-16LE'SHIP')), <(l_commitdate, l_receiptdate)), <(l_shipdate, l_commitdate)), AND(>=(l_receiptdate, 1994-01-01), <(l_receiptdate, 1995-01-01)))], project=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode], metadata=[]]], fields=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0}], high_line_count=[SUM($1)], low_line_count=[SUM($2)])\n   +- LogicalProject(l_shipmode=[$23], $f1=[CASE(SEARCH($5, Sarg[_UTF-16LE'1-URGENT':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\", _UTF-16LE'2-HIGH':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"]:VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), 1, 0)], $f2=[CASE(SEARCH($5, Sarg[(-\u221e.._UTF-16LE'1-URGENT':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), (_UTF-16LE'1-URGENT':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\".._UTF-16LE'2-HIGH':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), (_UTF-16LE'2-HIGH':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"..+\u221e)]:VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), 1, 0)])\n      +- LogicalFilter(condition=[AND(=($0, $9), OR(=($23, _UTF-16LE'MAIL'), =($23, _UTF-16LE'SHIP')), <($20, $21), <($19, $20), >=($21, 1994-01-01), <($21, +(1994-01-01, 12:INTERVAL YEAR)))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[l_shipmode ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[l_shipmode], select=[l_shipmode, Final_SUM(sum$0) AS high_line_count, Final_SUM(sum$1) AS low_line_count])\n      +- NativeExchange(distribution=[hash[l_shipmode]])\n         +- NativeAggregate(groupBy=[l_shipmode], select=[l_shipmode, Partial_SUM($f1) AS sum$0, Partial_SUM($f2) AS sum$1])\n            +- NativeCalc(select=[l_shipmode, CASE(SEARCH(o_orderpriority, Sarg[_UTF-16LE'1-URGENT', _UTF-16LE'2-HIGH']), 1, 0) AS $f1, CASE(SEARCH(o_orderpriority, Sarg[(-\u221e.._UTF-16LE'1-URGENT'), (_UTF-16LE'1-URGENT'.._UTF-16LE'2-HIGH'), (_UTF-16LE'2-HIGH'..+\u221e)]), 1, 0) AS $f2], nativeFunctions=[], jvmFunctions=[])\n               +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[o_orderkey, o_orderpriority, l_orderkey, l_shipmode], isBroadcast=[true], build=[right])\n                  :- RowDataToArrow\n                  :  +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderpriority])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- NativeCalc(select=[l_orderkey, l_shipmode], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'MAIL', _UTF-16LE'SHIP']), <(l_commitdate, l_receiptdate), <(l_shipdate, l_commitdate), SEARCH(l_receiptdate, Sarg[[1994-01-01..1995-01-01)]))], nativeFunctions=[], jvmFunctions=[])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(and(OR(=(l_shipmode, _UTF-16LE'MAIL'), =(l_shipmode, _UTF-16LE'SHIP')), <(l_commitdate, l_receiptdate)), <(l_shipdate, l_commitdate)), AND(>=(l_receiptdate, 1994-01-01), <(l_receiptdate, 1995-01-01)))], project=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode], metadata=[]]], fields=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[l_shipmode ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[l_shipmode], select=[l_shipmode, Final_SUM(sum$0) AS high_line_count, Final_SUM(sum$1) AS low_line_count])\n      +- NativeExchange(distribution=[hash[l_shipmode]])\n         +- NativeAggregate(groupBy=[l_shipmode], select=[l_shipmode, Partial_SUM($f1) AS sum$0, Partial_SUM($f2) AS sum$1])\n            +- NativeCalc(select=[l_shipmode, CASE(SEARCH(o_orderpriority, Sarg[_UTF-16LE'1-URGENT', _UTF-16LE'2-HIGH']), 1, 0) AS $f1, CASE(SEARCH(o_orderpriority, Sarg[(-\u221e.._UTF-16LE'1-URGENT'), (_UTF-16LE'1-URGENT'.._UTF-16LE'2-HIGH'), (_UTF-16LE'2-HIGH'..+\u221e)]), 1, 0) AS $f2], nativeFunctions=[], jvmFunctions=[])\n               +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[o_orderkey, o_orderpriority, l_orderkey, l_shipmode], isBroadcast=[true], build=[right])\n                  :- RowDataToArrow\n                  :  +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_orderpriority], metadata=[]]], fields=[o_orderkey, o_orderpriority])\n                  +- NativeExchange(distribution=[broadcast])\n                     +- NativeCalc(select=[l_orderkey, l_shipmode], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'MAIL', _UTF-16LE'SHIP']), <(l_commitdate, l_receiptdate), <(l_shipdate, l_commitdate), SEARCH(l_receiptdate, Sarg[[1994-01-01..1995-01-01)]))], nativeFunctions=[], jvmFunctions=[])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(and(OR(=(l_shipmode, _UTF-16LE'MAIL'), =(l_shipmode, _UTF-16LE'SHIP')), <(l_commitdate, l_receiptdate)), <(l_shipdate, l_commitdate)), AND(>=(l_receiptdate, 1994-01-01), <(l_receiptdate, 1995-01-01)))], project=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode], metadata=[]]], fields=[l_orderkey, l_shipdate, l_commitdate, l_receiptdate, l_shipmode])\n\nStreamFusion batch: 9 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "096dbb442fc991b0a5e19bc8aa0e89b5",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
          "sourceArrowRows": 75175,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[l_shipmode], select=[l_shipmode, Partial_SUM($f1) AS su",
              "recordsIn": 0,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[l_shipmode], select=[l_shipmode, Partial_SUM($f1) AS su",
              "recordsIn": 307,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_shipmode], select=[l_shipmode, Final_",
              "recordsIn": 1,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_shipmode], select=[l_shipmode, Final_",
              "recordsIn": 1,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_shipmode], where=[AND(SEARCH(l_shipmode, Sarg[_",
              "recordsIn": 0,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_shipmode], where=[AND(SEARCH(l_shipmode, Sarg[_",
              "recordsIn": 60175,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 307
            },
            {
              "operator": "NativeCalc(select=[l_shipmode, CASE(SEARCH(o_orderpriority, Sarg[_UTF-16LE'1-URG",
              "recordsIn": 0,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_shipmode, CASE(SEARCH(o_orderpriority, Sarg[_UTF-16LE'1-URG",
              "recordsIn": 307,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 307
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[o_or",
              "recordsIn": 15307,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 307
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[o_or",
              "recordsIn": 307,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[l_shipmode ASC])[1999]",
              "recordsIn": 2,
              "jobId": "6aa01dccb98beecc6e617ecce2b326ba",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            }
          ]
        }
      ],
      "resultType": "ROW<`l_shipmode` STRING, `high_line_count` INT NOT NULL, `low_line_count` INT NOT NULL> NOT NULL",
      "rows": 2,
      "resultSha256": "c6c7bcef5322699f445da4d52fa4cbed4e78a3d1e60f9bf8959ab7972fe7e4da",
      "stockNanos": [
        276437833
      ],
      "nativeNanos": [
        131104375
      ],
      "stockRuntimeMs": [
        168
      ],
      "nativeRuntimeMs": [
        89
      ],
      "status": "passed"
    },
    {
      "query": 13,
      "sqlSha256": "38b57cf5cb9b9f964337c1abfada5989add38d7c3bad9d339d49ee812ef387a9",
      "sql": "-- database: presto; groups: tpch; tables: customer\nSELECT\n  c_count,\n  count(*) AS custdist\nFROM (\n       SELECT\n         c_custkey,\n         count(o_orderkey)\n       FROM\n         customer\n         LEFT OUTER JOIN orders ON\n                                  c_custkey = o_custkey\n                                  AND o_comment NOT LIKE '%special%requests%'\n       GROUP BY\n         c_custkey\n     ) AS c_orders (c_custkey, c_count)\nGROUP BY\n  c_count\nORDER BY\n  custdist DESC,\n  c_count DESC\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], sort1=[$0], dir0=[DESC-nulls-last], dir1=[DESC-nulls-last])\n+- LogicalAggregate(group=[{0}], custdist=[COUNT()])\n   +- LogicalProject(c_count=[$1])\n      +- LogicalAggregate(group=[{0}], EXPR$1=[COUNT($1)])\n         +- LogicalProject(c_custkey=[$0], o_orderkey=[$8])\n            +- LogicalJoin(condition=[AND(=($0, $9), NOT(LIKE($16, _UTF-16LE'%special%requests%')))], joinType=[left])\n               :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[custdist DESC, c_count DESC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[c_count], select=[c_count, Final_COUNT(count1$0) AS custdist])\n      +- Exchange(distribution=[hash[c_count]])\n         +- LocalHashAggregate(groupBy=[c_count], select=[c_count, Partial_COUNT(*) AS count1$0])\n            +- Calc(select=[EXPR$1 AS c_count])\n               +- HashAggregate(isMerge=[true], groupBy=[c_custkey], select=[c_custkey, Final_COUNT(count$0) AS EXPR$1])\n                  +- Exchange(distribution=[hash[c_custkey]])\n                     +- LocalHashAggregate(groupBy=[c_custkey], select=[c_custkey, Partial_COUNT(o_orderkey) AS count$0])\n                        +- Calc(select=[c_custkey, o_orderkey])\n                           +- HashJoin(joinType=[LeftOuterJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                              :- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey], metadata=[]]], fields=[c_custkey])\n                              +- Exchange(distribution=[broadcast])\n                                 +- Calc(select=[o_orderkey, o_custkey], where=[NOT(LIKE(o_comment, '%special%requests%'))])\n                                    +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[NOT(LIKE(o_comment, _UTF-16LE'%special%requests%'))], project=[o_orderkey, o_custkey, o_comment], metadata=[]]], fields=[o_orderkey, o_custkey, o_comment])\n\n== Optimized Execution Plan ==\nSort(orderBy=[custdist DESC, c_count DESC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[c_count], select=[c_count, Final_COUNT(count1$0) AS custdist])\n      +- Exchange(distribution=[hash[c_count]])\n         +- LocalHashAggregate(groupBy=[c_count], select=[c_count, Partial_COUNT(*) AS count1$0])\n            +- Calc(select=[EXPR$1 AS c_count])\n               +- HashAggregate(isMerge=[true], groupBy=[c_custkey], select=[c_custkey, Final_COUNT(count$0) AS EXPR$1])\n                  +- Exchange(distribution=[hash[c_custkey]])\n                     +- LocalHashAggregate(groupBy=[c_custkey], select=[c_custkey, Partial_COUNT(o_orderkey) AS count$0])\n                        +- Calc(select=[c_custkey, o_orderkey])\n                           +- MultipleInput(readOrder=[1,0], members=[\\nHashJoin(joinType=[LeftOuterJoin], where=[(c_custkey = o_custkey)], select=[c_custkey, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\\n:- [#1] TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey], metadata=[]]], fields=[c_custkey])\\n+- [#2] Exchange(distribution=[broadcast])\\n])\n                              :- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey], metadata=[]]], fields=[c_custkey])\n                              +- Exchange(distribution=[broadcast])\n                                 +- Calc(select=[o_orderkey, o_custkey], where=[NOT(LIKE(o_comment, '%special%requests%'))])\n                                    +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[NOT(LIKE(o_comment, _UTF-16LE'%special%requests%'))], project=[o_orderkey, o_custkey, o_comment], metadata=[]]], fields=[o_orderkey, o_custkey, o_comment])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], sort1=[$0], dir0=[DESC-nulls-last], dir1=[DESC-nulls-last])\n+- LogicalAggregate(group=[{0}], custdist=[COUNT()])\n   +- LogicalProject(c_count=[$1])\n      +- LogicalAggregate(group=[{0}], EXPR$1=[COUNT($1)])\n         +- LogicalProject(c_custkey=[$0], o_orderkey=[$8])\n            +- LogicalJoin(condition=[AND(=($0, $9), NOT(LIKE($16, _UTF-16LE'%special%requests%')))], joinType=[left])\n               :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[custdist DESC, c_count DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[c_count], select=[c_count, Final_COUNT(count1$0) AS custdist])\n      +- NativeExchange(distribution=[hash[c_count]])\n         +- NativeAggregate(groupBy=[c_count], select=[c_count, Partial_COUNT(*) AS count1$0])\n            +- NativeCalc(select=[EXPR$1 AS c_count], nativeFunctions=[], jvmFunctions=[])\n               +- NativeAggregate(isMerge=[true], groupBy=[c_custkey], select=[c_custkey, Final_COUNT(count$0) AS EXPR$1])\n                  +- NativeExchange(distribution=[hash[c_custkey]])\n                     +- NativeAggregate(groupBy=[c_custkey], select=[c_custkey, Partial_COUNT(o_orderkey) AS count$0])\n                        +- NativeCalc(select=[c_custkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                           +- NativeJoin(joinType=[LeftOuterJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                              :- RowDataToArrow\n                              :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey], metadata=[]]], fields=[c_custkey])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[o_orderkey, o_custkey], where=[NOT(LIKE(o_comment, '%special%requests%'))], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[NOT(LIKE(o_comment, _UTF-16LE'%special%requests%'))], project=[o_orderkey, o_custkey, o_comment], metadata=[]]], fields=[o_orderkey, o_custkey, o_comment])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[custdist DESC, c_count DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[c_count], select=[c_count, Final_COUNT(count1$0) AS custdist])\n      +- NativeExchange(distribution=[hash[c_count]])\n         +- NativeAggregate(groupBy=[c_count], select=[c_count, Partial_COUNT(*) AS count1$0])\n            +- NativeCalc(select=[EXPR$1 AS c_count], nativeFunctions=[], jvmFunctions=[])\n               +- NativeAggregate(isMerge=[true], groupBy=[c_custkey], select=[c_custkey, Final_COUNT(count$0) AS EXPR$1])\n                  +- NativeExchange(distribution=[hash[c_custkey]])\n                     +- NativeAggregate(groupBy=[c_custkey], select=[c_custkey, Partial_COUNT(o_orderkey) AS count$0])\n                        +- NativeCalc(select=[c_custkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                           +- NativeJoin(joinType=[LeftOuterJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                              :- RowDataToArrow\n                              :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey], metadata=[]]], fields=[c_custkey])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[o_orderkey, o_custkey], where=[NOT(LIKE(o_comment, '%special%requests%'))], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[NOT(LIKE(o_comment, _UTF-16LE'%special%requests%'))], project=[o_orderkey, o_custkey, o_comment], metadata=[]]], fields=[o_orderkey, o_custkey, o_comment])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], sort1=[$0], dir0=[DESC-nulls-last], dir1=[DESC-nulls-last])\n+- LogicalAggregate(group=[{0}], custdist=[COUNT()])\n   +- LogicalProject(c_count=[$1])\n      +- LogicalAggregate(group=[{0}], EXPR$1=[COUNT($1)])\n         +- LogicalProject(c_custkey=[$0], o_orderkey=[$8])\n            +- LogicalJoin(condition=[AND(=($0, $9), NOT(LIKE($16, _UTF-16LE'%special%requests%')))], joinType=[left])\n               :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n               +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[custdist DESC, c_count DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[c_count], select=[c_count, Final_COUNT(count1$0) AS custdist])\n      +- NativeExchange(distribution=[hash[c_count]])\n         +- NativeAggregate(groupBy=[c_count], select=[c_count, Partial_COUNT(*) AS count1$0])\n            +- NativeCalc(select=[EXPR$1 AS c_count], nativeFunctions=[], jvmFunctions=[])\n               +- NativeAggregate(isMerge=[true], groupBy=[c_custkey], select=[c_custkey, Final_COUNT(count$0) AS EXPR$1])\n                  +- NativeExchange(distribution=[hash[c_custkey]])\n                     +- NativeAggregate(groupBy=[c_custkey], select=[c_custkey, Partial_COUNT(o_orderkey) AS count$0])\n                        +- NativeCalc(select=[c_custkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                           +- NativeJoin(joinType=[LeftOuterJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                              :- RowDataToArrow\n                              :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey], metadata=[]]], fields=[c_custkey])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[o_orderkey, o_custkey], where=[NOT(LIKE(o_comment, '%special%requests%'))], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[NOT(LIKE(o_comment, _UTF-16LE'%special%requests%'))], project=[o_orderkey, o_custkey, o_comment], metadata=[]]], fields=[o_orderkey, o_custkey, o_comment])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[custdist DESC, c_count DESC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[c_count], select=[c_count, Final_COUNT(count1$0) AS custdist])\n      +- NativeExchange(distribution=[hash[c_count]])\n         +- NativeAggregate(groupBy=[c_count], select=[c_count, Partial_COUNT(*) AS count1$0])\n            +- NativeCalc(select=[EXPR$1 AS c_count], nativeFunctions=[], jvmFunctions=[])\n               +- NativeAggregate(isMerge=[true], groupBy=[c_custkey], select=[c_custkey, Final_COUNT(count$0) AS EXPR$1])\n                  +- NativeExchange(distribution=[hash[c_custkey]])\n                     +- NativeAggregate(groupBy=[c_custkey], select=[c_custkey, Partial_COUNT(o_orderkey) AS count$0])\n                        +- NativeCalc(select=[c_custkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])\n                           +- NativeJoin(joinType=[LeftOuterJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, o_orderkey, o_custkey], isBroadcast=[true], build=[right])\n                              :- RowDataToArrow\n                              :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey], metadata=[]]], fields=[c_custkey])\n                              +- NativeExchange(distribution=[broadcast])\n                                 +- NativeCalc(select=[o_orderkey, o_custkey], where=[NOT(LIKE(o_comment, '%special%requests%'))], nativeFunctions=[], jvmFunctions=[])\n                                    +- RowDataToArrow\n                                       +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[NOT(LIKE(o_comment, _UTF-16LE'%special%requests%'))], project=[o_orderkey, o_custkey, o_comment], metadata=[]]], fields=[o_orderkey, o_custkey, o_comment])\n\nStreamFusion batch: 13 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "bfd52b4eff9908227023f3dcdab4e406",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "0ebe7da63809aa2333b43492ef5d712d",
          "sourceArrowRows": 16500,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[c_count], select=[c_count, Partial_COUNT(*) AS count1$0",
              "recordsIn": 740,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 30
            },
            {
              "operator": "NativeAggregate(groupBy=[c_count], select=[c_count, Partial_COUNT(*) AS count1$0",
              "recordsIn": 760,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 31
            },
            {
              "operator": "NativeAggregate(groupBy=[c_custkey], select=[c_custkey, Partial_COUNT(o_orderkey",
              "recordsIn": 0,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[c_custkey], select=[c_custkey, Partial_COUNT(o_orderkey",
              "recordsIn": 15334,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1500
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[c_count], select=[c_count, Final_COUNT(",
              "recordsIn": 29,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 17
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[c_count], select=[c_count, Final_COUNT(",
              "recordsIn": 32,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 16
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[c_custkey], select=[c_custkey, Final_CO",
              "recordsIn": 740,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 740
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[c_custkey], select=[c_custkey, Final_CO",
              "recordsIn": 760,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 760
            },
            {
              "operator": "NativeCalc(select=[EXPR$1 AS c_count], nativeFunctions=[], jvmFunctions=[])[2095",
              "recordsIn": 740,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 740
            },
            {
              "operator": "NativeCalc(select=[EXPR$1 AS c_count], nativeFunctions=[], jvmFunctions=[])[2095",
              "recordsIn": 760,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 760
            },
            {
              "operator": "NativeCalc(select=[c_custkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])[",
              "recordsIn": 0,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_custkey, o_orderkey], nativeFunctions=[], jvmFunctions=[])[",
              "recordsIn": 15334,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 15334
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey], where=[NOT(LIKE(o_comment, '%special%",
              "recordsIn": 0,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_orderkey, o_custkey], where=[NOT(LIKE(o_comment, '%special%",
              "recordsIn": 15000,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 14834
            },
            {
              "operator": "NativeJoin(joinType=[LeftOuterJoin], where=[=(c_custkey, o_custkey)], select=[c_",
              "recordsIn": 14834,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[LeftOuterJoin], where=[=(c_custkey, o_custkey)], select=[c_",
              "recordsIn": 16334,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 15334
            },
            {
              "operator": "NativeSort(orderBy=[custdist DESC, c_count DESC])[2101]",
              "recordsIn": 33,
              "jobId": "0ebe7da63809aa2333b43492ef5d712d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 33
            }
          ]
        }
      ],
      "resultType": "ROW<`c_count` BIGINT NOT NULL, `custdist` BIGINT NOT NULL> NOT NULL",
      "rows": 33,
      "resultSha256": "b4a93aa33cc5ce65310822781fc7aaf990192bff4cd1d1bda67c55cc6101e0b8",
      "stockNanos": [
        276605292
      ],
      "nativeNanos": [
        130118625
      ],
      "stockRuntimeMs": [
        176
      ],
      "nativeRuntimeMs": [
        98
      ],
      "status": "passed"
    },
    {
      "query": 14,
      "sqlSha256": "a8b179c98ec22511cd9e4333d9ee3000eb89ca2cc83291824e76d71fabe88b2c",
      "sql": "-- database: presto; groups: tpch; tables: lineitem,part\nSELECT 100.00 * sum(CASE\n                    WHEN p_type LIKE 'PROMO%'\n                      THEN l_extendedprice * (1 - l_discount)\n                    ELSE 0\n                    END) / sum(l_extendedprice * (1 - l_discount)) AS promo_revenue\nFROM\n  lineitem,\n  part\nWHERE\n  l_partkey = p_partkey\n  AND l_shipdate >= DATE '1995-09-01'\n  AND l_shipdate < DATE '1995-09-01' + INTERVAL '1' MONTH\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalProject(promo_revenue=[/(*(100.00:DECIMAL(5, 2), $0), $1)])\n+- LogicalAggregate(group=[{}], agg#0=[SUM($0)], agg#1=[SUM($1)])\n   +- LogicalProject($f0=[CASE(LIKE($20, _UTF-16LE'PROMO%'), *($5, -(1, $6)), 0:DECIMAL(32, 4))], $f1=[*($5, -(1, $6))])\n      +- LogicalFilter(condition=[AND(=($1, $16), >=($10, 1995-09-01), <($10, +(1995-09-01, 1:INTERVAL MONTH)))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nCalc(select=[/(*(100.00, $f0), $f1) AS promo_revenue])\n+- HashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0, Final_SUM(sum$1) AS $f1])\n   +- Exchange(distribution=[single])\n      +- LocalHashAggregate(select=[Partial_SUM($f0) AS sum$0, Partial_SUM($f1) AS sum$1])\n         +- Calc(select=[CASE(LIKE(p_type, 'PROMO%'), *(l_extendedprice, -(1, l_discount)), 0) AS $f0, *(l_extendedprice, -(1, l_discount)) AS $f1])\n            +- HashJoin(joinType=[InnerJoin], where=[=(l_partkey, p_partkey)], select=[l_partkey, l_extendedprice, l_discount, p_partkey, p_type], isBroadcast=[true], build=[left])\n               :- Exchange(distribution=[broadcast])\n               :  +- Calc(select=[l_partkey, l_extendedprice, l_discount], where=[SEARCH(l_shipdate, Sarg[[1995-09-01..1995-10-01)])])\n               :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-09-01), <(l_shipdate, 1995-10-01))], project=[l_partkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_partkey, l_extendedprice, l_discount, l_shipdate])\n               +- TableSourceScan(table=[[default_catalog, default_database, part, project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n\n== Optimized Execution Plan ==\nCalc(select=[((100.00 * $f0) / $f1) AS promo_revenue])\n+- HashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0, Final_SUM(sum$1) AS $f1])\n   +- Exchange(distribution=[single])\n      +- LocalHashAggregate(select=[Partial_SUM($f0) AS sum$0, Partial_SUM($f1) AS sum$1])\n         +- Calc(select=[CASE(LIKE(p_type, 'PROMO%'), (l_extendedprice * (1 - l_discount)), 0) AS $f0, (l_extendedprice * (1 - l_discount)) AS $f1])\n            +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[(l_partkey = p_partkey)], select=[l_partkey, l_extendedprice, l_discount, p_partkey, p_type], isBroadcast=[true], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- [#2] TableSourceScan(table=[[default_catalog, default_database, part, project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\\n])\n               :- Exchange(distribution=[broadcast])\n               :  +- Calc(select=[l_partkey, l_extendedprice, l_discount], where=[SEARCH(l_shipdate, Sarg[[1995-09-01..1995-10-01)])])\n               :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-09-01), <(l_shipdate, 1995-10-01))], project=[l_partkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_partkey, l_extendedprice, l_discount, l_shipdate])\n               +- TableSourceScan(table=[[default_catalog, default_database, part, project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalProject(promo_revenue=[/(*(100.00:DECIMAL(5, 2), $0), $1)])\n+- LogicalAggregate(group=[{}], agg#0=[SUM($0)], agg#1=[SUM($1)])\n   +- LogicalProject($f0=[CASE(LIKE($20, _UTF-16LE'PROMO%'), *($5, -(1, $6)), 0:DECIMAL(32, 4))], $f1=[*($5, -(1, $6))])\n      +- LogicalFilter(condition=[AND(=($1, $16), >=($10, 1995-09-01), <($10, +(1995-09-01, 1:INTERVAL MONTH)))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[/(*(100.00, $f0), $f1) AS promo_revenue], nativeFunctions=[], jvmFunctions=[])\n+- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0, Final_SUM(sum$1) AS $f1])\n   +- NativeExchange(distribution=[single])\n      +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0, Partial_SUM($f1) AS sum$1])\n         +- NativeCalc(select=[CASE(LIKE(p_type, 'PROMO%'), *(l_extendedprice, -(1, l_discount)), 0) AS $f0, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeFunctions=[], jvmFunctions=[])\n            +- NativeJoin(joinType=[InnerJoin], where=[=(l_partkey, p_partkey)], select=[l_partkey, l_extendedprice, l_discount, p_partkey, p_type], isBroadcast=[true], build=[left])\n               :- NativeExchange(distribution=[broadcast])\n               :  +- NativeCalc(select=[l_partkey, l_extendedprice, l_discount], where=[SEARCH(l_shipdate, Sarg[[1995-09-01..1995-10-01)])], nativeFunctions=[], jvmFunctions=[])\n               :     +- RowDataToArrow\n               :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-09-01), <(l_shipdate, 1995-10-01))], project=[l_partkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_partkey, l_extendedprice, l_discount, l_shipdate])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, part, project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[/(*(100.00, $f0), $f1) AS promo_revenue], nativeFunctions=[], jvmFunctions=[])\n+- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0, Final_SUM(sum$1) AS $f1])\n   +- NativeExchange(distribution=[single])\n      +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0, Partial_SUM($f1) AS sum$1])\n         +- NativeCalc(select=[CASE(LIKE(p_type, 'PROMO%'), *(l_extendedprice, -(1, l_discount)), 0) AS $f0, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeFunctions=[], jvmFunctions=[])\n            +- NativeJoin(joinType=[InnerJoin], where=[=(l_partkey, p_partkey)], select=[l_partkey, l_extendedprice, l_discount, p_partkey, p_type], isBroadcast=[true], build=[left])\n               :- NativeExchange(distribution=[broadcast])\n               :  +- NativeCalc(select=[l_partkey, l_extendedprice, l_discount], where=[SEARCH(l_shipdate, Sarg[[1995-09-01..1995-10-01)])], nativeFunctions=[], jvmFunctions=[])\n               :     +- RowDataToArrow\n               :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-09-01), <(l_shipdate, 1995-10-01))], project=[l_partkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_partkey, l_extendedprice, l_discount, l_shipdate])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, part, project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalProject(promo_revenue=[/(*(100.00:DECIMAL(5, 2), $0), $1)])\n+- LogicalAggregate(group=[{}], agg#0=[SUM($0)], agg#1=[SUM($1)])\n   +- LogicalProject($f0=[CASE(LIKE($20, _UTF-16LE'PROMO%'), *($5, -(1, $6)), 0:DECIMAL(32, 4))], $f1=[*($5, -(1, $6))])\n      +- LogicalFilter(condition=[AND(=($1, $16), >=($10, 1995-09-01), <($10, +(1995-09-01, 1:INTERVAL MONTH)))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[/(*(100.00, $f0), $f1) AS promo_revenue], nativeFunctions=[], jvmFunctions=[])\n+- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0, Final_SUM(sum$1) AS $f1])\n   +- NativeExchange(distribution=[single])\n      +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0, Partial_SUM($f1) AS sum$1])\n         +- NativeCalc(select=[CASE(LIKE(p_type, 'PROMO%'), *(l_extendedprice, -(1, l_discount)), 0) AS $f0, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeFunctions=[], jvmFunctions=[])\n            +- NativeJoin(joinType=[InnerJoin], where=[=(l_partkey, p_partkey)], select=[l_partkey, l_extendedprice, l_discount, p_partkey, p_type], isBroadcast=[true], build=[left])\n               :- NativeExchange(distribution=[broadcast])\n               :  +- NativeCalc(select=[l_partkey, l_extendedprice, l_discount], where=[SEARCH(l_shipdate, Sarg[[1995-09-01..1995-10-01)])], nativeFunctions=[], jvmFunctions=[])\n               :     +- RowDataToArrow\n               :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-09-01), <(l_shipdate, 1995-10-01))], project=[l_partkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_partkey, l_extendedprice, l_discount, l_shipdate])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, part, project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[/(*(100.00, $f0), $f1) AS promo_revenue], nativeFunctions=[], jvmFunctions=[])\n+- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0, Final_SUM(sum$1) AS $f1])\n   +- NativeExchange(distribution=[single])\n      +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0, Partial_SUM($f1) AS sum$1])\n         +- NativeCalc(select=[CASE(LIKE(p_type, 'PROMO%'), *(l_extendedprice, -(1, l_discount)), 0) AS $f0, *(l_extendedprice, -(1, l_discount)) AS $f1], nativeFunctions=[], jvmFunctions=[])\n            +- NativeJoin(joinType=[InnerJoin], where=[=(l_partkey, p_partkey)], select=[l_partkey, l_extendedprice, l_discount, p_partkey, p_type], isBroadcast=[true], build=[left])\n               :- NativeExchange(distribution=[broadcast])\n               :  +- NativeCalc(select=[l_partkey, l_extendedprice, l_discount], where=[SEARCH(l_shipdate, Sarg[[1995-09-01..1995-10-01)])], nativeFunctions=[], jvmFunctions=[])\n               :     +- RowDataToArrow\n               :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1995-09-01), <(l_shipdate, 1995-10-01))], project=[l_partkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_partkey, l_extendedprice, l_discount, l_shipdate])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, part, project=[p_partkey, p_type], metadata=[]]], fields=[p_partkey, p_type])\n\nStreamFusion batch: 8 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "0f3f19c939096aacd24372bed67e816a",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "b89e7a4828495295bec465fdae737a1b",
          "sourceArrowRows": 62175,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0, Final_SUM(sum$1",
              "recordsIn": 1,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM($f0) AS sum$0, Partial_SUM($f1) AS sum$1])[2",
              "recordsIn": 0,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM($f0) AS sum$0, Partial_SUM($f1) AS sum$1])[2",
              "recordsIn": 722,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[/(*(100.00, $f0), $f1) AS promo_revenue], nativeFunctions=[],",
              "recordsIn": 1,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[CASE(LIKE(p_type, 'PROMO%'), *(l_extendedprice, -(1, l_discou",
              "recordsIn": 0,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[CASE(LIKE(p_type, 'PROMO%'), *(l_extendedprice, -(1, l_discou",
              "recordsIn": 722,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 722
            },
            {
              "operator": "NativeCalc(select=[l_partkey, l_extendedprice, l_discount], where=[SEARCH(l_ship",
              "recordsIn": 0,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_partkey, l_extendedprice, l_discount], where=[SEARCH(l_ship",
              "recordsIn": 60175,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 722
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_partkey, p_partkey)], select=[l_part",
              "recordsIn": 2722,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 722
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(l_partkey, p_partkey)], select=[l_part",
              "recordsIn": 722,
              "jobId": "b89e7a4828495295bec465fdae737a1b",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            }
          ]
        }
      ],
      "resultType": "ROW<`promo_revenue` DECIMAL(38, 6)> NOT NULL",
      "rows": 1,
      "resultSha256": "00d74dda8105046f3247bffec02cc305ba169e3bdc180c1167e9a55261149c83",
      "stockNanos": [
        249096625
      ],
      "nativeNanos": [
        128210041
      ],
      "stockRuntimeMs": [
        123
      ],
      "nativeRuntimeMs": [
        85
      ],
      "status": "passed"
    },
    {
      "query": 15,
      "sqlSha256": "24ffeb12ad93550c3241dbea68868484c9ad6fe71d3185aeb49b844539b0ec27",
      "sql": "-- database: presto; groups: tpch; tables: lineitem,supplier\n-- CREATE OR REPLACE VIEW revenue AS\n--   SELECT\n--     l_suppkey AS supplier_no,\n--     sum(l_extendedprice * (1 - l_discount)) AS total_revenue\n--   FROM\n--     lineitem\n--   WHERE\n--     l_shipdate >= DATE '1996-01-01'\n--     AND l_shipdate < DATE '1996-01-01' + INTERVAL '3' MONTH\n-- GROUP BY\n--   l_suppkey;\n--\n-- SELECT\n--   s_suppkey,\n--   s_name,\n--   s_address,\n--   s_phone,\n--   total_revenue\n-- FROM\n--   supplier,\n--   revenue\n-- WHERE\n--   s_suppkey = supplier_no\n--   AND total_revenue = (\n--     SELECT max(total_revenue)\n--     FROM\n--       revenue\n--   )\n-- ORDER BY\n--   s_suppkey;\n-- we don't support view\n\nSELECT\n  s_suppkey,\n  s_name,\n  s_address,\n  s_phone,\n  total_revenue\nFROM\n  supplier, (\n  SELECT\n    l_suppkey AS supplier_no,\n    sum(l_extendedprice * (1 - l_discount)) AS total_revenue\n  FROM\n    lineitem\n  WHERE\n    l_shipdate >= DATE '1996-01-01'\n    AND l_shipdate < DATE '1996-01-01' + INTERVAL '3' MONTH\n  GROUP BY\n    l_suppkey) AS revenue\nWHERE\n  s_suppkey = supplier_no\n  AND total_revenue = (\n    SELECT max(total_revenue)\n    FROM (\n      SELECT\n        l_suppkey AS supplier_no,\n        sum(l_extendedprice * (1 - l_discount)) AS total_revenue\n      FROM\n        lineitem\n      WHERE\n        l_shipdate >= DATE '1996-01-01'\n        AND l_shipdate < DATE '1996-01-01' + INTERVAL '3' MONTH\n      GROUP BY\n        l_suppkey) AS revenue\n  )\nORDER BY\n  s_suppkey;\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalProject(s_suppkey=[$0], s_name=[$1], s_address=[$2], s_phone=[$4], total_revenue=[$8])\n   +- LogicalFilter(condition=[AND(=($0, $7), =($8, $SCALAR_QUERY({\nLogicalAggregate(group=[{}], EXPR$0=[MAX($0)])\n  LogicalProject(total_revenue=[$1])\n    LogicalAggregate(group=[{0}], total_revenue=[SUM($1)])\n      LogicalProject(supplier_no=[$2], $f1=[*($5, -(1, $6))])\n        LogicalFilter(condition=[AND(>=($10, 1996-01-01), <($10, +(1996-01-01, 3:INTERVAL MONTH)))])\n          LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})))])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n         +- LogicalAggregate(group=[{0}], total_revenue=[SUM($1)])\n            +- LogicalProject(supplier_no=[$2], $f1=[*($5, -(1, $6))])\n               +- LogicalFilter(condition=[AND(>=($10, 1996-01-01), <($10, +(1996-01-01, 3:INTERVAL MONTH)))])\n                  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[s_suppkey ASC])\n+- Exchange(distribution=[single])\n   +- Calc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue])\n      +- NestedLoopJoin(joinType=[InnerJoin], where=[=(total_revenue, EXPR$0)], select=[s_suppkey, s_name, s_address, s_phone, total_revenue, EXPR$0], build=[right], singleRowJoin=[true])\n         :- Calc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue])\n         :  +- SortMergeJoin(joinType=[InnerJoin], where=[=(s_suppkey, supplier_no)], select=[s_suppkey, s_name, s_address, s_phone, supplier_no, total_revenue])\n         :     :- Exchange(distribution=[hash[s_suppkey]])\n         :     :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_phone], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_phone])\n         :     +- HashAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Final_SUM(sum$0) AS total_revenue])\n         :        +- Exchange(distribution=[hash[supplier_no]])\n         :           +- LocalHashAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS sum$0])\n         :              +- Calc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)) AS $f1], where=[SEARCH(l_shipdate, Sarg[[1996-01-01..1996-04-01)])])\n         :                 +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1996-01-01), <(l_shipdate, 1996-04-01))], project=[l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_suppkey, l_extendedprice, l_discount, l_shipdate])\n         +- Exchange(distribution=[broadcast])\n            +- HashAggregate(isMerge=[true], select=[Final_MAX(max$0) AS EXPR$0])\n               +- Exchange(distribution=[single])\n                  +- LocalHashAggregate(select=[Partial_MAX(total_revenue) AS max$0])\n                     +- Calc(select=[total_revenue])\n                        +- HashAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Final_SUM(sum$0) AS total_revenue])\n                           +- Exchange(distribution=[hash[supplier_no]])\n                              +- LocalHashAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS sum$0])\n                                 +- Calc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)) AS $f1], where=[SEARCH(l_shipdate, Sarg[[1996-01-01..1996-04-01)])])\n                                    +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1996-01-01), <(l_shipdate, 1996-04-01))], project=[l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_suppkey, l_extendedprice, l_discount, l_shipdate])\n\n== Optimized Execution Plan ==\nSort(orderBy=[s_suppkey ASC])\n+- Exchange(distribution=[single])\n   +- Calc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue])\n      +- NestedLoopJoin(joinType=[InnerJoin], where=[(total_revenue = EXPR$0)], select=[s_suppkey, s_name, s_address, s_phone, total_revenue, EXPR$0], build=[right], singleRowJoin=[true])\n         :- Exchange(distribution=[any])\n         :  +- Calc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue])\n         :     +- SortMergeJoin(joinType=[InnerJoin], where=[(s_suppkey = supplier_no)], select=[s_suppkey, s_name, s_address, s_phone, supplier_no, total_revenue])\n         :        :- Exchange(distribution=[hash[s_suppkey]])\n         :        :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_phone], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_phone])\n         :        +- Exchange(distribution=[keep_input_as_is[hash[supplier_no]]])\n         :           +- HashAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Final_SUM(sum$0) AS total_revenue])(reuse_id=[1])\n         :              +- Exchange(distribution=[hash[supplier_no]])\n         :                 +- LocalHashAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS sum$0])\n         :                    +- Calc(select=[l_suppkey AS supplier_no, (l_extendedprice * (1 - l_discount)) AS $f1], where=[SEARCH(l_shipdate, Sarg[[1996-01-01..1996-04-01)])])\n         :                       +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1996-01-01), <(l_shipdate, 1996-04-01))], project=[l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_suppkey, l_extendedprice, l_discount, l_shipdate])\n         +- Exchange(distribution=[broadcast])\n            +- HashAggregate(isMerge=[true], select=[Final_MAX(max$0) AS EXPR$0])\n               +- Exchange(distribution=[single])\n                  +- LocalHashAggregate(select=[Partial_MAX(total_revenue) AS max$0])\n                     +- Calc(select=[total_revenue])\n                        +- Reused(reference_id=[1])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalProject(s_suppkey=[$0], s_name=[$1], s_address=[$2], s_phone=[$4], total_revenue=[$8])\n   +- LogicalFilter(condition=[AND(=($0, $7), =($8, $SCALAR_QUERY({\nLogicalAggregate(group=[{}], EXPR$0=[MAX($0)])\n  LogicalProject(total_revenue=[$1])\n    LogicalAggregate(group=[{0}], total_revenue=[SUM($1)])\n      LogicalProject(supplier_no=[$2], $f1=[*($5, -(1, $6))])\n        LogicalFilter(condition=[AND(>=($10, 1996-01-01), <($10, +(1996-01-01, 3:INTERVAL MONTH)))])\n          LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})))])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n         +- LogicalAggregate(group=[{0}], total_revenue=[SUM($1)])\n            +- LogicalProject(supplier_no=[$2], $f1=[*($5, -(1, $6))])\n               +- LogicalFilter(condition=[AND(>=($10, 1996-01-01), <($10, +(1996-01-01, 3:INTERVAL MONTH)))])\n                  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[s_suppkey ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[=(total_revenue, EXPR$0)], select=[s_suppkey, s_name, s_address, s_phone, total_revenue, EXPR$0], build=[right], singleRowJoin=[true])\n         :- NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], nativeFunctions=[], jvmFunctions=[])\n         :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, supplier_no)], select=[s_suppkey, s_name, s_address, s_phone, supplier_no, total_revenue])\n         :     :- NativeExchange(distribution=[hash[s_suppkey]])\n         :     :  +- RowDataToArrow\n         :     :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_phone], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_phone])\n         :     +- NativeExchange(consumers=[2])\n         :        +- NativeShare(consumers=[2])\n         :           +- NativeAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Final_SUM(sum$0) AS total_revenue])\n         :              +- NativeExchange(distribution=[hash[supplier_no]])\n         :                 +- NativeAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS sum$0])\n         :                    +- NativeCalc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)) AS $f1], where=[SEARCH(l_shipdate, Sarg[[1996-01-01..1996-04-01)])], nativeFunctions=[], jvmFunctions=[])\n         :                       +- RowDataToArrow\n         :                          +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1996-01-01), <(l_shipdate, 1996-04-01))], project=[l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_suppkey, l_extendedprice, l_discount, l_shipdate])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeAggregate(isMerge=[true], select=[Final_MAX(max$0) AS EXPR$0])\n               +- NativeExchange(distribution=[single])\n                  +- NativeAggregate(select=[Partial_MAX(total_revenue) AS max$0])\n                     +- NativeCalc(select=[total_revenue], nativeFunctions=[], jvmFunctions=[])\n                        +- NativeShare(consumers=[2])\n                           +- NativeAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Final_SUM(sum$0) AS total_revenue])\n                              +- NativeExchange(distribution=[hash[supplier_no]])\n                                 +- NativeAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS sum$0])\n                                    +- NativeCalc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)) AS $f1], where=[SEARCH(l_shipdate, Sarg[[1996-01-01..1996-04-01)])], nativeFunctions=[], jvmFunctions=[])\n                                       +- RowDataToArrow\n                                          +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1996-01-01), <(l_shipdate, 1996-04-01))], project=[l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_suppkey, l_extendedprice, l_discount, l_shipdate])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[s_suppkey ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[=(total_revenue, EXPR$0)], select=[s_suppkey, s_name, s_address, s_phone, total_revenue, EXPR$0], build=[right], singleRowJoin=[true])\n         :- NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], nativeFunctions=[], jvmFunctions=[])\n         :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, supplier_no)], select=[s_suppkey, s_name, s_address, s_phone, supplier_no, total_revenue])\n         :     :- NativeExchange(distribution=[hash[s_suppkey]])\n         :     :  +- RowDataToArrow\n         :     :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_phone], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_phone])\n         :     +- NativeExchange(consumers=[2])\n         :        +- NativeShare(consumers=[2])(reuse_id=[1])\n         :           +- NativeAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Final_SUM(sum$0) AS total_revenue])\n         :              +- NativeExchange(distribution=[hash[supplier_no]])\n         :                 +- NativeAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS sum$0])\n         :                    +- NativeCalc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)) AS $f1], where=[SEARCH(l_shipdate, Sarg[[1996-01-01..1996-04-01)])], nativeFunctions=[], jvmFunctions=[])\n         :                       +- RowDataToArrow\n         :                          +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1996-01-01), <(l_shipdate, 1996-04-01))], project=[l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_suppkey, l_extendedprice, l_discount, l_shipdate])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeAggregate(isMerge=[true], select=[Final_MAX(max$0) AS EXPR$0])\n               +- NativeExchange(distribution=[single])\n                  +- NativeAggregate(select=[Partial_MAX(total_revenue) AS max$0])\n                     +- NativeCalc(select=[total_revenue], nativeFunctions=[], jvmFunctions=[])\n                        +- Reused(reference_id=[1])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalProject(s_suppkey=[$0], s_name=[$1], s_address=[$2], s_phone=[$4], total_revenue=[$8])\n   +- LogicalFilter(condition=[AND(=($0, $7), =($8, $SCALAR_QUERY({\nLogicalAggregate(group=[{}], EXPR$0=[MAX($0)])\n  LogicalProject(total_revenue=[$1])\n    LogicalAggregate(group=[{0}], total_revenue=[SUM($1)])\n      LogicalProject(supplier_no=[$2], $f1=[*($5, -(1, $6))])\n        LogicalFilter(condition=[AND(>=($10, 1996-01-01), <($10, +(1996-01-01, 3:INTERVAL MONTH)))])\n          LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})))])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n         +- LogicalAggregate(group=[{0}], total_revenue=[SUM($1)])\n            +- LogicalProject(supplier_no=[$2], $f1=[*($5, -(1, $6))])\n               +- LogicalFilter(condition=[AND(>=($10, 1996-01-01), <($10, +(1996-01-01, 3:INTERVAL MONTH)))])\n                  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[s_suppkey ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[=(total_revenue, EXPR$0)], select=[s_suppkey, s_name, s_address, s_phone, total_revenue, EXPR$0], build=[right], singleRowJoin=[true])\n         :- NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], nativeFunctions=[], jvmFunctions=[])\n         :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, supplier_no)], select=[s_suppkey, s_name, s_address, s_phone, supplier_no, total_revenue])\n         :     :- NativeExchange(distribution=[hash[s_suppkey]])\n         :     :  +- RowDataToArrow\n         :     :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_phone], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_phone])\n         :     +- NativeExchange(consumers=[2])\n         :        +- NativeShare(consumers=[2])\n         :           +- NativeAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Final_SUM(sum$0) AS total_revenue])\n         :              +- NativeExchange(distribution=[hash[supplier_no]])\n         :                 +- NativeAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS sum$0])\n         :                    +- NativeCalc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)) AS $f1], where=[SEARCH(l_shipdate, Sarg[[1996-01-01..1996-04-01)])], nativeFunctions=[], jvmFunctions=[])\n         :                       +- RowDataToArrow\n         :                          +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1996-01-01), <(l_shipdate, 1996-04-01))], project=[l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_suppkey, l_extendedprice, l_discount, l_shipdate])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeAggregate(isMerge=[true], select=[Final_MAX(max$0) AS EXPR$0])\n               +- NativeExchange(distribution=[single])\n                  +- NativeAggregate(select=[Partial_MAX(total_revenue) AS max$0])\n                     +- NativeCalc(select=[total_revenue], nativeFunctions=[], jvmFunctions=[])\n                        +- NativeShare(consumers=[2])\n                           +- NativeAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Final_SUM(sum$0) AS total_revenue])\n                              +- NativeExchange(distribution=[hash[supplier_no]])\n                                 +- NativeAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS sum$0])\n                                    +- NativeCalc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)) AS $f1], where=[SEARCH(l_shipdate, Sarg[[1996-01-01..1996-04-01)])], nativeFunctions=[], jvmFunctions=[])\n                                       +- RowDataToArrow\n                                          +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1996-01-01), <(l_shipdate, 1996-04-01))], project=[l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_suppkey, l_extendedprice, l_discount, l_shipdate])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[s_suppkey ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[=(total_revenue, EXPR$0)], select=[s_suppkey, s_name, s_address, s_phone, total_revenue, EXPR$0], build=[right], singleRowJoin=[true])\n         :- NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], nativeFunctions=[], jvmFunctions=[])\n         :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, supplier_no)], select=[s_suppkey, s_name, s_address, s_phone, supplier_no, total_revenue])\n         :     :- NativeExchange(distribution=[hash[s_suppkey]])\n         :     :  +- RowDataToArrow\n         :     :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_phone], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_phone])\n         :     +- NativeExchange(consumers=[2])\n         :        +- NativeShare(consumers=[2])(reuse_id=[1])\n         :           +- NativeAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Final_SUM(sum$0) AS total_revenue])\n         :              +- NativeExchange(distribution=[hash[supplier_no]])\n         :                 +- NativeAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS sum$0])\n         :                    +- NativeCalc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)) AS $f1], where=[SEARCH(l_shipdate, Sarg[[1996-01-01..1996-04-01)])], nativeFunctions=[], jvmFunctions=[])\n         :                       +- RowDataToArrow\n         :                          +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(>=(l_shipdate, 1996-01-01), <(l_shipdate, 1996-04-01))], project=[l_suppkey, l_extendedprice, l_discount, l_shipdate], metadata=[]]], fields=[l_suppkey, l_extendedprice, l_discount, l_shipdate])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeAggregate(isMerge=[true], select=[Final_MAX(max$0) AS EXPR$0])\n               +- NativeExchange(distribution=[single])\n                  +- NativeAggregate(select=[Partial_MAX(total_revenue) AS max$0])\n                     +- NativeCalc(select=[total_revenue], nativeFunctions=[], jvmFunctions=[])\n                        +- Reused(reference_id=[1])\n\nStreamFusion batch: 16 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "f1a009f9c44564e981657a88976aa540",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
          "sourceArrowRows": 60275,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS ",
              "recordsIn": 0,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[supplier_no], select=[supplier_no, Partial_SUM($f1) AS ",
              "recordsIn": 2284,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 100
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Fina",
              "recordsIn": 46,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 46
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[supplier_no], select=[supplier_no, Fina",
              "recordsIn": 54,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 54
            },
            {
              "operator": "NativeAggregate(isMerge=[true], select=[Final_MAX(max$0) AS EXPR$0])[2303]",
              "recordsIn": 2,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(select=[Partial_MAX(total_revenue) AS max$0])[2301]",
              "recordsIn": 46,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(select=[Partial_MAX(total_revenue) AS max$0])[2301]",
              "recordsIn": 54,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)",
              "recordsIn": 0,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_suppkey AS supplier_no, *(l_extendedprice, -(1, l_discount)",
              "recordsIn": 60175,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2284
            },
            {
              "operator": "NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], native",
              "recordsIn": 1,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], native",
              "recordsIn": 1,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], native",
              "recordsIn": 46,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 46
            },
            {
              "operator": "NativeCalc(select=[s_suppkey, s_name, s_address, s_phone, total_revenue], native",
              "recordsIn": 54,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 54
            },
            {
              "operator": "NativeCalc(select=[total_revenue], nativeFunctions=[], jvmFunctions=[])[2299]",
              "recordsIn": 46,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 46
            },
            {
              "operator": "NativeCalc(select=[total_revenue], nativeFunctions=[], jvmFunctions=[])[2299]",
              "recordsIn": 54,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 54
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, supplier_no)], select=[s_su",
              "recordsIn": 108,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 54
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, supplier_no)], select=[s_su",
              "recordsIn": 92,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 46
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(total_revenue, EXPR$0)], select=[s_sup",
              "recordsIn": 47,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(total_revenue, EXPR$0)], select=[s_sup",
              "recordsIn": 55,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeShareExecNode[2293]",
              "recordsIn": 46,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 46
            },
            {
              "operator": "NativeShareExecNode[2293]",
              "recordsIn": 54,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 54
            },
            {
              "operator": "NativeSort(orderBy=[s_suppkey ASC])[2309]",
              "recordsIn": 2,
              "jobId": "8f7ecfae52da8872ccc2a66b09122d17",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            }
          ]
        }
      ],
      "resultType": "ROW<`s_suppkey` BIGINT, `s_name` STRING, `s_address` STRING, `s_phone` STRING, `total_revenue` DECIMAL(38, 4)> NOT NULL",
      "rows": 1,
      "resultSha256": "71bf5a765d0300a567172c868ce9ad15ed37b7665c8555dbf4837c6e28c4a6c9",
      "stockNanos": [
        279706625
      ],
      "nativeNanos": [
        150753541
      ],
      "stockRuntimeMs": [
        158
      ],
      "nativeRuntimeMs": [
        94
      ],
      "status": "passed"
    },
    {
      "query": 16,
      "sqlSha256": "71a2bdd941e0fe9929daed3b93b988e6d666625b7ed7c70faa9678d3d5ce6079",
      "sql": "-- database: presto; groups: tpch; tables: partsupp,part,supplier\nSELECT\n  p_brand,\n  p_type,\n  p_size,\n  count(DISTINCT ps_suppkey) AS supplier_cnt\nFROM\n  partsupp,\n  part\nWHERE\n  p_partkey = ps_partkey\n  AND p_brand <> 'Brand#45'\n  AND p_type NOT LIKE 'MEDIUM POLISHED%'\n  AND p_size IN (49, 14, 23, 45, 19, 3, 36, 9)\n  AND ps_suppkey NOT IN (\n    SELECT s_suppkey\n    FROM\n      supplier\n    WHERE\n      s_comment LIKE '%Customer%Complaints%'\n  )\nGROUP BY\n  p_brand,\n  p_type,\n  p_size\nORDER BY\n  supplier_cnt DESC,\n  p_brand,\n  p_type,\n  p_size\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$3], sort1=[$0], sort2=[$1], sort3=[$2], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], dir2=[ASC-nulls-first], dir3=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0, 1, 2}], supplier_cnt=[COUNT(DISTINCT $3)])\n   +- LogicalProject(p_brand=[$8], p_type=[$9], p_size=[$10], ps_suppkey=[$1])\n      +- LogicalFilter(condition=[AND(=($5, $0), <>($8, _UTF-16LE'Brand#45'), NOT(LIKE($9, _UTF-16LE'MEDIUM POLISHED%')), OR(=($10, 49), =($10, 14), =($10, 23), =($10, 45), =($10, 19), =($10, 3), =($10, 36), =($10, 9)), NOT(IN($1, {\nLogicalProject(s_suppkey=[$0])\n  LogicalFilter(condition=[LIKE($6, _UTF-16LE'%Customer%Complaints%')])\n    LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n})))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[supplier_cnt DESC, p_brand ASC, p_type ASC, p_size ASC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Final_COUNT(count$0) AS supplier_cnt])\n      +- Exchange(distribution=[hash[p_brand, p_type, p_size]])\n         +- LocalHashAggregate(groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Partial_COUNT(ps_suppkey) AS count$0])\n            +- HashAggregate(isMerge=[true], groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n               +- Exchange(distribution=[hash[ps_suppkey, p_brand, p_type, p_size]])\n                  +- LocalHashAggregate(groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n                     +- NestedLoopJoin(joinType=[LeftAntiJoin], where=[OR(IS NULL(ps_suppkey), IS NULL(s_suppkey), =(ps_suppkey, s_suppkey))], select=[ps_suppkey, p_brand, p_type, p_size], build=[right])\n                        :- Calc(select=[ps_suppkey, p_brand, p_type, p_size])\n                        :  +- HashJoin(joinType=[InnerJoin], where=[=(p_partkey, ps_partkey)], select=[ps_partkey, ps_suppkey, p_partkey, p_brand, p_type, p_size], isBroadcast=[true], build=[right])\n                        :     :- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey], metadata=[]]], fields=[ps_partkey, ps_suppkey])\n                        :     +- Exchange(distribution=[broadcast])\n                        :        +- Calc(select=[p_partkey, p_brand, p_type, p_size], where=[AND(<>(p_brand, 'Brand#45'), SEARCH(p_size, Sarg[3, 9, 14, 19, 23, 36, 45, 49]), NOT(LIKE(p_type, 'MEDIUM POLISHED%')))])\n                        :           +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(and(<>(p_brand, _UTF-16LE'Brand#45':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(OR(OR(OR(OR(=(p_size, 3), =(p_size, 9)), =(p_size, 14)), =(p_size, 19)), =(p_size, 23)), =(p_size, 36)), =(p_size, 45)), =(p_size, 49))), NOT(LIKE(p_type, _UTF-16LE'MEDIUM POLISHED%')))], project=[p_partkey, p_brand, p_type, p_size], metadata=[]]], fields=[p_partkey, p_brand, p_type, p_size])\n                        +- Exchange(distribution=[broadcast])\n                           +- Calc(select=[s_suppkey], where=[LIKE(s_comment, '%Customer%Complaints%')])\n                              +- TableSourceScan(table=[[default_catalog, default_database, supplier, filter=[LIKE(s_comment, _UTF-16LE'%Customer%Complaints%')], project=[s_suppkey, s_comment], metadata=[]]], fields=[s_suppkey, s_comment])\n\n== Optimized Execution Plan ==\nSort(orderBy=[supplier_cnt DESC, p_brand ASC, p_type ASC, p_size ASC])\n+- Exchange(distribution=[single])\n   +- HashAggregate(isMerge=[true], groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Final_COUNT(count$0) AS supplier_cnt])\n      +- Exchange(distribution=[hash[p_brand, p_type, p_size]])\n         +- LocalHashAggregate(groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Partial_COUNT(ps_suppkey) AS count$0])\n            +- HashAggregate(isMerge=[true], groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n               +- Exchange(distribution=[hash[ps_suppkey, p_brand, p_type, p_size]])\n                  +- LocalHashAggregate(groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n                     +- MultipleInput(readOrder=[0,1,0], members=[\\nNestedLoopJoin(joinType=[LeftAntiJoin], where=[(ps_suppkey IS NULL OR s_suppkey IS NULL OR (ps_suppkey = s_suppkey))], select=[ps_suppkey, p_brand, p_type, p_size], build=[right])\\n:- Calc(select=[ps_suppkey, p_brand, p_type, p_size])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(p_partkey = ps_partkey)], select=[ps_partkey, ps_suppkey, p_partkey, p_brand, p_type, p_size], isBroadcast=[true], build=[right])\\n:     :- [#2] TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey], metadata=[]]], fields=[ps_partkey, ps_suppkey])\\n:     +- [#3] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                        :- Exchange(distribution=[broadcast])\n                        :  +- Calc(select=[s_suppkey], where=[LIKE(s_comment, '%Customer%Complaints%')])\n                        :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, filter=[LIKE(s_comment, _UTF-16LE'%Customer%Complaints%')], project=[s_suppkey, s_comment], metadata=[]]], fields=[s_suppkey, s_comment])\n                        :- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey], metadata=[]]], fields=[ps_partkey, ps_suppkey])\n                        +- Exchange(distribution=[broadcast])\n                           +- Calc(select=[p_partkey, p_brand, p_type, p_size], where=[((p_brand <> 'Brand#45') AND SEARCH(p_size, Sarg[3, 9, 14, 19, 23, 36, 45, 49]) AND NOT(LIKE(p_type, 'MEDIUM POLISHED%')))])\n                              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(and(<>(p_brand, _UTF-16LE'Brand#45':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(OR(OR(OR(OR(=(p_size, 3), =(p_size, 9)), =(p_size, 14)), =(p_size, 19)), =(p_size, 23)), =(p_size, 36)), =(p_size, 45)), =(p_size, 49))), NOT(LIKE(p_type, _UTF-16LE'MEDIUM POLISHED%')))], project=[p_partkey, p_brand, p_type, p_size], metadata=[]]], fields=[p_partkey, p_brand, p_type, p_size])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$3], sort1=[$0], sort2=[$1], sort3=[$2], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], dir2=[ASC-nulls-first], dir3=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0, 1, 2}], supplier_cnt=[COUNT(DISTINCT $3)])\n   +- LogicalProject(p_brand=[$8], p_type=[$9], p_size=[$10], ps_suppkey=[$1])\n      +- LogicalFilter(condition=[AND(=($5, $0), <>($8, _UTF-16LE'Brand#45'), NOT(LIKE($9, _UTF-16LE'MEDIUM POLISHED%')), OR(=($10, 49), =($10, 14), =($10, 23), =($10, 45), =($10, 19), =($10, 3), =($10, 36), =($10, 9)), NOT(IN($1, {\nLogicalProject(s_suppkey=[$0])\n  LogicalFilter(condition=[LIKE($6, _UTF-16LE'%Customer%Complaints%')])\n    LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n})))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[supplier_cnt DESC, p_brand ASC, p_type ASC, p_size ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Final_COUNT(count$0) AS supplier_cnt])\n      +- NativeExchange(distribution=[hash[p_brand, p_type, p_size]])\n         +- NativeAggregate(groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Partial_COUNT(ps_suppkey) AS count$0])\n            +- NativeAggregate(isMerge=[true], groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n               +- NativeExchange(distribution=[hash[ps_suppkey, p_brand, p_type, p_size]])\n                  +- NativeAggregate(groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n                     +- NativeJoin(joinType=[LeftAntiJoin], where=[OR(IS NULL(ps_suppkey), IS NULL(s_suppkey), =(ps_suppkey, s_suppkey))], select=[ps_suppkey, p_brand, p_type, p_size], build=[right])\n                        :- NativeCalc(select=[ps_suppkey, p_brand, p_type, p_size], nativeFunctions=[], jvmFunctions=[])\n                        :  +- NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, ps_partkey)], select=[ps_partkey, ps_suppkey, p_partkey, p_brand, p_type, p_size], isBroadcast=[true], build=[right])\n                        :     :- RowDataToArrow\n                        :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey], metadata=[]]], fields=[ps_partkey, ps_suppkey])\n                        :     +- NativeExchange(distribution=[broadcast])\n                        :        +- NativeCalc(select=[p_partkey, p_brand, p_type, p_size], where=[AND(<>(p_brand, 'Brand#45'), SEARCH(p_size, Sarg[3, 9, 14, 19, 23, 36, 45, 49]), NOT(LIKE(p_type, 'MEDIUM POLISHED%')))], nativeFunctions=[], jvmFunctions=[])\n                        :           +- RowDataToArrow\n                        :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(and(<>(p_brand, _UTF-16LE'Brand#45':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(OR(OR(OR(OR(=(p_size, 3), =(p_size, 9)), =(p_size, 14)), =(p_size, 19)), =(p_size, 23)), =(p_size, 36)), =(p_size, 45)), =(p_size, 49))), NOT(LIKE(p_type, _UTF-16LE'MEDIUM POLISHED%')))], project=[p_partkey, p_brand, p_type, p_size], metadata=[]]], fields=[p_partkey, p_brand, p_type, p_size])\n                        +- NativeExchange(distribution=[broadcast])\n                           +- NativeCalc(select=[s_suppkey], where=[LIKE(s_comment, '%Customer%Complaints%')], nativeFunctions=[], jvmFunctions=[])\n                              +- RowDataToArrow\n                                 +- TableSourceScan(table=[[default_catalog, default_database, supplier, filter=[LIKE(s_comment, _UTF-16LE'%Customer%Complaints%')], project=[s_suppkey, s_comment], metadata=[]]], fields=[s_suppkey, s_comment])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[supplier_cnt DESC, p_brand ASC, p_type ASC, p_size ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Final_COUNT(count$0) AS supplier_cnt])\n      +- NativeExchange(distribution=[hash[p_brand, p_type, p_size]])\n         +- NativeAggregate(groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Partial_COUNT(ps_suppkey) AS count$0])\n            +- NativeAggregate(isMerge=[true], groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n               +- NativeExchange(distribution=[hash[ps_suppkey, p_brand, p_type, p_size]])\n                  +- NativeAggregate(groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n                     +- NativeJoin(joinType=[LeftAntiJoin], where=[OR(IS NULL(ps_suppkey), IS NULL(s_suppkey), =(ps_suppkey, s_suppkey))], select=[ps_suppkey, p_brand, p_type, p_size], build=[right])\n                        :- NativeCalc(select=[ps_suppkey, p_brand, p_type, p_size], nativeFunctions=[], jvmFunctions=[])\n                        :  +- NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, ps_partkey)], select=[ps_partkey, ps_suppkey, p_partkey, p_brand, p_type, p_size], isBroadcast=[true], build=[right])\n                        :     :- RowDataToArrow\n                        :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey], metadata=[]]], fields=[ps_partkey, ps_suppkey])\n                        :     +- NativeExchange(distribution=[broadcast])\n                        :        +- NativeCalc(select=[p_partkey, p_brand, p_type, p_size], where=[AND(<>(p_brand, 'Brand#45'), SEARCH(p_size, Sarg[3, 9, 14, 19, 23, 36, 45, 49]), NOT(LIKE(p_type, 'MEDIUM POLISHED%')))], nativeFunctions=[], jvmFunctions=[])\n                        :           +- RowDataToArrow\n                        :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(and(<>(p_brand, _UTF-16LE'Brand#45':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(OR(OR(OR(OR(=(p_size, 3), =(p_size, 9)), =(p_size, 14)), =(p_size, 19)), =(p_size, 23)), =(p_size, 36)), =(p_size, 45)), =(p_size, 49))), NOT(LIKE(p_type, _UTF-16LE'MEDIUM POLISHED%')))], project=[p_partkey, p_brand, p_type, p_size], metadata=[]]], fields=[p_partkey, p_brand, p_type, p_size])\n                        +- NativeExchange(distribution=[broadcast])\n                           +- NativeCalc(select=[s_suppkey], where=[LIKE(s_comment, '%Customer%Complaints%')], nativeFunctions=[], jvmFunctions=[])\n                              +- RowDataToArrow\n                                 +- TableSourceScan(table=[[default_catalog, default_database, supplier, filter=[LIKE(s_comment, _UTF-16LE'%Customer%Complaints%')], project=[s_suppkey, s_comment], metadata=[]]], fields=[s_suppkey, s_comment])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$3], sort1=[$0], sort2=[$1], sort3=[$2], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], dir2=[ASC-nulls-first], dir3=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0, 1, 2}], supplier_cnt=[COUNT(DISTINCT $3)])\n   +- LogicalProject(p_brand=[$8], p_type=[$9], p_size=[$10], ps_suppkey=[$1])\n      +- LogicalFilter(condition=[AND(=($5, $0), <>($8, _UTF-16LE'Brand#45'), NOT(LIKE($9, _UTF-16LE'MEDIUM POLISHED%')), OR(=($10, 49), =($10, 14), =($10, 23), =($10, 45), =($10, 19), =($10, 3), =($10, 36), =($10, 9)), NOT(IN($1, {\nLogicalProject(s_suppkey=[$0])\n  LogicalFilter(condition=[LIKE($6, _UTF-16LE'%Customer%Complaints%')])\n    LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n})))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[supplier_cnt DESC, p_brand ASC, p_type ASC, p_size ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Final_COUNT(count$0) AS supplier_cnt])\n      +- NativeExchange(distribution=[hash[p_brand, p_type, p_size]])\n         +- NativeAggregate(groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Partial_COUNT(ps_suppkey) AS count$0])\n            +- NativeAggregate(isMerge=[true], groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n               +- NativeExchange(distribution=[hash[ps_suppkey, p_brand, p_type, p_size]])\n                  +- NativeAggregate(groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n                     +- NativeJoin(joinType=[LeftAntiJoin], where=[OR(IS NULL(ps_suppkey), IS NULL(s_suppkey), =(ps_suppkey, s_suppkey))], select=[ps_suppkey, p_brand, p_type, p_size], build=[right])\n                        :- NativeCalc(select=[ps_suppkey, p_brand, p_type, p_size], nativeFunctions=[], jvmFunctions=[])\n                        :  +- NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, ps_partkey)], select=[ps_partkey, ps_suppkey, p_partkey, p_brand, p_type, p_size], isBroadcast=[true], build=[right])\n                        :     :- RowDataToArrow\n                        :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey], metadata=[]]], fields=[ps_partkey, ps_suppkey])\n                        :     +- NativeExchange(distribution=[broadcast])\n                        :        +- NativeCalc(select=[p_partkey, p_brand, p_type, p_size], where=[AND(<>(p_brand, 'Brand#45'), SEARCH(p_size, Sarg[3, 9, 14, 19, 23, 36, 45, 49]), NOT(LIKE(p_type, 'MEDIUM POLISHED%')))], nativeFunctions=[], jvmFunctions=[])\n                        :           +- RowDataToArrow\n                        :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(and(<>(p_brand, _UTF-16LE'Brand#45':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(OR(OR(OR(OR(=(p_size, 3), =(p_size, 9)), =(p_size, 14)), =(p_size, 19)), =(p_size, 23)), =(p_size, 36)), =(p_size, 45)), =(p_size, 49))), NOT(LIKE(p_type, _UTF-16LE'MEDIUM POLISHED%')))], project=[p_partkey, p_brand, p_type, p_size], metadata=[]]], fields=[p_partkey, p_brand, p_type, p_size])\n                        +- NativeExchange(distribution=[broadcast])\n                           +- NativeCalc(select=[s_suppkey], where=[LIKE(s_comment, '%Customer%Complaints%')], nativeFunctions=[], jvmFunctions=[])\n                              +- RowDataToArrow\n                                 +- TableSourceScan(table=[[default_catalog, default_database, supplier, filter=[LIKE(s_comment, _UTF-16LE'%Customer%Complaints%')], project=[s_suppkey, s_comment], metadata=[]]], fields=[s_suppkey, s_comment])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[supplier_cnt DESC, p_brand ASC, p_type ASC, p_size ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Final_COUNT(count$0) AS supplier_cnt])\n      +- NativeExchange(distribution=[hash[p_brand, p_type, p_size]])\n         +- NativeAggregate(groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_size, Partial_COUNT(ps_suppkey) AS count$0])\n            +- NativeAggregate(isMerge=[true], groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n               +- NativeExchange(distribution=[hash[ps_suppkey, p_brand, p_type, p_size]])\n                  +- NativeAggregate(groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppkey, p_brand, p_type, p_size])\n                     +- NativeJoin(joinType=[LeftAntiJoin], where=[OR(IS NULL(ps_suppkey), IS NULL(s_suppkey), =(ps_suppkey, s_suppkey))], select=[ps_suppkey, p_brand, p_type, p_size], build=[right])\n                        :- NativeCalc(select=[ps_suppkey, p_brand, p_type, p_size], nativeFunctions=[], jvmFunctions=[])\n                        :  +- NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, ps_partkey)], select=[ps_partkey, ps_suppkey, p_partkey, p_brand, p_type, p_size], isBroadcast=[true], build=[right])\n                        :     :- RowDataToArrow\n                        :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey], metadata=[]]], fields=[ps_partkey, ps_suppkey])\n                        :     +- NativeExchange(distribution=[broadcast])\n                        :        +- NativeCalc(select=[p_partkey, p_brand, p_type, p_size], where=[AND(<>(p_brand, 'Brand#45'), SEARCH(p_size, Sarg[3, 9, 14, 19, 23, 36, 45, 49]), NOT(LIKE(p_type, 'MEDIUM POLISHED%')))], nativeFunctions=[], jvmFunctions=[])\n                        :           +- RowDataToArrow\n                        :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(and(<>(p_brand, _UTF-16LE'Brand#45':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(OR(OR(OR(OR(=(p_size, 3), =(p_size, 9)), =(p_size, 14)), =(p_size, 19)), =(p_size, 23)), =(p_size, 36)), =(p_size, 45)), =(p_size, 49))), NOT(LIKE(p_type, _UTF-16LE'MEDIUM POLISHED%')))], project=[p_partkey, p_brand, p_type, p_size], metadata=[]]], fields=[p_partkey, p_brand, p_type, p_size])\n                        +- NativeExchange(distribution=[broadcast])\n                           +- NativeCalc(select=[s_suppkey], where=[LIKE(s_comment, '%Customer%Complaints%')], nativeFunctions=[], jvmFunctions=[])\n                              +- RowDataToArrow\n                                 +- TableSourceScan(table=[[default_catalog, default_database, supplier, filter=[LIKE(s_comment, _UTF-16LE'%Customer%Complaints%')], project=[s_suppkey, s_comment], metadata=[]]], fields=[s_suppkey, s_comment])\n\nStreamFusion batch: 15 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "e2e2332615438dd48df6737b41a67d04",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "6d61e856825ded144bcb0f8b2902628d",
          "sourceArrowRows": 10100,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_si",
              "recordsIn": 563,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 275
            },
            {
              "operator": "NativeAggregate(groupBy=[p_brand, p_type, p_size], select=[p_brand, p_type, p_si",
              "recordsIn": 631,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 282
            },
            {
              "operator": "NativeAggregate(groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppke",
              "recordsIn": 1,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[ps_suppkey, p_brand, p_type, p_size], select=[ps_suppke",
              "recordsIn": 1196,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1194
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[p_brand, p_type, p_size], select=[p_bra",
              "recordsIn": 261,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 140
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[p_brand, p_type, p_size], select=[p_bra",
              "recordsIn": 296,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 156
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[ps_suppkey, p_brand, p_type, p_size], s",
              "recordsIn": 563,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 563
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[ps_suppkey, p_brand, p_type, p_size], s",
              "recordsIn": 631,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 631
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_brand, p_type, p_size], where=[AND(<>(p_brand, '",
              "recordsIn": 0,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_brand, p_type, p_size], where=[AND(<>(p_brand, '",
              "recordsIn": 2000,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 299
            },
            {
              "operator": "NativeCalc(select=[ps_suppkey, p_brand, p_type, p_size], nativeFunctions=[], jvm",
              "recordsIn": 0,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[ps_suppkey, p_brand, p_type, p_size], nativeFunctions=[], jvm",
              "recordsIn": 1196,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1196
            },
            {
              "operator": "NativeCalc(select=[s_suppkey], where=[LIKE(s_comment, '%Customer%Complaints%')],",
              "recordsIn": 0,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_suppkey], where=[LIKE(s_comment, '%Customer%Complaints%')],",
              "recordsIn": 100,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, ps_partkey)], select=[ps_pa",
              "recordsIn": 299,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, ps_partkey)], select=[ps_pa",
              "recordsIn": 8299,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1196
            },
            {
              "operator": "NativeJoin(joinType=[LeftAntiJoin], where=[OR(IS NULL(ps_suppkey), IS NULL(s_sup",
              "recordsIn": 1,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[LeftAntiJoin], where=[OR(IS NULL(ps_suppkey), IS NULL(s_sup",
              "recordsIn": 1197,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1196
            },
            {
              "operator": "NativeSort(orderBy=[supplier_cnt DESC, p_brand ASC, p_type ASC, p_size ASC])[243",
              "recordsIn": 296,
              "jobId": "6d61e856825ded144bcb0f8b2902628d",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 296
            }
          ]
        }
      ],
      "resultType": "ROW<`p_brand` STRING, `p_type` STRING, `p_size` INT, `supplier_cnt` BIGINT NOT NULL> NOT NULL",
      "rows": 296,
      "resultSha256": "3c59a1e7bdb551f04c803051f67e9777ffffd62a2be08a2687118360aeebafdf",
      "stockNanos": [
        287012792
      ],
      "nativeNanos": [
        138760083
      ],
      "stockRuntimeMs": [
        157
      ],
      "nativeRuntimeMs": [
        98
      ],
      "status": "passed"
    },
    {
      "query": 17,
      "sqlSha256": "3bf63af45d8c0120013a1dc302df5a4d7923b12522ed10ce0d251922b118cd4b",
      "sql": "-- database: presto; groups: tpch; tables: lineitem,part\nSELECT sum(l_extendedprice) / 7.0 AS avg_yearly\nFROM\n  lineitem,\n  part\nWHERE\n  p_partkey = l_partkey\n  AND p_brand = 'Brand#23'\n  AND p_container = 'MED BOX'\n  AND l_quantity < (\n    SELECT 0.2 * avg(l_quantity)\n    FROM\n      lineitem\n    WHERE\n      l_partkey = p_partkey\n  )\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalProject(avg_yearly=[/($0, 7.0:DECIMAL(2, 1))])\n+- LogicalAggregate(group=[{}], agg#0=[SUM($0)])\n   +- LogicalProject(l_extendedprice=[$5])\n      +- LogicalFilter(condition=[AND(=($16, $1), =($19, _UTF-16LE'Brand#23'), =($22, _UTF-16LE'MED BOX'), <($4, $SCALAR_QUERY({\nLogicalProject(EXPR$0=[*(0.2:DECIMAL(2, 1), $0)])\n  LogicalAggregate(group=[{}], agg#0=[AVG($0)])\n    LogicalProject(l_quantity=[$4])\n      LogicalFilter(condition=[=($1, $cor4.p_partkey)])\n        LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})))], variablesSet=[[$cor4]])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nCalc(select=[/($f0, 7.0) AS avg_yearly])\n+- HashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n   +- Exchange(distribution=[single])\n      +- LocalHashAggregate(select=[Partial_SUM(l_extendedprice) AS sum$0])\n         +- Calc(select=[l_extendedprice])\n            +- HashJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), <(l_quantity, *(0.2, $f1)))], select=[l_quantity, l_extendedprice, p_partkey, l_partkey, $f1], isBroadcast=[true], build=[right])\n               :- Calc(select=[l_quantity, l_extendedprice, p_partkey])\n               :  +- HashJoin(joinType=[InnerJoin], where=[=(p_partkey, l_partkey)], select=[l_partkey, l_quantity, l_extendedprice, p_partkey], isBroadcast=[true], build=[right])\n               :     :- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_partkey, l_quantity, l_extendedprice], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice])\n               :     +- Exchange(distribution=[broadcast])\n               :        +- Calc(select=[p_partkey], where=[AND(=(p_brand, 'Brand#23'), =(p_container, 'MED BOX'))])\n               :           +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[p_partkey, p_brand, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_container])\n               +- Exchange(distribution=[broadcast])\n                  +- HashAggregate(isMerge=[true], groupBy=[l_partkey], select=[l_partkey, Final_AVG(sum$0, count$1) AS $f1])\n                     +- Exchange(distribution=[hash[l_partkey]])\n                        +- LocalHashAggregate(groupBy=[l_partkey], select=[l_partkey, Partial_AVG(l_quantity) AS (sum$0, count$1)])\n                           +- Calc(select=[l_partkey, l_quantity], where=[IS NOT NULL(l_partkey)])\n                              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[IS NOT NULL(l_partkey)], project=[l_partkey, l_quantity], metadata=[]]], fields=[l_partkey, l_quantity])\n\n== Optimized Execution Plan ==\nCalc(select=[($f0 / 7.0) AS avg_yearly])\n+- HashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n   +- Exchange(distribution=[single])\n      +- LocalHashAggregate(select=[Partial_SUM(l_extendedprice) AS sum$0])\n         +- Calc(select=[l_extendedprice])\n            +- MultipleInput(readOrder=[0,1,0], members=[\\nHashJoin(joinType=[InnerJoin], where=[((p_partkey = l_partkey) AND (l_quantity < (0.2 * $f1)))], select=[l_quantity, l_extendedprice, p_partkey, l_partkey, $f1], isBroadcast=[true], build=[right])\\n:- Calc(select=[l_quantity, l_extendedprice, p_partkey])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(p_partkey = l_partkey)], select=[l_partkey, l_quantity, l_extendedprice, p_partkey], isBroadcast=[true], build=[right])\\n:     :- [#2] TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_partkey, l_quantity, l_extendedprice], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice])\\n:     +- [#3] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n               :- Exchange(distribution=[broadcast])\n               :  +- HashAggregate(isMerge=[true], groupBy=[l_partkey], select=[l_partkey, Final_AVG(sum$0, count$1) AS $f1])\n               :     +- Exchange(distribution=[hash[l_partkey]])\n               :        +- LocalHashAggregate(groupBy=[l_partkey], select=[l_partkey, Partial_AVG(l_quantity) AS (sum$0, count$1)])\n               :           +- Calc(select=[l_partkey, l_quantity], where=[l_partkey IS NOT NULL])\n               :              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[IS NOT NULL(l_partkey)], project=[l_partkey, l_quantity], metadata=[]]], fields=[l_partkey, l_quantity])\n               :- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_partkey, l_quantity, l_extendedprice], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice])\n               +- Exchange(distribution=[broadcast])\n                  +- Calc(select=[p_partkey], where=[((p_brand = 'Brand#23') AND (p_container = 'MED BOX'))])\n                     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[p_partkey, p_brand, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_container])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalProject(avg_yearly=[/($0, 7.0:DECIMAL(2, 1))])\n+- LogicalAggregate(group=[{}], agg#0=[SUM($0)])\n   +- LogicalProject(l_extendedprice=[$5])\n      +- LogicalFilter(condition=[AND(=($16, $1), =($19, _UTF-16LE'Brand#23'), =($22, _UTF-16LE'MED BOX'), <($4, $SCALAR_QUERY({\nLogicalProject(EXPR$0=[*(0.2:DECIMAL(2, 1), $0)])\n  LogicalAggregate(group=[{}], agg#0=[AVG($0)])\n    LogicalProject(l_quantity=[$4])\n      LogicalFilter(condition=[=($1, $cor6.p_partkey)])\n        LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})))], variablesSet=[[$cor6]])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[/($f0, 7.0) AS avg_yearly], nativeFunctions=[], jvmFunctions=[])\n+- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n   +- NativeExchange(distribution=[single])\n      +- NativeAggregate(select=[Partial_SUM(l_extendedprice) AS sum$0])\n         +- NativeCalc(select=[l_extendedprice], nativeFunctions=[], jvmFunctions=[])\n            +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), <(l_quantity, *(0.2, $f1)))], select=[l_quantity, l_extendedprice, p_partkey, l_partkey, $f1], isBroadcast=[true], build=[right])\n               :- NativeCalc(select=[l_quantity, l_extendedprice, p_partkey], nativeFunctions=[], jvmFunctions=[])\n               :  +- NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, l_partkey)], select=[l_partkey, l_quantity, l_extendedprice, p_partkey], isBroadcast=[true], build=[right])\n               :     :- RowDataToArrow\n               :     :  +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_partkey, l_quantity, l_extendedprice], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice])\n               :     +- NativeExchange(distribution=[broadcast])\n               :        +- NativeCalc(select=[p_partkey], where=[AND(=(p_brand, 'Brand#23'), =(p_container, 'MED BOX'))], nativeFunctions=[], jvmFunctions=[])\n               :           +- RowDataToArrow\n               :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[p_partkey, p_brand, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_container])\n               +- NativeExchange(distribution=[broadcast])\n                  +- NativeAggregate(isMerge=[true], groupBy=[l_partkey], select=[l_partkey, Final_AVG(sum$0, count$1) AS $f1])\n                     +- NativeExchange(distribution=[hash[l_partkey]])\n                        +- NativeAggregate(groupBy=[l_partkey], select=[l_partkey, Partial_AVG(l_quantity) AS (sum$0, count$1)])\n                           +- NativeCalc(select=[l_partkey, l_quantity], where=[IS NOT NULL(l_partkey)], nativeFunctions=[], jvmFunctions=[])\n                              +- RowDataToArrow\n                                 +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[IS NOT NULL(l_partkey)], project=[l_partkey, l_quantity], metadata=[]]], fields=[l_partkey, l_quantity])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[/($f0, 7.0) AS avg_yearly], nativeFunctions=[], jvmFunctions=[])\n+- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n   +- NativeExchange(distribution=[single])\n      +- NativeAggregate(select=[Partial_SUM(l_extendedprice) AS sum$0])\n         +- NativeCalc(select=[l_extendedprice], nativeFunctions=[], jvmFunctions=[])\n            +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), <(l_quantity, *(0.2, $f1)))], select=[l_quantity, l_extendedprice, p_partkey, l_partkey, $f1], isBroadcast=[true], build=[right])\n               :- NativeCalc(select=[l_quantity, l_extendedprice, p_partkey], nativeFunctions=[], jvmFunctions=[])\n               :  +- NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, l_partkey)], select=[l_partkey, l_quantity, l_extendedprice, p_partkey], isBroadcast=[true], build=[right])\n               :     :- RowDataToArrow\n               :     :  +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_partkey, l_quantity, l_extendedprice], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice])\n               :     +- NativeExchange(distribution=[broadcast])\n               :        +- NativeCalc(select=[p_partkey], where=[AND(=(p_brand, 'Brand#23'), =(p_container, 'MED BOX'))], nativeFunctions=[], jvmFunctions=[])\n               :           +- RowDataToArrow\n               :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[p_partkey, p_brand, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_container])\n               +- NativeExchange(distribution=[broadcast])\n                  +- NativeAggregate(isMerge=[true], groupBy=[l_partkey], select=[l_partkey, Final_AVG(sum$0, count$1) AS $f1])\n                     +- NativeExchange(distribution=[hash[l_partkey]])\n                        +- NativeAggregate(groupBy=[l_partkey], select=[l_partkey, Partial_AVG(l_quantity) AS (sum$0, count$1)])\n                           +- NativeCalc(select=[l_partkey, l_quantity], where=[IS NOT NULL(l_partkey)], nativeFunctions=[], jvmFunctions=[])\n                              +- RowDataToArrow\n                                 +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[IS NOT NULL(l_partkey)], project=[l_partkey, l_quantity], metadata=[]]], fields=[l_partkey, l_quantity])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalProject(avg_yearly=[/($0, 7.0:DECIMAL(2, 1))])\n+- LogicalAggregate(group=[{}], agg#0=[SUM($0)])\n   +- LogicalProject(l_extendedprice=[$5])\n      +- LogicalFilter(condition=[AND(=($16, $1), =($19, _UTF-16LE'Brand#23'), =($22, _UTF-16LE'MED BOX'), <($4, $SCALAR_QUERY({\nLogicalProject(EXPR$0=[*(0.2:DECIMAL(2, 1), $0)])\n  LogicalAggregate(group=[{}], agg#0=[AVG($0)])\n    LogicalProject(l_quantity=[$4])\n      LogicalFilter(condition=[=($1, $cor7.p_partkey)])\n        LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})))], variablesSet=[[$cor7]])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[/($f0, 7.0) AS avg_yearly], nativeFunctions=[], jvmFunctions=[])\n+- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n   +- NativeExchange(distribution=[single])\n      +- NativeAggregate(select=[Partial_SUM(l_extendedprice) AS sum$0])\n         +- NativeCalc(select=[l_extendedprice], nativeFunctions=[], jvmFunctions=[])\n            +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), <(l_quantity, *(0.2, $f1)))], select=[l_quantity, l_extendedprice, p_partkey, l_partkey, $f1], isBroadcast=[true], build=[right])\n               :- NativeCalc(select=[l_quantity, l_extendedprice, p_partkey], nativeFunctions=[], jvmFunctions=[])\n               :  +- NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, l_partkey)], select=[l_partkey, l_quantity, l_extendedprice, p_partkey], isBroadcast=[true], build=[right])\n               :     :- RowDataToArrow\n               :     :  +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_partkey, l_quantity, l_extendedprice], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice])\n               :     +- NativeExchange(distribution=[broadcast])\n               :        +- NativeCalc(select=[p_partkey], where=[AND(=(p_brand, 'Brand#23'), =(p_container, 'MED BOX'))], nativeFunctions=[], jvmFunctions=[])\n               :           +- RowDataToArrow\n               :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[p_partkey, p_brand, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_container])\n               +- NativeExchange(distribution=[broadcast])\n                  +- NativeAggregate(isMerge=[true], groupBy=[l_partkey], select=[l_partkey, Final_AVG(sum$0, count$1) AS $f1])\n                     +- NativeExchange(distribution=[hash[l_partkey]])\n                        +- NativeAggregate(groupBy=[l_partkey], select=[l_partkey, Partial_AVG(l_quantity) AS (sum$0, count$1)])\n                           +- NativeCalc(select=[l_partkey, l_quantity], where=[IS NOT NULL(l_partkey)], nativeFunctions=[], jvmFunctions=[])\n                              +- RowDataToArrow\n                                 +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[IS NOT NULL(l_partkey)], project=[l_partkey, l_quantity], metadata=[]]], fields=[l_partkey, l_quantity])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[/($f0, 7.0) AS avg_yearly], nativeFunctions=[], jvmFunctions=[])\n+- NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])\n   +- NativeExchange(distribution=[single])\n      +- NativeAggregate(select=[Partial_SUM(l_extendedprice) AS sum$0])\n         +- NativeCalc(select=[l_extendedprice], nativeFunctions=[], jvmFunctions=[])\n            +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), <(l_quantity, *(0.2, $f1)))], select=[l_quantity, l_extendedprice, p_partkey, l_partkey, $f1], isBroadcast=[true], build=[right])\n               :- NativeCalc(select=[l_quantity, l_extendedprice, p_partkey], nativeFunctions=[], jvmFunctions=[])\n               :  +- NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, l_partkey)], select=[l_partkey, l_quantity, l_extendedprice, p_partkey], isBroadcast=[true], build=[right])\n               :     :- RowDataToArrow\n               :     :  +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_partkey, l_quantity, l_extendedprice], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice])\n               :     +- NativeExchange(distribution=[broadcast])\n               :        +- NativeCalc(select=[p_partkey], where=[AND(=(p_brand, 'Brand#23'), =(p_container, 'MED BOX'))], nativeFunctions=[], jvmFunctions=[])\n               :           +- RowDataToArrow\n               :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[and(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"))], project=[p_partkey, p_brand, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_container])\n               +- NativeExchange(distribution=[broadcast])\n                  +- NativeAggregate(isMerge=[true], groupBy=[l_partkey], select=[l_partkey, Final_AVG(sum$0, count$1) AS $f1])\n                     +- NativeExchange(distribution=[hash[l_partkey]])\n                        +- NativeAggregate(groupBy=[l_partkey], select=[l_partkey, Partial_AVG(l_quantity) AS (sum$0, count$1)])\n                           +- NativeCalc(select=[l_partkey, l_quantity], where=[IS NOT NULL(l_partkey)], nativeFunctions=[], jvmFunctions=[])\n                              +- RowDataToArrow\n                                 +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[IS NOT NULL(l_partkey)], project=[l_partkey, l_quantity], metadata=[]]], fields=[l_partkey, l_quantity])\n\nStreamFusion batch: 15 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "d4d4b3c539f6f7d0fd619acb3b97794e",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "8e6e679415e5005266036d32dadf95fe",
          "sourceArrowRows": 122350,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[l_partkey], select=[l_partkey, Partial_AVG(l_quantity) ",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[l_partkey], select=[l_partkey, Partial_AVG(l_quantity) ",
              "recordsIn": 60175,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2000
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_partkey], select=[l_partkey, Final_AV",
              "recordsIn": 1012,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1012
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_partkey], select=[l_partkey, Final_AV",
              "recordsIn": 988,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 988
            },
            {
              "operator": "NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS $f0])[2559]",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM(l_extendedprice) AS sum$0])[2557]",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM(l_extendedprice) AS sum$0])[2557]",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[/($f0, 7.0) AS avg_yearly], nativeFunctions=[], jvmFunctions=",
              "recordsIn": 1,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice], nativeFunctions=[], jvmFunctions=[])[2555]",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_extendedprice], nativeFunctions=[], jvmFunctions=[])[2555]",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_partkey, l_quantity], where=[IS NOT NULL(l_partkey)], nativ",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_partkey, l_quantity], where=[IS NOT NULL(l_partkey)], nativ",
              "recordsIn": 60175,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 60175
            },
            {
              "operator": "NativeCalc(select=[l_quantity, l_extendedprice, p_partkey], nativeFunctions=[], ",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_quantity, l_extendedprice, p_partkey], nativeFunctions=[], ",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey], where=[AND(=(p_brand, 'Brand#23'), =(p_container,",
              "recordsIn": 0,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey], where=[AND(=(p_brand, 'Brand#23'), =(p_container,",
              "recordsIn": 2000,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, l_partkey)], select=[l_part",
              "recordsIn": 1,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(p_partkey, l_partkey)], select=[l_part",
              "recordsIn": 60176,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), <(l_quantit",
              "recordsIn": 2000,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), <(l_quantit",
              "recordsIn": 2000,
              "jobId": "8e6e679415e5005266036d32dadf95fe",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            }
          ]
        }
      ],
      "resultType": "ROW<`avg_yearly` DECIMAL(38, 6)> NOT NULL",
      "rows": 1,
      "resultSha256": "15e47eee2b762359729cbeaaad535d9e3f135cb024af14f2ebe5912a92b310b8",
      "stockNanos": [
        402358375
      ],
      "nativeNanos": [
        140530875
      ],
      "stockRuntimeMs": [
        212
      ],
      "nativeRuntimeMs": [
        88
      ],
      "status": "passed"
    },
    {
      "query": 18,
      "sqlSha256": "99f8f2933f20acf8a17b3886cfd40418749d8a33cb33d126b11cf9e465f393d4",
      "sql": "-- database: presto; groups: tpch, big_query; tables: customer,orders,lineitem\nSELECT\n  c_name,\n  c_custkey,\n  o_orderkey,\n  o_orderdate,\n  o_totalprice,\n  sum(l_quantity)\nFROM\n  customer,\n  orders,\n  lineitem\nWHERE\n  o_orderkey IN (\n    SELECT l_orderkey\n    FROM\n      lineitem\n    GROUP BY\n      l_orderkey\n    HAVING\n      sum(l_quantity) > 300\n  )\n  AND c_custkey = o_custkey\n  AND o_orderkey = l_orderkey\nGROUP BY\n  c_name,\n  c_custkey,\n  o_orderkey,\n  o_orderdate,\n  o_totalprice\nORDER BY\n  o_totalprice DESC,\n  o_orderdate\nLIMIT 100\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$4], sort1=[$3], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], fetch=[100])\n+- LogicalAggregate(group=[{0, 1, 2, 3, 4}], EXPR$5=[SUM($5)])\n   +- LogicalProject(c_name=[$1], c_custkey=[$0], o_orderkey=[$8], o_orderdate=[$12], o_totalprice=[$11], l_quantity=[$21])\n      +- LogicalFilter(condition=[AND(IN($8, {\nLogicalProject(l_orderkey=[$0])\n  LogicalFilter(condition=[>($1, 300)])\n    LogicalAggregate(group=[{0}], agg#0=[SUM($1)])\n      LogicalProject(l_orderkey=[$0], l_quantity=[$4])\n        LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n}), =($0, $9), =($8, $17))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nCalc(select=[c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, EXPR$5])\n+- SortLimit(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[true])\n   +- Exchange(distribution=[single])\n      +- SortLimit(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[false])\n         +- HashAggregate(isMerge=[true], groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Final_SUM(sum$0) AS EXPR$5])\n            +- Exchange(distribution=[hash[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate]])\n               +- LocalHashAggregate(groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Partial_SUM(l_quantity) AS sum$0])\n                  +- Calc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_quantity])\n                     +- HashJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_orderkey, l_quantity], isBroadcast=[true], build=[left])\n                        :- Exchange(distribution=[broadcast])\n                        :  +- HashJoin(joinType=[LeftSemiJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[right])\n                        :     :- Calc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate])\n                        :     :  +- HashJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, o_orderkey, o_custkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[left])\n                        :     :     :- Exchange(distribution=[broadcast])\n                        :     :     :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name], metadata=[]]], fields=[c_custkey, c_name])\n                        :     :     +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey, o_totalprice, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_totalprice, o_orderdate])\n                        :     +- Exchange(distribution=[broadcast])\n                        :        +- Calc(select=[l_orderkey], where=[>($f1, 300)])\n                        :           +- HashAggregate(isMerge=[true], groupBy=[l_orderkey], select=[l_orderkey, Final_SUM(sum$0) AS $f1])\n                        :              +- Exchange(distribution=[hash[l_orderkey]])\n                        :                 +- LocalHashAggregate(groupBy=[l_orderkey], select=[l_orderkey, Partial_SUM(l_quantity) AS sum$0])\n                        :                    +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_quantity], metadata=[]]], fields=[l_orderkey, l_quantity])\n                        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_quantity], metadata=[]]], fields=[l_orderkey, l_quantity])\n\n== Optimized Execution Plan ==\nCalc(select=[c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, EXPR$5])\n+- SortLimit(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[true])\n   +- Exchange(distribution=[single])\n      +- SortLimit(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[false])\n         +- HashAggregate(isMerge=[true], groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Final_SUM(sum$0) AS EXPR$5])\n            +- Exchange(distribution=[hash[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate]])\n               +- LocalHashAggregate(groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Partial_SUM(l_quantity) AS sum$0])\n                  +- Calc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_quantity])\n                     +- HashJoin(joinType=[InnerJoin], where=[(o_orderkey = l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_orderkey, l_quantity], isBroadcast=[true], build=[left])\n                        :- Exchange(distribution=[broadcast])\n                        :  +- MultipleInput(readOrder=[0,0,1], members=[\\nHashJoin(joinType=[LeftSemiJoin], where=[(o_orderkey = l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[right])\\n:- Calc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(c_custkey = o_custkey)], select=[c_custkey, c_name, o_orderkey, o_custkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[left])\\n:     :- [#2] Exchange(distribution=[broadcast])\\n:     +- [#3] TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey, o_totalprice, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_totalprice, o_orderdate])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                        :     :- Exchange(distribution=[broadcast])\n                        :     :  +- Calc(select=[l_orderkey], where=[($f1 > 300)])\n                        :     :     +- HashAggregate(isMerge=[true], groupBy=[l_orderkey], select=[l_orderkey, Final_SUM(sum$0) AS $f1])\n                        :     :        +- Exchange(distribution=[hash[l_orderkey]])\n                        :     :           +- LocalHashAggregate(groupBy=[l_orderkey], select=[l_orderkey, Partial_SUM(l_quantity) AS sum$0])\n                        :     :              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_quantity], metadata=[]]], fields=[l_orderkey, l_quantity])(reuse_id=[1])\n                        :     :- Exchange(distribution=[broadcast])\n                        :     :  +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name], metadata=[]]], fields=[c_custkey, c_name])\n                        :     +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey, o_totalprice, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_totalprice, o_orderdate])\n                        +- Exchange(distribution=[any], shuffle_mode=[BATCH])\n                           +- Reused(reference_id=[1])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$4], sort1=[$3], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], fetch=[100])\n+- LogicalAggregate(group=[{0, 1, 2, 3, 4}], EXPR$5=[SUM($5)])\n   +- LogicalProject(c_name=[$1], c_custkey=[$0], o_orderkey=[$8], o_orderdate=[$12], o_totalprice=[$11], l_quantity=[$21])\n      +- LogicalFilter(condition=[AND(IN($8, {\nLogicalProject(l_orderkey=[$0])\n  LogicalFilter(condition=[>($1, 300)])\n    LogicalAggregate(group=[{0}], agg#0=[SUM($1)])\n      LogicalProject(l_orderkey=[$0], l_quantity=[$4])\n        LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n}), =($0, $9), =($8, $17))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, EXPR$5], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Final_SUM(sum$0) AS EXPR$5])\n            +- NativeExchange(distribution=[hash[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate]])\n               +- NativeAggregate(groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Partial_SUM(l_quantity) AS sum$0])\n                  +- NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_quantity], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_orderkey, l_quantity], isBroadcast=[true], build=[left])\n                        :- NativeExchange(distribution=[broadcast])\n                        :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[right])\n                        :     :- NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                        :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, o_orderkey, o_custkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[left])\n                        :     :     :- NativeExchange(distribution=[broadcast])\n                        :     :     :  +- RowDataToArrow\n                        :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name], metadata=[]]], fields=[c_custkey, c_name])\n                        :     :     +- RowDataToArrow\n                        :     :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey, o_totalprice, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_totalprice, o_orderdate])\n                        :     +- NativeExchange(distribution=[broadcast])\n                        :        +- NativeCalc(select=[l_orderkey], where=[>($f1, 300)], nativeFunctions=[], jvmFunctions=[])\n                        :           +- NativeAggregate(isMerge=[true], groupBy=[l_orderkey], select=[l_orderkey, Final_SUM(sum$0) AS $f1])\n                        :              +- NativeExchange(distribution=[hash[l_orderkey]])\n                        :                 +- NativeAggregate(groupBy=[l_orderkey], select=[l_orderkey, Partial_SUM(l_quantity) AS sum$0])\n                        :                    +- RowDataToArrow\n                        :                       +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_quantity], metadata=[]]], fields=[l_orderkey, l_quantity])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_quantity], metadata=[]]], fields=[l_orderkey, l_quantity])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, EXPR$5], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Final_SUM(sum$0) AS EXPR$5])\n            +- NativeExchange(distribution=[hash[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate]])\n               +- NativeAggregate(groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Partial_SUM(l_quantity) AS sum$0])\n                  +- NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_quantity], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_orderkey, l_quantity], isBroadcast=[true], build=[left])\n                        :- NativeExchange(distribution=[broadcast])\n                        :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[right])\n                        :     :- NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                        :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, o_orderkey, o_custkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[left])\n                        :     :     :- NativeExchange(distribution=[broadcast])\n                        :     :     :  +- RowDataToArrow\n                        :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name], metadata=[]]], fields=[c_custkey, c_name])\n                        :     :     +- RowDataToArrow\n                        :     :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey, o_totalprice, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_totalprice, o_orderdate])\n                        :     +- NativeExchange(distribution=[broadcast])\n                        :        +- NativeCalc(select=[l_orderkey], where=[>($f1, 300)], nativeFunctions=[], jvmFunctions=[])\n                        :           +- NativeAggregate(isMerge=[true], groupBy=[l_orderkey], select=[l_orderkey, Final_SUM(sum$0) AS $f1])\n                        :              +- NativeExchange(distribution=[hash[l_orderkey]])\n                        :                 +- NativeAggregate(groupBy=[l_orderkey], select=[l_orderkey, Partial_SUM(l_quantity) AS sum$0])\n                        :                    +- RowDataToArrow\n                        :                       +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_quantity], metadata=[]]], fields=[l_orderkey, l_quantity])(reuse_id=[1])\n                        +- Exchange(distribution=[any], shuffle_mode=[BATCH])\n                           +- RowDataToArrow\n                              +- Reused(reference_id=[1])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$4], sort1=[$3], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], fetch=[100])\n+- LogicalAggregate(group=[{0, 1, 2, 3, 4}], EXPR$5=[SUM($5)])\n   +- LogicalProject(c_name=[$1], c_custkey=[$0], o_orderkey=[$8], o_orderdate=[$12], o_totalprice=[$11], l_quantity=[$21])\n      +- LogicalFilter(condition=[AND(IN($8, {\nLogicalProject(l_orderkey=[$0])\n  LogicalFilter(condition=[>($1, 300)])\n    LogicalAggregate(group=[{0}], agg#0=[SUM($1)])\n      LogicalProject(l_orderkey=[$0], l_quantity=[$4])\n        LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n}), =($0, $9), =($8, $17))])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n\n== Optimized Physical Plan ==\nNativeCalc(select=[c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, EXPR$5], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Final_SUM(sum$0) AS EXPR$5])\n            +- NativeExchange(distribution=[hash[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate]])\n               +- NativeAggregate(groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Partial_SUM(l_quantity) AS sum$0])\n                  +- NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_quantity], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_orderkey, l_quantity], isBroadcast=[true], build=[left])\n                        :- NativeExchange(distribution=[broadcast])\n                        :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[right])\n                        :     :- NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                        :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, o_orderkey, o_custkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[left])\n                        :     :     :- NativeExchange(distribution=[broadcast])\n                        :     :     :  +- RowDataToArrow\n                        :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name], metadata=[]]], fields=[c_custkey, c_name])\n                        :     :     +- RowDataToArrow\n                        :     :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey, o_totalprice, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_totalprice, o_orderdate])\n                        :     +- NativeExchange(distribution=[broadcast])\n                        :        +- NativeCalc(select=[l_orderkey], where=[>($f1, 300)], nativeFunctions=[], jvmFunctions=[])\n                        :           +- NativeAggregate(isMerge=[true], groupBy=[l_orderkey], select=[l_orderkey, Final_SUM(sum$0) AS $f1])\n                        :              +- NativeExchange(distribution=[hash[l_orderkey]])\n                        :                 +- NativeAggregate(groupBy=[l_orderkey], select=[l_orderkey, Partial_SUM(l_quantity) AS sum$0])\n                        :                    +- RowDataToArrow\n                        :                       +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_quantity], metadata=[]]], fields=[l_orderkey, l_quantity])\n                        +- RowDataToArrow\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_quantity], metadata=[]]], fields=[l_orderkey, l_quantity])\n\n== Optimized Execution Plan ==\nNativeCalc(select=[c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, EXPR$5], nativeFunctions=[], jvmFunctions=[])\n+- NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[true])\n   +- NativeExchange(distribution=[single])\n      +- NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100], global=[false])\n         +- NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Final_SUM(sum$0) AS EXPR$5])\n            +- NativeExchange(distribution=[hash[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate]])\n               +- NativeAggregate(groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, Partial_SUM(l_quantity) AS sum$0])\n                  +- NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_quantity], nativeFunctions=[], jvmFunctions=[])\n                     +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_orderkey, l_quantity], isBroadcast=[true], build=[left])\n                        :- NativeExchange(distribution=[broadcast])\n                        :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(o_orderkey, l_orderkey)], select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[right])\n                        :     :- NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], nativeFunctions=[], jvmFunctions=[])\n                        :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_custkey, c_name, o_orderkey, o_custkey, o_totalprice, o_orderdate], isBroadcast=[true], build=[left])\n                        :     :     :- NativeExchange(distribution=[broadcast])\n                        :     :     :  +- RowDataToArrow\n                        :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, customer, project=[c_custkey, c_name], metadata=[]]], fields=[c_custkey, c_name])\n                        :     :     +- RowDataToArrow\n                        :     :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_orderkey, o_custkey, o_totalprice, o_orderdate], metadata=[]]], fields=[o_orderkey, o_custkey, o_totalprice, o_orderdate])\n                        :     +- NativeExchange(distribution=[broadcast])\n                        :        +- NativeCalc(select=[l_orderkey], where=[>($f1, 300)], nativeFunctions=[], jvmFunctions=[])\n                        :           +- NativeAggregate(isMerge=[true], groupBy=[l_orderkey], select=[l_orderkey, Final_SUM(sum$0) AS $f1])\n                        :              +- NativeExchange(distribution=[hash[l_orderkey]])\n                        :                 +- NativeAggregate(groupBy=[l_orderkey], select=[l_orderkey, Partial_SUM(l_quantity) AS sum$0])\n                        :                    +- RowDataToArrow\n                        :                       +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_quantity], metadata=[]]], fields=[l_orderkey, l_quantity])(reuse_id=[1])\n                        +- Exchange(distribution=[any], shuffle_mode=[BATCH])\n                           +- RowDataToArrow\n                              +- Reused(reference_id=[1])\n\nStreamFusion batch: 19 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "e1c08025711454f5cc801bc1acc7da2d",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
          "sourceArrowRows": 76675,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdat",
              "recordsIn": 0,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdat",
              "recordsIn": 14,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(groupBy=[l_orderkey], select=[l_orderkey, Partial_SUM(l_quantity",
              "recordsIn": 0,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[l_orderkey], select=[l_orderkey, Partial_SUM(l_quantity",
              "recordsIn": 60175,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 15000
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, o_orderkey, o_totalp",
              "recordsIn": 0,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[c_custkey, c_name, o_orderkey, o_totalp",
              "recordsIn": 2,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_orderkey], select=[l_orderkey, Final_",
              "recordsIn": 7433,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 7433
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_orderkey], select=[l_orderkey, Final_",
              "recordsIn": 7567,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 7567
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_q",
              "recordsIn": 0,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate, l_q",
              "recordsIn": 14,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 14
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], na",
              "recordsIn": 0,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_custkey, c_name, o_orderkey, o_totalprice, o_orderdate], na",
              "recordsIn": 15000,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 15000
            },
            {
              "operator": "NativeCalc(select=[c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice, EXP",
              "recordsIn": 2,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            },
            {
              "operator": "NativeCalc(select=[l_orderkey], where=[>($f1, 300)], nativeFunctions=[], jvmFunc",
              "recordsIn": 7433,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[l_orderkey], where=[>($f1, 300)], nativeFunctions=[], jvmFunc",
              "recordsIn": 7567,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 60175,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 60175
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_cust",
              "recordsIn": 1500,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(c_custkey, o_custkey)], select=[c_cust",
              "recordsIn": 16500,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 15000
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[c_cu",
              "recordsIn": 2,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[c_cu",
              "recordsIn": 60177,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 14
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[=(o_orderkey, l_orderkey)], select=[c",
              "recordsIn": 15002,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[=(o_orderkey, l_orderkey)], select=[c",
              "recordsIn": 2,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100]",
              "recordsIn": 0,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100]",
              "recordsIn": 2,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2
            },
            {
              "operator": "NativeSort(orderBy=[o_totalprice DESC, o_orderdate ASC], offset=[0], fetch=[100]",
              "recordsIn": 2,
              "jobId": "1f2d1d34afe630830b9c335ae42ff23c",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            }
          ]
        }
      ],
      "resultType": "ROW<`c_name` STRING, `c_custkey` BIGINT, `o_orderkey` BIGINT, `o_orderdate` DATE, `o_totalprice` DECIMAL(15, 2), `EXPR$5` DECIMAL(38, 2)> NOT NULL",
      "rows": 2,
      "resultSha256": "27db06402edc67460400ddc368344bda7609783bc2d6305a53e50d2d9e385be6",
      "stockNanos": [
        395913250
      ],
      "nativeNanos": [
        145413583
      ],
      "stockRuntimeMs": [
        267
      ],
      "nativeRuntimeMs": [
        101
      ],
      "status": "passed"
    },
    {
      "query": 19,
      "sqlSha256": "8428fa6c46796c312c1eb99ff458dbd4587c201a5ebb7ed31208e68e34f42e5b",
      "sql": "-- database: presto;  groups: tpch; tables: lineitem,part\nSELECT sum(l_extendedprice * (1 - l_discount)) AS revenue\nFROM\n  lineitem,\n  part\nWHERE\n  (\n    p_partkey = l_partkey\n    AND p_brand = 'Brand#12'\n    AND p_container IN ('SM CASE', 'SM BOX', 'SM PACK', 'SM PKG')\n    AND l_quantity >= 1 AND l_quantity <= 1 + 10\n    AND p_size BETWEEN 1 AND 5\n    AND l_shipmode IN ('AIR', 'AIR REG')\n    AND l_shipinstruct = 'DELIVER IN PERSON'\n  )\n  OR\n  (\n    p_partkey = l_partkey\n    AND p_brand = 'Brand#23'\n    AND p_container IN ('MED BAG', 'MED BOX', 'MED PKG', 'MED PACK')\n    AND l_quantity >= 10 AND l_quantity <= 10 + 10\n    AND p_size BETWEEN 1 AND 10\n    AND l_shipmode IN ('AIR', 'AIR REG')\n    AND l_shipinstruct = 'DELIVER IN PERSON'\n  )\n  OR\n  (\n    p_partkey = l_partkey\n    AND p_brand = 'Brand#34'\n    AND p_container IN ('LG CASE', 'LG BOX', 'LG PACK', 'LG PKG')\n    AND l_quantity >= 20 AND l_quantity <= 20 + 10\n    AND p_size BETWEEN 1 AND 15\n    AND l_shipmode IN ('AIR', 'AIR REG')\n    AND l_shipinstruct = 'DELIVER IN PERSON'\n  )\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalAggregate(group=[{}], revenue=[SUM($0)])\n+- LogicalProject($f0=[*($5, -(1, $6))])\n   +- LogicalFilter(condition=[OR(AND(=($16, $1), =($19, _UTF-16LE'Brand#12'), OR(=($22, _UTF-16LE'SM CASE'), =($22, _UTF-16LE'SM BOX'), =($22, _UTF-16LE'SM PACK'), =($22, _UTF-16LE'SM PKG')), >=($4, 1), <=($4, +(1, 10)), >=($21, 1), <=($21, 5), OR(=($14, _UTF-16LE'AIR'), =($14, _UTF-16LE'AIR REG')), =($13, _UTF-16LE'DELIVER IN PERSON')), AND(=($16, $1), =($19, _UTF-16LE'Brand#23'), OR(=($22, _UTF-16LE'MED BAG'), =($22, _UTF-16LE'MED BOX'), =($22, _UTF-16LE'MED PKG'), =($22, _UTF-16LE'MED PACK')), >=($4, 10), <=($4, +(10, 10)), >=($21, 1), <=($21, 10), OR(=($14, _UTF-16LE'AIR'), =($14, _UTF-16LE'AIR REG')), =($13, _UTF-16LE'DELIVER IN PERSON')), AND(=($16, $1), =($19, _UTF-16LE'Brand#34'), OR(=($22, _UTF-16LE'LG CASE'), =($22, _UTF-16LE'LG BOX'), =($22, _UTF-16LE'LG PACK'), =($22, _UTF-16LE'LG PKG')), >=($4, 20), <=($4, +(20, 10)), >=($21, 1), <=($21, 15), OR(=($14, _UTF-16LE'AIR'), =($14, _UTF-16LE'AIR REG')), =($13, _UTF-16LE'DELIVER IN PERSON')))])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nHashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- Exchange(distribution=[single])\n   +- LocalHashAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- Calc(select=[*(l_extendedprice, -(1, l_discount)) AS $f0])\n         +- HashJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(l_quantity, Sarg[[1..11]]), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(l_quantity, Sarg[[10..20]]), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(l_quantity, Sarg[[20..30]]), SEARCH(p_size, Sarg[[1..15]]))))], select=[l_partkey, l_quantity, l_extendedprice, l_discount, p_partkey, p_brand, p_size, p_container], isBroadcast=[true], build=[right])\n            :- Calc(select=[l_partkey, l_quantity, l_extendedprice, l_discount], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'AIR', _UTF-16LE'AIR REG']), =(l_shipinstruct, 'DELIVER IN PERSON'), SEARCH(l_quantity, Sarg[[1..30]]))])\n            :  +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(OR(=(l_shipmode, _UTF-16LE'AIR':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(l_shipmode, _UTF-16LE'AIR REG':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(l_shipinstruct, _UTF-16LE'DELIVER IN PERSON':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")), AND(>=(l_quantity, 1), <=(l_quantity, 30)))], project=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode])\n            +- Exchange(distribution=[broadcast])\n               +- Calc(select=[p_partkey, p_brand, p_size, p_container], where=[OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(p_size, Sarg[[1..15]])))])\n                  +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[OR(OR(AND(AND(=(p_brand, _UTF-16LE'Brand#12':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'SM BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'SM CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 5))), AND(AND(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'MED BAG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PACK':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PKG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 10)))), AND(AND(=(p_brand, _UTF-16LE'Brand#34':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'LG BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'LG CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 15))))], project=[p_partkey, p_brand, p_size, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_size, p_container])\n\n== Optimized Execution Plan ==\nHashAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- Exchange(distribution=[single])\n   +- LocalHashAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- Calc(select=[(l_extendedprice * (1 - l_discount)) AS $f0])\n         +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[((p_partkey = l_partkey) AND (((p_brand = 'Brand#12') AND SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']) AND SEARCH(l_quantity, Sarg[[1..11]]) AND SEARCH(p_size, Sarg[[1..5]])) OR ((p_brand = 'Brand#23') AND SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']) AND SEARCH(l_quantity, Sarg[[10..20]]) AND SEARCH(p_size, Sarg[[1..10]])) OR ((p_brand = 'Brand#34') AND SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']) AND SEARCH(l_quantity, Sarg[[20..30]]) AND SEARCH(p_size, Sarg[[1..15]]))))], select=[l_partkey, l_quantity, l_extendedprice, l_discount, p_partkey, p_brand, p_size, p_container], isBroadcast=[true], build=[right])\\n:- Calc(select=[l_partkey, l_quantity, l_extendedprice, l_discount], where=[(SEARCH(l_shipmode, Sarg[_UTF-16LE'AIR', _UTF-16LE'AIR REG']) AND (l_shipinstruct = 'DELIVER IN PERSON') AND SEARCH(l_quantity, Sarg[[1..30]]))])\\n:  +- [#2] TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(OR(=(l_shipmode, _UTF-16LE'AIR':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(l_shipmode, _UTF-16LE'AIR REG':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(l_shipinstruct, _UTF-16LE'DELIVER IN PERSON':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")), AND(>=(l_quantity, 1), <=(l_quantity, 30)))], project=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n            :- Exchange(distribution=[broadcast])\n            :  +- Calc(select=[p_partkey, p_brand, p_size, p_container], where=[(((p_brand = 'Brand#12') AND SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']) AND SEARCH(p_size, Sarg[[1..5]])) OR ((p_brand = 'Brand#23') AND SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']) AND SEARCH(p_size, Sarg[[1..10]])) OR ((p_brand = 'Brand#34') AND SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']) AND SEARCH(p_size, Sarg[[1..15]])))])\n            :     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[OR(OR(AND(AND(=(p_brand, _UTF-16LE'Brand#12':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'SM BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'SM CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 5))), AND(AND(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'MED BAG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PACK':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PKG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 10)))), AND(AND(=(p_brand, _UTF-16LE'Brand#34':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'LG BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'LG CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 15))))], project=[p_partkey, p_brand, p_size, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_size, p_container])\n            +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(OR(=(l_shipmode, _UTF-16LE'AIR':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(l_shipmode, _UTF-16LE'AIR REG':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(l_shipinstruct, _UTF-16LE'DELIVER IN PERSON':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")), AND(>=(l_quantity, 1), <=(l_quantity, 30)))], project=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalAggregate(group=[{}], revenue=[SUM($0)])\n+- LogicalProject($f0=[*($5, -(1, $6))])\n   +- LogicalFilter(condition=[OR(AND(=($16, $1), =($19, _UTF-16LE'Brand#12'), OR(=($22, _UTF-16LE'SM CASE'), =($22, _UTF-16LE'SM BOX'), =($22, _UTF-16LE'SM PACK'), =($22, _UTF-16LE'SM PKG')), >=($4, 1), <=($4, +(1, 10)), >=($21, 1), <=($21, 5), OR(=($14, _UTF-16LE'AIR'), =($14, _UTF-16LE'AIR REG')), =($13, _UTF-16LE'DELIVER IN PERSON')), AND(=($16, $1), =($19, _UTF-16LE'Brand#23'), OR(=($22, _UTF-16LE'MED BAG'), =($22, _UTF-16LE'MED BOX'), =($22, _UTF-16LE'MED PKG'), =($22, _UTF-16LE'MED PACK')), >=($4, 10), <=($4, +(10, 10)), >=($21, 1), <=($21, 10), OR(=($14, _UTF-16LE'AIR'), =($14, _UTF-16LE'AIR REG')), =($13, _UTF-16LE'DELIVER IN PERSON')), AND(=($16, $1), =($19, _UTF-16LE'Brand#34'), OR(=($22, _UTF-16LE'LG CASE'), =($22, _UTF-16LE'LG BOX'), =($22, _UTF-16LE'LG PACK'), =($22, _UTF-16LE'LG PKG')), >=($4, 20), <=($4, +(20, 10)), >=($21, 1), <=($21, 15), OR(=($14, _UTF-16LE'AIR'), =($14, _UTF-16LE'AIR REG')), =($13, _UTF-16LE'DELIVER IN PERSON')))])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nNativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- NativeCalc(select=[*(l_extendedprice, -(1, l_discount)) AS $f0], nativeFunctions=[], jvmFunctions=[])\n         +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(l_quantity, Sarg[[1..11]]), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(l_quantity, Sarg[[10..20]]), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(l_quantity, Sarg[[20..30]]), SEARCH(p_size, Sarg[[1..15]]))))], select=[l_partkey, l_quantity, l_extendedprice, l_discount, p_partkey, p_brand, p_size, p_container], isBroadcast=[true], build=[right])\n            :- NativeCalc(select=[l_partkey, l_quantity, l_extendedprice, l_discount], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'AIR', _UTF-16LE'AIR REG']), =(l_shipinstruct, 'DELIVER IN PERSON'), SEARCH(l_quantity, Sarg[[1..30]]))], nativeFunctions=[], jvmFunctions=[])\n            :  +- RowDataToArrow\n            :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(OR(=(l_shipmode, _UTF-16LE'AIR':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(l_shipmode, _UTF-16LE'AIR REG':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(l_shipinstruct, _UTF-16LE'DELIVER IN PERSON':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")), AND(>=(l_quantity, 1), <=(l_quantity, 30)))], project=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode])\n            +- NativeExchange(distribution=[broadcast])\n               +- NativeCalc(select=[p_partkey, p_brand, p_size, p_container], where=[OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(p_size, Sarg[[1..15]])))], nativeFunctions=[], jvmFunctions=[])\n                  +- RowDataToArrow\n                     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[OR(OR(AND(AND(=(p_brand, _UTF-16LE'Brand#12':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'SM BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'SM CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 5))), AND(AND(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'MED BAG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PACK':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PKG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 10)))), AND(AND(=(p_brand, _UTF-16LE'Brand#34':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'LG BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'LG CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 15))))], project=[p_partkey, p_brand, p_size, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_size, p_container])\n\n== Optimized Execution Plan ==\nNativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- NativeCalc(select=[*(l_extendedprice, -(1, l_discount)) AS $f0], nativeFunctions=[], jvmFunctions=[])\n         +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(l_quantity, Sarg[[1..11]]), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(l_quantity, Sarg[[10..20]]), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(l_quantity, Sarg[[20..30]]), SEARCH(p_size, Sarg[[1..15]]))))], select=[l_partkey, l_quantity, l_extendedprice, l_discount, p_partkey, p_brand, p_size, p_container], isBroadcast=[true], build=[right])\n            :- NativeCalc(select=[l_partkey, l_quantity, l_extendedprice, l_discount], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'AIR', _UTF-16LE'AIR REG']), =(l_shipinstruct, 'DELIVER IN PERSON'), SEARCH(l_quantity, Sarg[[1..30]]))], nativeFunctions=[], jvmFunctions=[])\n            :  +- RowDataToArrow\n            :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(OR(=(l_shipmode, _UTF-16LE'AIR':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(l_shipmode, _UTF-16LE'AIR REG':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(l_shipinstruct, _UTF-16LE'DELIVER IN PERSON':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")), AND(>=(l_quantity, 1), <=(l_quantity, 30)))], project=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode])\n            +- NativeExchange(distribution=[broadcast])\n               +- NativeCalc(select=[p_partkey, p_brand, p_size, p_container], where=[OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(p_size, Sarg[[1..15]])))], nativeFunctions=[], jvmFunctions=[])\n                  +- RowDataToArrow\n                     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[OR(OR(AND(AND(=(p_brand, _UTF-16LE'Brand#12':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'SM BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'SM CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 5))), AND(AND(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'MED BAG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PACK':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PKG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 10)))), AND(AND(=(p_brand, _UTF-16LE'Brand#34':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'LG BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'LG CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 15))))], project=[p_partkey, p_brand, p_size, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_size, p_container])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalAggregate(group=[{}], revenue=[SUM($0)])\n+- LogicalProject($f0=[*($5, -(1, $6))])\n   +- LogicalFilter(condition=[OR(AND(=($16, $1), =($19, _UTF-16LE'Brand#12'), OR(=($22, _UTF-16LE'SM CASE'), =($22, _UTF-16LE'SM BOX'), =($22, _UTF-16LE'SM PACK'), =($22, _UTF-16LE'SM PKG')), >=($4, 1), <=($4, +(1, 10)), >=($21, 1), <=($21, 5), OR(=($14, _UTF-16LE'AIR'), =($14, _UTF-16LE'AIR REG')), =($13, _UTF-16LE'DELIVER IN PERSON')), AND(=($16, $1), =($19, _UTF-16LE'Brand#23'), OR(=($22, _UTF-16LE'MED BAG'), =($22, _UTF-16LE'MED BOX'), =($22, _UTF-16LE'MED PKG'), =($22, _UTF-16LE'MED PACK')), >=($4, 10), <=($4, +(10, 10)), >=($21, 1), <=($21, 10), OR(=($14, _UTF-16LE'AIR'), =($14, _UTF-16LE'AIR REG')), =($13, _UTF-16LE'DELIVER IN PERSON')), AND(=($16, $1), =($19, _UTF-16LE'Brand#34'), OR(=($22, _UTF-16LE'LG CASE'), =($22, _UTF-16LE'LG BOX'), =($22, _UTF-16LE'LG PACK'), =($22, _UTF-16LE'LG PKG')), >=($4, 20), <=($4, +(20, 10)), >=($21, 1), <=($21, 15), OR(=($14, _UTF-16LE'AIR'), =($14, _UTF-16LE'AIR REG')), =($13, _UTF-16LE'DELIVER IN PERSON')))])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, part]])\n\n== Optimized Physical Plan ==\nNativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- NativeCalc(select=[*(l_extendedprice, -(1, l_discount)) AS $f0], nativeFunctions=[], jvmFunctions=[])\n         +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(l_quantity, Sarg[[1..11]]), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(l_quantity, Sarg[[10..20]]), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(l_quantity, Sarg[[20..30]]), SEARCH(p_size, Sarg[[1..15]]))))], select=[l_partkey, l_quantity, l_extendedprice, l_discount, p_partkey, p_brand, p_size, p_container], isBroadcast=[true], build=[right])\n            :- NativeCalc(select=[l_partkey, l_quantity, l_extendedprice, l_discount], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'AIR', _UTF-16LE'AIR REG']), =(l_shipinstruct, 'DELIVER IN PERSON'), SEARCH(l_quantity, Sarg[[1..30]]))], nativeFunctions=[], jvmFunctions=[])\n            :  +- RowDataToArrow\n            :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(OR(=(l_shipmode, _UTF-16LE'AIR':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(l_shipmode, _UTF-16LE'AIR REG':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(l_shipinstruct, _UTF-16LE'DELIVER IN PERSON':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")), AND(>=(l_quantity, 1), <=(l_quantity, 30)))], project=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode])\n            +- NativeExchange(distribution=[broadcast])\n               +- NativeCalc(select=[p_partkey, p_brand, p_size, p_container], where=[OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(p_size, Sarg[[1..15]])))], nativeFunctions=[], jvmFunctions=[])\n                  +- RowDataToArrow\n                     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[OR(OR(AND(AND(=(p_brand, _UTF-16LE'Brand#12':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'SM BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'SM CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 5))), AND(AND(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'MED BAG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PACK':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PKG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 10)))), AND(AND(=(p_brand, _UTF-16LE'Brand#34':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'LG BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'LG CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 15))))], project=[p_partkey, p_brand, p_size, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_size, p_container])\n\n== Optimized Execution Plan ==\nNativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(select=[Partial_SUM($f0) AS sum$0])\n      +- NativeCalc(select=[*(l_extendedprice, -(1, l_discount)) AS $f0], nativeFunctions=[], jvmFunctions=[])\n         +- NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(l_quantity, Sarg[[1..11]]), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(l_quantity, Sarg[[10..20]]), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(l_quantity, Sarg[[20..30]]), SEARCH(p_size, Sarg[[1..15]]))))], select=[l_partkey, l_quantity, l_extendedprice, l_discount, p_partkey, p_brand, p_size, p_container], isBroadcast=[true], build=[right])\n            :- NativeCalc(select=[l_partkey, l_quantity, l_extendedprice, l_discount], where=[AND(SEARCH(l_shipmode, Sarg[_UTF-16LE'AIR', _UTF-16LE'AIR REG']), =(l_shipinstruct, 'DELIVER IN PERSON'), SEARCH(l_quantity, Sarg[[1..30]]))], nativeFunctions=[], jvmFunctions=[])\n            :  +- RowDataToArrow\n            :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(OR(=(l_shipmode, _UTF-16LE'AIR':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(l_shipmode, _UTF-16LE'AIR REG':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(l_shipinstruct, _UTF-16LE'DELIVER IN PERSON':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")), AND(>=(l_quantity, 1), <=(l_quantity, 30)))], project=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode], metadata=[]]], fields=[l_partkey, l_quantity, l_extendedprice, l_discount, l_shipinstruct, l_shipmode])\n            +- NativeExchange(distribution=[broadcast])\n               +- NativeCalc(select=[p_partkey, p_brand, p_size, p_container], where=[OR(AND(=(p_brand, 'Brand#12'), SEARCH(p_container, Sarg[_UTF-16LE'SM BOX', _UTF-16LE'SM CASE', _UTF-16LE'SM PACK', _UTF-16LE'SM PKG']), SEARCH(p_size, Sarg[[1..5]])), AND(=(p_brand, 'Brand#23'), SEARCH(p_container, Sarg[_UTF-16LE'MED BAG', _UTF-16LE'MED BOX', _UTF-16LE'MED PACK', _UTF-16LE'MED PKG']), SEARCH(p_size, Sarg[[1..10]])), AND(=(p_brand, 'Brand#34'), SEARCH(p_container, Sarg[_UTF-16LE'LG BOX', _UTF-16LE'LG CASE', _UTF-16LE'LG PACK', _UTF-16LE'LG PKG']), SEARCH(p_size, Sarg[[1..15]])))], nativeFunctions=[], jvmFunctions=[])\n                  +- RowDataToArrow\n                     +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[OR(OR(AND(AND(=(p_brand, _UTF-16LE'Brand#12':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'SM BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'SM CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'SM PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 5))), AND(AND(=(p_brand, _UTF-16LE'Brand#23':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'MED BAG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'MED BOX':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PACK':VARCHAR(8) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'MED PKG':VARCHAR(8) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 10)))), AND(AND(=(p_brand, _UTF-16LE'Brand#34':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\"), OR(OR(OR(=(p_container, _UTF-16LE'LG BOX':VARCHAR(7) CHARACTER SET \"UTF-16LE\"), =(p_container, _UTF-16LE'LG CASE':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PACK':VARCHAR(7) CHARACTER SET \"UTF-16LE\")), =(p_container, _UTF-16LE'LG PKG':VARCHAR(7) CHARACTER SET \"UTF-16LE\"))), AND(>=(p_size, 1), <=(p_size, 15))))], project=[p_partkey, p_brand, p_size, p_container], metadata=[]]], fields=[p_partkey, p_brand, p_size, p_container])\n\nStreamFusion batch: 8 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "62d497b809c5b98fca82b3aad4e93b5b",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
          "sourceArrowRows": 62175,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(isMerge=[true], select=[Final_SUM(sum$0) AS revenue])[2798]",
              "recordsIn": 1,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM($f0) AS sum$0])[2796]",
              "recordsIn": 0,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(select=[Partial_SUM($f0) AS sum$0])[2796]",
              "recordsIn": 1,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[*(l_extendedprice, -(1, l_discount)) AS $f0], nativeFunctions",
              "recordsIn": 0,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[*(l_extendedprice, -(1, l_discount)) AS $f0], nativeFunctions",
              "recordsIn": 1,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[l_partkey, l_quantity, l_extendedprice, l_discount], where=[A",
              "recordsIn": 0,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_partkey, l_quantity, l_extendedprice, l_discount], where=[A",
              "recordsIn": 60175,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1201
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_brand, p_size, p_container], where=[OR(AND(=(p_b",
              "recordsIn": 0,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey, p_brand, p_size, p_container], where=[OR(AND(=(p_b",
              "recordsIn": 2000,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 5
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), OR(AND(=(p_",
              "recordsIn": 1206,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(p_partkey, l_partkey), OR(AND(=(p_",
              "recordsIn": 5,
              "jobId": "127fb0bc592fce223cc4ac90cd0fc1f7",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            }
          ]
        }
      ],
      "resultType": "ROW<`revenue` DECIMAL(38, 4)> NOT NULL",
      "rows": 1,
      "resultSha256": "7cc0e0c6b80be8fc2955ed742793f04b8b81129ea0d4d199aabffe3993d6c20d",
      "stockNanos": [
        307152208
      ],
      "nativeNanos": [
        138844375
      ],
      "stockRuntimeMs": [
        146
      ],
      "nativeRuntimeMs": [
        80
      ],
      "status": "passed"
    },
    {
      "query": 20,
      "sqlSha256": "4187d0ff2534a26399db48983cd9f4e1c5eb0283c4a43f791d38dfed85007e8d",
      "sql": "-- database: presto; groups: tpch; tables: supplier,nation,partsupp,lineitem,part\nSELECT\n  s_name,\n  s_address\nFROM\n  supplier, nation\nWHERE\n  s_suppkey IN (\n    SELECT ps_suppkey\n    FROM\n      partsupp\n    WHERE\n      ps_partkey IN (\n        SELECT p_partkey\n        FROM\n          part\n        WHERE\n          p_name LIKE 'forest%'\n      )\n      AND ps_availqty > (\n        SELECT 0.5 * sum(l_quantity)\n        FROM\n          lineitem\n        WHERE\n          l_partkey = ps_partkey\n          AND l_suppkey = ps_suppkey\n          -- AND l_shipdate >= date('1994-01-01')\n          -- AND l_shipdate < date('1994-01-01') + interval '1' YEAR\n          -- we don't support the above format\n          AND l_shipdate >= date '1994-01-01'\n          AND l_shipdate < date '1994-01-01' + interval '1' YEAR\n)\n)\nAND s_nationkey = n_nationkey\nAND n_name = 'CANADA'\nORDER BY s_name\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalProject(s_name=[$1], s_address=[$2])\n   +- LogicalFilter(condition=[AND(IN($0, {\nLogicalProject(ps_suppkey=[$1])\n  LogicalFilter(condition=[AND(IN($0, {\nLogicalProject(p_partkey=[$0])\n  LogicalFilter(condition=[LIKE($1, _UTF-16LE'forest%')])\n    LogicalTableScan(table=[[default_catalog, default_database, part]])\n}), >($2, $SCALAR_QUERY({\nLogicalProject(EXPR$0=[*(0.5:DECIMAL(2, 1), $0)])\n  LogicalAggregate(group=[{}], agg#0=[SUM($0)])\n    LogicalProject(l_quantity=[$4])\n      LogicalFilter(condition=[AND(=($1, $cor6.ps_partkey), =($2, $cor6.ps_suppkey), >=($10, 1994-01-01), <($10, +(1994-01-01, 12:INTERVAL YEAR)))])\n        LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})))], variablesSet=[[$cor6]])\n    LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n}), =($3, $7), =($8, _UTF-16LE'CANADA'))])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[s_name ASC])\n+- Exchange(distribution=[single])\n   +- Calc(select=[s_name, s_address])\n      +- NestedLoopJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_address, s_nationkey, n_nationkey], build=[right])\n         :- Calc(select=[s_name, s_address, s_nationkey])\n         :  +- HashJoin(joinType=[LeftSemiJoin], where=[=(s_suppkey, ps_suppkey)], select=[s_suppkey, s_name, s_address, s_nationkey], isBroadcast=[true], build=[right])\n         :     :- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey])\n         :     +- Exchange(distribution=[broadcast])\n         :        +- Calc(select=[ps_suppkey])\n         :           +- HashJoin(joinType=[InnerJoin], where=[AND(=(ps_partkey, l_partkey), =(ps_suppkey, l_suppkey), >(ps_availqty, *(0.5, $f2)))], select=[ps_partkey, ps_suppkey, ps_availqty, l_partkey, l_suppkey, $f2], isBroadcast=[true], build=[left])\n         :              :- Exchange(distribution=[broadcast])\n         :              :  +- HashJoin(joinType=[LeftSemiJoin], where=[=(ps_partkey, p_partkey)], select=[ps_partkey, ps_suppkey, ps_availqty], isBroadcast=[true], build=[right])\n         :              :     :- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty])\n         :              :     +- Exchange(distribution=[broadcast])\n         :              :        +- Calc(select=[p_partkey], where=[LIKE(p_name, 'forest%')])\n         :              :           +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'forest%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n         :              +- HashAggregate(isMerge=[true], groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Final_SUM(sum$0) AS $f2])\n         :                 +- Exchange(distribution=[hash[l_partkey, l_suppkey]])\n         :                    +- LocalHashAggregate(groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Partial_SUM(l_quantity) AS sum$0])\n         :                       +- Calc(select=[l_partkey, l_suppkey, l_quantity], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), IS NOT NULL(l_partkey), IS NOT NULL(l_suppkey))])\n         :                          +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), IS NOT NULL(l_partkey)), IS NOT NULL(l_suppkey))], project=[l_partkey, l_suppkey, l_quantity, l_shipdate], metadata=[]]], fields=[l_partkey, l_suppkey, l_quantity, l_shipdate])\n         +- Exchange(distribution=[broadcast])\n            +- Calc(select=[n_nationkey], where=[=(n_name, 'CANADA')])\n               +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'CANADA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nSort(orderBy=[s_name ASC])\n+- Exchange(distribution=[single])\n   +- Calc(select=[s_name, s_address])\n      +- MultipleInput(readOrder=[0,1,0], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[s_name, s_address, s_nationkey, n_nationkey], build=[right])\\n:- Calc(select=[s_name, s_address, s_nationkey])\\n:  +- HashJoin(joinType=[LeftSemiJoin], where=[(s_suppkey = ps_suppkey)], select=[s_suppkey, s_name, s_address, s_nationkey], isBroadcast=[true], build=[right])\\n:     :- [#2] TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey])\\n:     +- [#3] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n         :- Exchange(distribution=[broadcast])\n         :  +- Calc(select=[n_nationkey], where=[(n_name = 'CANADA')])\n         :     +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'CANADA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n         :- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey])\n         +- Exchange(distribution=[broadcast])\n            +- Calc(select=[ps_suppkey])\n               +- MultipleInput(readOrder=[0,1], members=[\\nHashJoin(joinType=[InnerJoin], where=[((ps_partkey = l_partkey) AND (ps_suppkey = l_suppkey) AND (ps_availqty > (0.5 * $f2)))], select=[ps_partkey, ps_suppkey, ps_availqty, l_partkey, l_suppkey, $f2], isBroadcast=[true], build=[left])\\n:- [#1] Exchange(distribution=[broadcast])\\n+- HashAggregate(isMerge=[true], groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Final_SUM(sum$0) AS $f2])\\n   +- [#2] Exchange(distribution=[hash[l_partkey, l_suppkey]])\\n])\n                  :- Exchange(distribution=[broadcast])\n                  :  +- MultipleInput(readOrder=[1,0], members=[\\nHashJoin(joinType=[LeftSemiJoin], where=[(ps_partkey = p_partkey)], select=[ps_partkey, ps_suppkey, ps_availqty], isBroadcast=[true], build=[right])\\n:- [#1] TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty])\\n+- [#2] Exchange(distribution=[broadcast])\\n])\n                  :     :- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty])\n                  :     +- Exchange(distribution=[broadcast])\n                  :        +- Calc(select=[p_partkey], where=[LIKE(p_name, 'forest%')])\n                  :           +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'forest%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n                  +- Exchange(distribution=[hash[l_partkey, l_suppkey]])\n                     +- LocalHashAggregate(groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Partial_SUM(l_quantity) AS sum$0])\n                        +- Calc(select=[l_partkey, l_suppkey, l_quantity], where=[(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]) AND l_partkey IS NOT NULL AND l_suppkey IS NOT NULL)])\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), IS NOT NULL(l_partkey)), IS NOT NULL(l_suppkey))], project=[l_partkey, l_suppkey, l_quantity, l_shipdate], metadata=[]]], fields=[l_partkey, l_suppkey, l_quantity, l_shipdate])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalProject(s_name=[$1], s_address=[$2])\n   +- LogicalFilter(condition=[AND(IN($0, {\nLogicalProject(ps_suppkey=[$1])\n  LogicalFilter(condition=[AND(IN($0, {\nLogicalProject(p_partkey=[$0])\n  LogicalFilter(condition=[LIKE($1, _UTF-16LE'forest%')])\n    LogicalTableScan(table=[[default_catalog, default_database, part]])\n}), >($2, $SCALAR_QUERY({\nLogicalProject(EXPR$0=[*(0.5:DECIMAL(2, 1), $0)])\n  LogicalAggregate(group=[{}], agg#0=[SUM($0)])\n    LogicalProject(l_quantity=[$4])\n      LogicalFilter(condition=[AND(=($1, $cor9.ps_partkey), =($2, $cor9.ps_suppkey), >=($10, 1994-01-01), <($10, +(1994-01-01, 12:INTERVAL YEAR)))])\n        LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})))], variablesSet=[[$cor9]])\n    LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n}), =($3, $7), =($8, _UTF-16LE'CANADA'))])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[s_name ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[s_name, s_address], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_address, s_nationkey, n_nationkey], build=[right])\n         :- NativeCalc(select=[s_name, s_address, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n         :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(s_suppkey, ps_suppkey)], select=[s_suppkey, s_name, s_address, s_nationkey], isBroadcast=[true], build=[right])\n         :     :- RowDataToArrow\n         :     :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey])\n         :     +- NativeExchange(distribution=[broadcast])\n         :        +- NativeCalc(select=[ps_suppkey], nativeFunctions=[], jvmFunctions=[])\n         :           +- NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_partkey, l_partkey), =(ps_suppkey, l_suppkey), >(ps_availqty, *(0.5, $f2)))], select=[ps_partkey, ps_suppkey, ps_availqty, l_partkey, l_suppkey, $f2], isBroadcast=[true], build=[left])\n         :              :- NativeExchange(distribution=[broadcast])\n         :              :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(ps_partkey, p_partkey)], select=[ps_partkey, ps_suppkey, ps_availqty], isBroadcast=[true], build=[right])\n         :              :     :- RowDataToArrow\n         :              :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty])\n         :              :     +- NativeExchange(distribution=[broadcast])\n         :              :        +- NativeCalc(select=[p_partkey], where=[LIKE(p_name, 'forest%')], nativeFunctions=[], jvmFunctions=[])\n         :              :           +- RowDataToArrow\n         :              :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'forest%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n         :              +- NativeAggregate(isMerge=[true], groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Final_SUM(sum$0) AS $f2])\n         :                 +- NativeExchange(distribution=[hash[l_partkey, l_suppkey]])\n         :                    +- NativeAggregate(groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Partial_SUM(l_quantity) AS sum$0])\n         :                       +- NativeCalc(select=[l_partkey, l_suppkey, l_quantity], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), IS NOT NULL(l_partkey), IS NOT NULL(l_suppkey))], nativeFunctions=[], jvmFunctions=[])\n         :                          +- RowDataToArrow\n         :                             +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), IS NOT NULL(l_partkey)), IS NOT NULL(l_suppkey))], project=[l_partkey, l_suppkey, l_quantity, l_shipdate], metadata=[]]], fields=[l_partkey, l_suppkey, l_quantity, l_shipdate])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'CANADA')], nativeFunctions=[], jvmFunctions=[])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'CANADA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[s_name ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[s_name, s_address], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_address, s_nationkey, n_nationkey], build=[right])\n         :- NativeCalc(select=[s_name, s_address, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n         :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(s_suppkey, ps_suppkey)], select=[s_suppkey, s_name, s_address, s_nationkey], isBroadcast=[true], build=[right])\n         :     :- RowDataToArrow\n         :     :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey])\n         :     +- NativeExchange(distribution=[broadcast])\n         :        +- NativeCalc(select=[ps_suppkey], nativeFunctions=[], jvmFunctions=[])\n         :           +- NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_partkey, l_partkey), =(ps_suppkey, l_suppkey), >(ps_availqty, *(0.5, $f2)))], select=[ps_partkey, ps_suppkey, ps_availqty, l_partkey, l_suppkey, $f2], isBroadcast=[true], build=[left])\n         :              :- NativeExchange(distribution=[broadcast])\n         :              :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(ps_partkey, p_partkey)], select=[ps_partkey, ps_suppkey, ps_availqty], isBroadcast=[true], build=[right])\n         :              :     :- RowDataToArrow\n         :              :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty])\n         :              :     +- NativeExchange(distribution=[broadcast])\n         :              :        +- NativeCalc(select=[p_partkey], where=[LIKE(p_name, 'forest%')], nativeFunctions=[], jvmFunctions=[])\n         :              :           +- RowDataToArrow\n         :              :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'forest%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n         :              +- NativeAggregate(isMerge=[true], groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Final_SUM(sum$0) AS $f2])\n         :                 +- NativeExchange(distribution=[hash[l_partkey, l_suppkey]])\n         :                    +- NativeAggregate(groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Partial_SUM(l_quantity) AS sum$0])\n         :                       +- NativeCalc(select=[l_partkey, l_suppkey, l_quantity], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), IS NOT NULL(l_partkey), IS NOT NULL(l_suppkey))], nativeFunctions=[], jvmFunctions=[])\n         :                          +- RowDataToArrow\n         :                             +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), IS NOT NULL(l_partkey)), IS NOT NULL(l_suppkey))], project=[l_partkey, l_suppkey, l_quantity, l_shipdate], metadata=[]]], fields=[l_partkey, l_suppkey, l_quantity, l_shipdate])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'CANADA')], nativeFunctions=[], jvmFunctions=[])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'CANADA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalProject(s_name=[$1], s_address=[$2])\n   +- LogicalFilter(condition=[AND(IN($0, {\nLogicalProject(ps_suppkey=[$1])\n  LogicalFilter(condition=[AND(IN($0, {\nLogicalProject(p_partkey=[$0])\n  LogicalFilter(condition=[LIKE($1, _UTF-16LE'forest%')])\n    LogicalTableScan(table=[[default_catalog, default_database, part]])\n}), >($2, $SCALAR_QUERY({\nLogicalProject(EXPR$0=[*(0.5:DECIMAL(2, 1), $0)])\n  LogicalAggregate(group=[{}], agg#0=[SUM($0)])\n    LogicalProject(l_quantity=[$4])\n      LogicalFilter(condition=[AND(=($1, $cor11.ps_partkey), =($2, $cor11.ps_suppkey), >=($10, 1994-01-01), <($10, +(1994-01-01, 12:INTERVAL YEAR)))])\n        LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})))], variablesSet=[[$cor11]])\n    LogicalTableScan(table=[[default_catalog, default_database, partsupp]])\n}), =($3, $7), =($8, _UTF-16LE'CANADA'))])\n      +- LogicalJoin(condition=[true], joinType=[inner])\n         :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[s_name ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[s_name, s_address], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_address, s_nationkey, n_nationkey], build=[right])\n         :- NativeCalc(select=[s_name, s_address, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n         :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(s_suppkey, ps_suppkey)], select=[s_suppkey, s_name, s_address, s_nationkey], isBroadcast=[true], build=[right])\n         :     :- RowDataToArrow\n         :     :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey])\n         :     +- NativeExchange(distribution=[broadcast])\n         :        +- NativeCalc(select=[ps_suppkey], nativeFunctions=[], jvmFunctions=[])\n         :           +- NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_partkey, l_partkey), =(ps_suppkey, l_suppkey), >(ps_availqty, *(0.5, $f2)))], select=[ps_partkey, ps_suppkey, ps_availqty, l_partkey, l_suppkey, $f2], isBroadcast=[true], build=[left])\n         :              :- NativeExchange(distribution=[broadcast])\n         :              :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(ps_partkey, p_partkey)], select=[ps_partkey, ps_suppkey, ps_availqty], isBroadcast=[true], build=[right])\n         :              :     :- RowDataToArrow\n         :              :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty])\n         :              :     +- NativeExchange(distribution=[broadcast])\n         :              :        +- NativeCalc(select=[p_partkey], where=[LIKE(p_name, 'forest%')], nativeFunctions=[], jvmFunctions=[])\n         :              :           +- RowDataToArrow\n         :              :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'forest%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n         :              +- NativeAggregate(isMerge=[true], groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Final_SUM(sum$0) AS $f2])\n         :                 +- NativeExchange(distribution=[hash[l_partkey, l_suppkey]])\n         :                    +- NativeAggregate(groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Partial_SUM(l_quantity) AS sum$0])\n         :                       +- NativeCalc(select=[l_partkey, l_suppkey, l_quantity], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), IS NOT NULL(l_partkey), IS NOT NULL(l_suppkey))], nativeFunctions=[], jvmFunctions=[])\n         :                          +- RowDataToArrow\n         :                             +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), IS NOT NULL(l_partkey)), IS NOT NULL(l_suppkey))], project=[l_partkey, l_suppkey, l_quantity, l_shipdate], metadata=[]]], fields=[l_partkey, l_suppkey, l_quantity, l_shipdate])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'CANADA')], nativeFunctions=[], jvmFunctions=[])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'CANADA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[s_name ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeCalc(select=[s_name, s_address], nativeFunctions=[], jvmFunctions=[])\n      +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_address, s_nationkey, n_nationkey], build=[right])\n         :- NativeCalc(select=[s_name, s_address, s_nationkey], nativeFunctions=[], jvmFunctions=[])\n         :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(s_suppkey, ps_suppkey)], select=[s_suppkey, s_name, s_address, s_nationkey], isBroadcast=[true], build=[right])\n         :     :- RowDataToArrow\n         :     :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_address, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_address, s_nationkey])\n         :     +- NativeExchange(distribution=[broadcast])\n         :        +- NativeCalc(select=[ps_suppkey], nativeFunctions=[], jvmFunctions=[])\n         :           +- NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_partkey, l_partkey), =(ps_suppkey, l_suppkey), >(ps_availqty, *(0.5, $f2)))], select=[ps_partkey, ps_suppkey, ps_availqty, l_partkey, l_suppkey, $f2], isBroadcast=[true], build=[left])\n         :              :- NativeExchange(distribution=[broadcast])\n         :              :  +- NativeJoin(joinType=[LeftSemiJoin], where=[=(ps_partkey, p_partkey)], select=[ps_partkey, ps_suppkey, ps_availqty], isBroadcast=[true], build=[right])\n         :              :     :- RowDataToArrow\n         :              :     :  +- TableSourceScan(table=[[default_catalog, default_database, partsupp, project=[ps_partkey, ps_suppkey, ps_availqty], metadata=[]]], fields=[ps_partkey, ps_suppkey, ps_availqty])\n         :              :     +- NativeExchange(distribution=[broadcast])\n         :              :        +- NativeCalc(select=[p_partkey], where=[LIKE(p_name, 'forest%')], nativeFunctions=[], jvmFunctions=[])\n         :              :           +- RowDataToArrow\n         :              :              +- TableSourceScan(table=[[default_catalog, default_database, part, filter=[LIKE(p_name, _UTF-16LE'forest%')], project=[p_partkey, p_name], metadata=[]]], fields=[p_partkey, p_name])\n         :              +- NativeAggregate(isMerge=[true], groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Final_SUM(sum$0) AS $f2])\n         :                 +- NativeExchange(distribution=[hash[l_partkey, l_suppkey]])\n         :                    +- NativeAggregate(groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Partial_SUM(l_quantity) AS sum$0])\n         :                       +- NativeCalc(select=[l_partkey, l_suppkey, l_quantity], where=[AND(SEARCH(l_shipdate, Sarg[[1994-01-01..1995-01-01)]), IS NOT NULL(l_partkey), IS NOT NULL(l_suppkey))], nativeFunctions=[], jvmFunctions=[])\n         :                          +- RowDataToArrow\n         :                             +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[and(and(AND(>=(l_shipdate, 1994-01-01), <(l_shipdate, 1995-01-01)), IS NOT NULL(l_partkey)), IS NOT NULL(l_suppkey))], project=[l_partkey, l_suppkey, l_quantity, l_shipdate], metadata=[]]], fields=[l_partkey, l_suppkey, l_quantity, l_shipdate])\n         +- NativeExchange(distribution=[broadcast])\n            +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'CANADA')], nativeFunctions=[], jvmFunctions=[])\n               +- RowDataToArrow\n                  +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'CANADA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n\nStreamFusion batch: 19 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "4fd13b3919d518967253cb93bc65fca0",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
          "sourceArrowRows": 70300,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Pa",
              "recordsIn": 0,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[l_partkey, l_suppkey], select=[l_partkey, l_suppkey, Pa",
              "recordsIn": 9484,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 5555
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_partkey, l_suppkey], select=[l_partke",
              "recordsIn": 2738,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2738
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[l_partkey, l_suppkey], select=[l_partke",
              "recordsIn": 2817,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 2817
            },
            {
              "operator": "NativeCalc(select=[l_partkey, l_suppkey, l_quantity], where=[AND(SEARCH(l_shipda",
              "recordsIn": 0,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_partkey, l_suppkey, l_quantity], where=[AND(SEARCH(l_shipda",
              "recordsIn": 60175,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 9484
            },
            {
              "operator": "NativeCalc(select=[n_nationkey], where=[=(n_name, 'CANADA')], nativeFunctions=[]",
              "recordsIn": 0,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_nationkey], where=[=(n_name, 'CANADA')], nativeFunctions=[]",
              "recordsIn": 25,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[p_partkey], where=[LIKE(p_name, 'forest%')], nativeFunctions=",
              "recordsIn": 0,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[p_partkey], where=[LIKE(p_name, 'forest%')], nativeFunctions=",
              "recordsIn": 2000,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 16
            },
            {
              "operator": "NativeCalc(select=[ps_suppkey], nativeFunctions=[], jvmFunctions=[])[2960]",
              "recordsIn": 20,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 20
            },
            {
              "operator": "NativeCalc(select=[ps_suppkey], nativeFunctions=[], jvmFunctions=[])[2960]",
              "recordsIn": 25,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 25
            },
            {
              "operator": "NativeCalc(select=[s_name, s_address, s_nationkey], nativeFunctions=[], jvmFunct",
              "recordsIn": 0,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_name, s_address, s_nationkey], nativeFunctions=[], jvmFunct",
              "recordsIn": 35,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 35
            },
            {
              "operator": "NativeCalc(select=[s_name, s_address], nativeFunctions=[], jvmFunctions=[])[2973",
              "recordsIn": 1,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[s_name, s_address], nativeFunctions=[], jvmFunctions=[])[2973",
              "recordsIn": 1,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 1,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 36,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_partkey, l_partkey), =(ps_suppk",
              "recordsIn": 2802,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 20
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[AND(=(ps_partkey, l_partkey), =(ps_suppk",
              "recordsIn": 2881,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 25
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[=(ps_partkey, p_partkey)], select=[ps",
              "recordsIn": 16,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[=(ps_partkey, p_partkey)], select=[ps",
              "recordsIn": 8016,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 64
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[=(s_suppkey, ps_suppkey)], select=[s_",
              "recordsIn": 145,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 35
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[=(s_suppkey, ps_suppkey)], select=[s_",
              "recordsIn": 45,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[s_name ASC])[2976]",
              "recordsIn": 2,
              "jobId": "bfdfbb2b6351684b3ee1d248fb930097",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            }
          ]
        }
      ],
      "resultType": "ROW<`s_name` STRING, `s_address` STRING> NOT NULL",
      "rows": 1,
      "resultSha256": "4d22941cf4b8739bf46614e7b07d41e497b042dc565c71a65a30f4bf6e7cc778",
      "stockNanos": [
        426862958
      ],
      "nativeNanos": [
        250908500
      ],
      "stockRuntimeMs": [
        238
      ],
      "nativeRuntimeMs": [
        103
      ],
      "status": "passed"
    },
    {
      "query": 21,
      "sqlSha256": "07ae101f42fa177606cf17744335782723f50c4149ea0dcb02c528b9732b0c7a",
      "sql": "-- database: presto; groups: tpch,big_query; tables: supplier,lineitem,orders,nation\nSELECT\n  s_name,\n  count(*) AS numwait\nFROM\n  supplier,\n  lineitem l1,\n  orders,\n  nation\nWHERE\n  s_suppkey = l1.l_suppkey\n  AND o_orderkey = l1.l_orderkey\n  AND o_orderstatus = 'F'\n  AND l1.l_receiptdate > l1.l_commitdate\n  AND exists(\n    SELECT *\n    FROM\n      lineitem l2\n    WHERE\n      l2.l_orderkey = l1.l_orderkey\n      AND l2.l_suppkey <> l1.l_suppkey\n  )\n  AND NOT exists(\n    SELECT *\n    FROM\n      lineitem l3\n    WHERE\n      l3.l_orderkey = l1.l_orderkey\n      AND l3.l_suppkey <> l1.l_suppkey\n      AND l3.l_receiptdate > l3.l_commitdate\n  )\n  AND s_nationkey = n_nationkey\n  AND n_name = 'SAUDI ARABIA'\nGROUP BY\n  s_name\nORDER BY\n  numwait DESC,\n  s_name\nLIMIT 100\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], sort1=[$0], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], fetch=[100])\n+- LogicalAggregate(group=[{0}], numwait=[COUNT()])\n   +- LogicalProject(s_name=[$1])\n      +- LogicalFilter(condition=[AND(=($0, $9), =($23, $7), =($25, _UTF-16LE'F'), >($19, $18), EXISTS({\nLogicalFilter(condition=[AND(=($0, $cor10.l_orderkey), <>($2, $cor10.l_suppkey))])\n  LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n}), NOT(EXISTS({\nLogicalFilter(condition=[AND(=($0, $cor10.l_orderkey), <>($2, $cor10.l_suppkey), >($12, $11))])\n  LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})), =($3, $32), =($33, _UTF-16LE'SAUDI ARABIA'))], variablesSet=[[$cor10]])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nSortLimit(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[true])\n+- Exchange(distribution=[single])\n   +- SortLimit(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[false])\n      +- HashAggregate(isMerge=[true], groupBy=[s_name], select=[s_name, Final_COUNT(count1$0) AS numwait])\n         +- Exchange(distribution=[hash[s_name]])\n            +- LocalHashAggregate(groupBy=[s_name], select=[s_name, Partial_COUNT(*) AS count1$0])\n               +- Calc(select=[s_name])\n                  +- HashJoin(joinType=[LeftAntiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], isBroadcast=[true], build=[right])\n                     :- HashJoin(joinType=[LeftSemiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], build=[left])\n                     :  :- Exchange(distribution=[hash[l_orderkey]])\n                     :  :  +- Calc(select=[s_name, l_orderkey, l_suppkey])\n                     :  :     +- NestedLoopJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, n_nationkey], build=[right])\n                     :  :        :- Calc(select=[s_name, s_nationkey, l_orderkey, l_suppkey])\n                     :  :        :  +- HashJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, o_orderkey], isBroadcast=[true], build=[right])\n                     :  :        :     :- Calc(select=[s_name, s_nationkey, l_orderkey, l_suppkey])\n                     :  :        :     :  +- HashJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_name, s_nationkey, l_orderkey, l_suppkey], isBroadcast=[true], build=[left])\n                     :  :        :     :     :- Exchange(distribution=[broadcast])\n                     :  :        :     :     :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_nationkey])\n                     :  :        :     :     +- Calc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)])\n                     :  :        :     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_receiptdate, l_commitdate)], project=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate])\n                     :  :        :     +- Exchange(distribution=[broadcast])\n                     :  :        :        +- Calc(select=[o_orderkey], where=[=(o_orderstatus, 'F')])\n                     :  :        :           +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[=(o_orderstatus, _UTF-16LE'F':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[o_orderkey, o_orderstatus], metadata=[]]], fields=[o_orderkey, o_orderstatus])\n                     :  :        +- Exchange(distribution=[broadcast])\n                     :  :           +- Calc(select=[n_nationkey], where=[=(n_name, 'SAUDI ARABIA')])\n                     :  :              +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'SAUDI ARABIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                     :  +- Exchange(distribution=[hash[l_orderkey]])\n                     :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey], metadata=[]]], fields=[l_orderkey, l_suppkey])\n                     +- Exchange(distribution=[broadcast])\n                        +- Calc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)])\n                           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_receiptdate, l_commitdate)], project=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate])\n\n== Optimized Execution Plan ==\nSortLimit(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[true])\n+- Exchange(distribution=[single])\n   +- SortLimit(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[false])\n      +- HashAggregate(isMerge=[true], groupBy=[s_name], select=[s_name, Final_COUNT(count1$0) AS numwait])\n         +- Exchange(distribution=[hash[s_name]])\n            +- LocalHashAggregate(groupBy=[s_name], select=[s_name, Partial_COUNT(*) AS count1$0])\n               +- Calc(select=[s_name])\n                  +- MultipleInput(readOrder=[0,0,1], members=[\\nHashJoin(joinType=[LeftAntiJoin], where=[((l_orderkey0 = l_orderkey) AND (l_suppkey0 <> l_suppkey))], select=[s_name, l_orderkey, l_suppkey], isBroadcast=[true], build=[right])\\n:- HashJoin(joinType=[LeftSemiJoin], where=[((l_orderkey0 = l_orderkey) AND (l_suppkey0 <> l_suppkey))], select=[s_name, l_orderkey, l_suppkey], build=[left])\\n:  :- [#2] Exchange(distribution=[hash[l_orderkey]])\\n:  +- [#3] Exchange(distribution=[hash[l_orderkey]])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                     :- Exchange(distribution=[broadcast])\n                     :  +- Calc(select=[l_orderkey, l_suppkey], where=[(l_receiptdate > l_commitdate)])(reuse_id=[1])\n                     :     +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_receiptdate, l_commitdate)], project=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate])\n                     :- Exchange(distribution=[hash[l_orderkey]])\n                     :  +- Calc(select=[s_name, l_orderkey, l_suppkey])\n                     :     +- MultipleInput(readOrder=[0,0,0,1], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[(s_nationkey = n_nationkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, n_nationkey], build=[right])\\n:- Calc(select=[s_name, s_nationkey, l_orderkey, l_suppkey])\\n:  +- HashJoin(joinType=[InnerJoin], where=[(o_orderkey = l_orderkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, o_orderkey], isBroadcast=[true], build=[right])\\n:     :- Calc(select=[s_name, s_nationkey, l_orderkey, l_suppkey])\\n:     :  +- HashJoin(joinType=[InnerJoin], where=[(s_suppkey = l_suppkey)], select=[s_suppkey, s_name, s_nationkey, l_orderkey, l_suppkey], isBroadcast=[true], build=[left])\\n:     :     :- [#3] Exchange(distribution=[broadcast])\\n:     :     +- [#4] Calc(select=[l_orderkey, l_suppkey], where=[(l_receiptdate > l_commitdate)])\\n:     +- [#2] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                     :        :- Exchange(distribution=[broadcast])\n                     :        :  +- Calc(select=[n_nationkey], where=[(n_name = 'SAUDI ARABIA')])\n                     :        :     +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'SAUDI ARABIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                     :        :- Exchange(distribution=[broadcast])\n                     :        :  +- Calc(select=[o_orderkey], where=[(o_orderstatus = 'F')])\n                     :        :     +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[=(o_orderstatus, _UTF-16LE'F':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[o_orderkey, o_orderstatus], metadata=[]]], fields=[o_orderkey, o_orderstatus])\n                     :        :- Exchange(distribution=[broadcast])\n                     :        :  +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_nationkey])\n                     :        +- Reused(reference_id=[1])\n                     +- Exchange(distribution=[hash[l_orderkey]])\n                        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey], metadata=[]]], fields=[l_orderkey, l_suppkey])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], sort1=[$0], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], fetch=[100])\n+- LogicalAggregate(group=[{0}], numwait=[COUNT()])\n   +- LogicalProject(s_name=[$1])\n      +- LogicalFilter(condition=[AND(=($0, $9), =($23, $7), =($25, _UTF-16LE'F'), >($19, $18), EXISTS({\nLogicalFilter(condition=[AND(=($0, $cor15.l_orderkey), <>($2, $cor15.l_suppkey))])\n  LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n}), NOT(EXISTS({\nLogicalFilter(condition=[AND(=($0, $cor15.l_orderkey), <>($2, $cor15.l_suppkey), >($12, $11))])\n  LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})), =($3, $32), =($33, _UTF-16LE'SAUDI ARABIA'))], variablesSet=[[$cor15]])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[true])\n+- NativeExchange(distribution=[single])\n   +- NativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[false])\n      +- NativeAggregate(isMerge=[true], groupBy=[s_name], select=[s_name, Final_COUNT(count1$0) AS numwait])\n         +- NativeExchange(distribution=[hash[s_name]])\n            +- NativeAggregate(groupBy=[s_name], select=[s_name, Partial_COUNT(*) AS count1$0])\n               +- NativeCalc(select=[s_name], nativeFunctions=[], jvmFunctions=[])\n                  +- NativeJoin(joinType=[LeftAntiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], isBroadcast=[true], build=[right])\n                     :- NativeJoin(joinType=[LeftSemiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], build=[left])\n                     :  :- NativeExchange(distribution=[hash[l_orderkey]])\n                     :  :  +- NativeCalc(select=[s_name, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :     +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, n_nationkey], build=[right])\n                     :  :        :- NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, o_orderkey], isBroadcast=[true], build=[right])\n                     :  :        :     :- NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_name, s_nationkey, l_orderkey, l_suppkey], isBroadcast=[true], build=[left])\n                     :  :        :     :     :- NativeExchange(distribution=[broadcast])\n                     :  :        :     :     :  +- RowDataToArrow\n                     :  :        :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_nationkey])\n                     :  :        :     :     +- NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :     :        +- RowDataToArrow\n                     :  :        :     :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_receiptdate, l_commitdate)], project=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate])\n                     :  :        :     +- NativeExchange(distribution=[broadcast])\n                     :  :        :        +- NativeCalc(select=[o_orderkey], where=[=(o_orderstatus, 'F')], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :           +- RowDataToArrow\n                     :  :        :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[=(o_orderstatus, _UTF-16LE'F':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[o_orderkey, o_orderstatus], metadata=[]]], fields=[o_orderkey, o_orderstatus])\n                     :  :        +- NativeExchange(distribution=[broadcast])\n                     :  :           +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'SAUDI ARABIA')], nativeFunctions=[], jvmFunctions=[])\n                     :  :              +- RowDataToArrow\n                     :  :                 +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'SAUDI ARABIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                     :  +- NativeExchange(distribution=[hash[l_orderkey]])\n                     :     +- RowDataToArrow\n                     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey], metadata=[]]], fields=[l_orderkey, l_suppkey])\n                     +- NativeExchange(distribution=[broadcast])\n                        +- NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_receiptdate, l_commitdate)], project=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[true])\n+- NativeExchange(distribution=[single])\n   +- NativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[false])\n      +- NativeAggregate(isMerge=[true], groupBy=[s_name], select=[s_name, Final_COUNT(count1$0) AS numwait])\n         +- NativeExchange(distribution=[hash[s_name]])\n            +- NativeAggregate(groupBy=[s_name], select=[s_name, Partial_COUNT(*) AS count1$0])\n               +- NativeCalc(select=[s_name], nativeFunctions=[], jvmFunctions=[])\n                  +- NativeJoin(joinType=[LeftAntiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], isBroadcast=[true], build=[right])\n                     :- NativeJoin(joinType=[LeftSemiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], build=[left])\n                     :  :- NativeExchange(distribution=[hash[l_orderkey]])\n                     :  :  +- NativeCalc(select=[s_name, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :     +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, n_nationkey], build=[right])\n                     :  :        :- NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, o_orderkey], isBroadcast=[true], build=[right])\n                     :  :        :     :- NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_name, s_nationkey, l_orderkey, l_suppkey], isBroadcast=[true], build=[left])\n                     :  :        :     :     :- NativeExchange(distribution=[broadcast])\n                     :  :        :     :     :  +- RowDataToArrow\n                     :  :        :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_nationkey])\n                     :  :        :     :     +- NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :     :        +- RowDataToArrow\n                     :  :        :     :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_receiptdate, l_commitdate)], project=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate])(reuse_id=[1])\n                     :  :        :     +- NativeExchange(distribution=[broadcast])\n                     :  :        :        +- NativeCalc(select=[o_orderkey], where=[=(o_orderstatus, 'F')], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :           +- RowDataToArrow\n                     :  :        :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[=(o_orderstatus, _UTF-16LE'F':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[o_orderkey, o_orderstatus], metadata=[]]], fields=[o_orderkey, o_orderstatus])\n                     :  :        +- NativeExchange(distribution=[broadcast])\n                     :  :           +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'SAUDI ARABIA')], nativeFunctions=[], jvmFunctions=[])\n                     :  :              +- RowDataToArrow\n                     :  :                 +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'SAUDI ARABIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                     :  +- NativeExchange(distribution=[hash[l_orderkey]])\n                     :     +- RowDataToArrow\n                     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey], metadata=[]]], fields=[l_orderkey, l_suppkey])\n                     +- NativeExchange(distribution=[broadcast])\n                        +- NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- Reused(reference_id=[1])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$1], sort1=[$0], dir0=[DESC-nulls-last], dir1=[ASC-nulls-first], fetch=[100])\n+- LogicalAggregate(group=[{0}], numwait=[COUNT()])\n   +- LogicalProject(s_name=[$1])\n      +- LogicalFilter(condition=[AND(=($0, $9), =($23, $7), =($25, _UTF-16LE'F'), >($19, $18), EXISTS({\nLogicalFilter(condition=[AND(=($0, $cor19.l_orderkey), <>($2, $cor19.l_suppkey))])\n  LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n}), NOT(EXISTS({\nLogicalFilter(condition=[AND(=($0, $cor19.l_orderkey), <>($2, $cor19.l_suppkey), >($12, $11))])\n  LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n})), =($3, $32), =($33, _UTF-16LE'SAUDI ARABIA'))], variablesSet=[[$cor19]])\n         +- LogicalJoin(condition=[true], joinType=[inner])\n            :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :- LogicalJoin(condition=[true], joinType=[inner])\n            :  :  :- LogicalTableScan(table=[[default_catalog, default_database, supplier]])\n            :  :  +- LogicalTableScan(table=[[default_catalog, default_database, lineitem]])\n            :  +- LogicalTableScan(table=[[default_catalog, default_database, orders]])\n            +- LogicalTableScan(table=[[default_catalog, default_database, nation]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[true])\n+- NativeExchange(distribution=[single])\n   +- NativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[false])\n      +- NativeAggregate(isMerge=[true], groupBy=[s_name], select=[s_name, Final_COUNT(count1$0) AS numwait])\n         +- NativeExchange(distribution=[hash[s_name]])\n            +- NativeAggregate(groupBy=[s_name], select=[s_name, Partial_COUNT(*) AS count1$0])\n               +- NativeCalc(select=[s_name], nativeFunctions=[], jvmFunctions=[])\n                  +- NativeJoin(joinType=[LeftAntiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], isBroadcast=[true], build=[right])\n                     :- NativeJoin(joinType=[LeftSemiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], build=[left])\n                     :  :- NativeExchange(distribution=[hash[l_orderkey]])\n                     :  :  +- NativeCalc(select=[s_name, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :     +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, n_nationkey], build=[right])\n                     :  :        :- NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, o_orderkey], isBroadcast=[true], build=[right])\n                     :  :        :     :- NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_name, s_nationkey, l_orderkey, l_suppkey], isBroadcast=[true], build=[left])\n                     :  :        :     :     :- NativeExchange(distribution=[broadcast])\n                     :  :        :     :     :  +- RowDataToArrow\n                     :  :        :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_nationkey])\n                     :  :        :     :     +- NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :     :        +- RowDataToArrow\n                     :  :        :     :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_receiptdate, l_commitdate)], project=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate])\n                     :  :        :     +- NativeExchange(distribution=[broadcast])\n                     :  :        :        +- NativeCalc(select=[o_orderkey], where=[=(o_orderstatus, 'F')], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :           +- RowDataToArrow\n                     :  :        :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[=(o_orderstatus, _UTF-16LE'F':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[o_orderkey, o_orderstatus], metadata=[]]], fields=[o_orderkey, o_orderstatus])\n                     :  :        +- NativeExchange(distribution=[broadcast])\n                     :  :           +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'SAUDI ARABIA')], nativeFunctions=[], jvmFunctions=[])\n                     :  :              +- RowDataToArrow\n                     :  :                 +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'SAUDI ARABIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                     :  +- NativeExchange(distribution=[hash[l_orderkey]])\n                     :     +- RowDataToArrow\n                     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey], metadata=[]]], fields=[l_orderkey, l_suppkey])\n                     +- NativeExchange(distribution=[broadcast])\n                        +- NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_receiptdate, l_commitdate)], project=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[true])\n+- NativeExchange(distribution=[single])\n   +- NativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[false])\n      +- NativeAggregate(isMerge=[true], groupBy=[s_name], select=[s_name, Final_COUNT(count1$0) AS numwait])\n         +- NativeExchange(distribution=[hash[s_name]])\n            +- NativeAggregate(groupBy=[s_name], select=[s_name, Partial_COUNT(*) AS count1$0])\n               +- NativeCalc(select=[s_name], nativeFunctions=[], jvmFunctions=[])\n                  +- NativeJoin(joinType=[LeftAntiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], isBroadcast=[true], build=[right])\n                     :- NativeJoin(joinType=[LeftSemiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_suppkey0, l_suppkey))], select=[s_name, l_orderkey, l_suppkey], build=[left])\n                     :  :- NativeExchange(distribution=[hash[l_orderkey]])\n                     :  :  +- NativeCalc(select=[s_name, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :     +- NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, n_nationkey], build=[right])\n                     :  :        :- NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :  +- NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_name, s_nationkey, l_orderkey, l_suppkey, o_orderkey], isBroadcast=[true], build=[right])\n                     :  :        :     :- NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :     :  +- NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_suppkey, s_name, s_nationkey, l_orderkey, l_suppkey], isBroadcast=[true], build=[left])\n                     :  :        :     :     :- NativeExchange(distribution=[broadcast])\n                     :  :        :     :     :  +- RowDataToArrow\n                     :  :        :     :     :     +- TableSourceScan(table=[[default_catalog, default_database, supplier, project=[s_suppkey, s_name, s_nationkey], metadata=[]]], fields=[s_suppkey, s_name, s_nationkey])\n                     :  :        :     :     +- NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :     :        +- RowDataToArrow\n                     :  :        :     :           +- TableSourceScan(table=[[default_catalog, default_database, lineitem, filter=[>(l_receiptdate, l_commitdate)], project=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate], metadata=[]]], fields=[l_orderkey, l_suppkey, l_commitdate, l_receiptdate])(reuse_id=[1])\n                     :  :        :     +- NativeExchange(distribution=[broadcast])\n                     :  :        :        +- NativeCalc(select=[o_orderkey], where=[=(o_orderstatus, 'F')], nativeFunctions=[], jvmFunctions=[])\n                     :  :        :           +- RowDataToArrow\n                     :  :        :              +- TableSourceScan(table=[[default_catalog, default_database, orders, filter=[=(o_orderstatus, _UTF-16LE'F':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[o_orderkey, o_orderstatus], metadata=[]]], fields=[o_orderkey, o_orderstatus])\n                     :  :        +- NativeExchange(distribution=[broadcast])\n                     :  :           +- NativeCalc(select=[n_nationkey], where=[=(n_name, 'SAUDI ARABIA')], nativeFunctions=[], jvmFunctions=[])\n                     :  :              +- RowDataToArrow\n                     :  :                 +- TableSourceScan(table=[[default_catalog, default_database, nation, filter=[=(n_name, _UTF-16LE'SAUDI ARABIA':VARCHAR(2147483647) CHARACTER SET \"UTF-16LE\")], project=[n_nationkey, n_name], metadata=[]]], fields=[n_nationkey, n_name])\n                     :  +- NativeExchange(distribution=[hash[l_orderkey]])\n                     :     +- RowDataToArrow\n                     :        +- TableSourceScan(table=[[default_catalog, default_database, lineitem, project=[l_orderkey, l_suppkey], metadata=[]]], fields=[l_orderkey, l_suppkey])\n                     +- NativeExchange(distribution=[broadcast])\n                        +- NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)], nativeFunctions=[], jvmFunctions=[])\n                           +- RowDataToArrow\n                              +- Reused(reference_id=[1])\n\nStreamFusion batch: 25 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "e9604265f6432aa4820ad7a7d7ede5ba",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "0cec618563bf4e9c8ab903d581143cf4",
          "sourceArrowRows": 135475,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[s_name], select=[s_name, Partial_COUNT(*) AS count1$0])",
              "recordsIn": 4,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(groupBy=[s_name], select=[s_name, Partial_COUNT(*) AS count1$0])",
              "recordsIn": 5,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[s_name], select=[s_name, Final_COUNT(co",
              "recordsIn": 0,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[s_name], select=[s_name, Final_COUNT(co",
              "recordsIn": 2,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)",
              "recordsIn": 0,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)",
              "recordsIn": 0,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)",
              "recordsIn": 60175,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 37897
            },
            {
              "operator": "NativeCalc(select=[l_orderkey, l_suppkey], where=[>(l_receiptdate, l_commitdate)",
              "recordsIn": 60175,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 37897
            },
            {
              "operator": "NativeCalc(select=[n_nationkey], where=[=(n_name, 'SAUDI ARABIA')], nativeFuncti",
              "recordsIn": 0,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[n_nationkey], where=[=(n_name, 'SAUDI ARABIA')], nativeFuncti",
              "recordsIn": 25,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[o_orderkey], where=[=(o_orderstatus, 'F')], nativeFunctions=[",
              "recordsIn": 0,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[o_orderkey], where=[=(o_orderstatus, 'F')], nativeFunctions=[",
              "recordsIn": 15000,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 7304
            },
            {
              "operator": "NativeCalc(select=[s_name, l_orderkey, l_suppkey], nativeFunctions=[], jvmFuncti",
              "recordsIn": 1,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[s_name, l_orderkey, l_suppkey], nativeFunctions=[], jvmFuncti",
              "recordsIn": 182,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 182
            },
            {
              "operator": "NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=",
              "recordsIn": 0,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=",
              "recordsIn": 0,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=",
              "recordsIn": 18339,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 18339
            },
            {
              "operator": "NativeCalc(select=[s_name, s_nationkey, l_orderkey, l_suppkey], nativeFunctions=",
              "recordsIn": 37897,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 37897
            },
            {
              "operator": "NativeCalc(select=[s_name], nativeFunctions=[], jvmFunctions=[])[3185]",
              "recordsIn": 4,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 4
            },
            {
              "operator": "NativeCalc(select=[s_name], nativeFunctions=[], jvmFunctions=[])[3185]",
              "recordsIn": 5,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 5
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 0,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeFileSourceShare",
              "recordsIn": 60175,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 60175
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_na",
              "recordsIn": 45201,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 18339
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(o_orderkey, l_orderkey)], select=[s_na",
              "recordsIn": 7304,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 1,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_nationkey, n_nationkey)], select=[s_",
              "recordsIn": 18340,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 182
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_supp",
              "recordsIn": 100,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[=(s_suppkey, l_suppkey)], select=[s_supp",
              "recordsIn": 37997,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 37897
            },
            {
              "operator": "NativeJoin(joinType=[LeftAntiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_",
              "recordsIn": 37972,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 4
            },
            {
              "operator": "NativeJoin(joinType=[LeftAntiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_",
              "recordsIn": 37998,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 5
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_",
              "recordsIn": 29829,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 75
            },
            {
              "operator": "NativeJoin(joinType=[LeftSemiJoin], where=[AND(=(l_orderkey0, l_orderkey), <>(l_",
              "recordsIn": 30528,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 101
            },
            {
              "operator": "NativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[",
              "recordsIn": 0,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[",
              "recordsIn": 1,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeSort(orderBy=[numwait DESC, s_name ASC], offset=[0], fetch=[100], global=[",
              "recordsIn": 1,
              "jobId": "0cec618563bf4e9c8ab903d581143cf4",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 1
            }
          ]
        }
      ],
      "resultType": "ROW<`s_name` STRING, `numwait` BIGINT NOT NULL> NOT NULL",
      "rows": 1,
      "resultSha256": "0173745cbea9c4130c92ae1b92a990ca5ff07dd24d8b2d86c998d0be50997efc",
      "stockNanos": [
        305801125
      ],
      "nativeNanos": [
        262625709
      ],
      "stockRuntimeMs": [
        191
      ],
      "nativeRuntimeMs": [
        105
      ],
      "status": "passed"
    },
    {
      "query": 22,
      "sqlSha256": "21b5e9cedbbb4bb9ee5a987ce9a901f9aaeb8736e96d7daf0ad3fbfea7632100",
      "sql": "-- database: presto; groups: tpch; tables: orders,customer\nSELECT\n  cntrycode,\n  count(*)       AS numcust,\n  sum(c_acctbal) AS totacctbal\nFROM (\n       SELECT\n         substr(c_phone, 1, 2) AS cntrycode,\n         c_acctbal\n       FROM\n         customer\n       WHERE\n         substr(c_phone, 1, 2) IN\n         ('13', '31', '23', '29', '30', '18', '17')\n         AND c_acctbal > (\n           SELECT avg(c_acctbal)\n           FROM\n             customer\n           WHERE\n             c_acctbal > 0.00\n             AND substr(c_phone, 1, 2) IN\n                 ('13', '31', '23', '29', '30', '18', '17')\n         )\n         AND NOT exists(\n           SELECT *\n           FROM\n             orders\n           WHERE\n             o_custkey = c_custkey\n         )\n     ) AS custsale\nGROUP BY\n  cntrycode\nORDER BY\n  cntrycode\n",
      "stockPlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0}], numcust=[COUNT()], totacctbal=[SUM($1)])\n   +- LogicalProject(cntrycode=[SUBSTR($4, 1, 2)], c_acctbal=[$5])\n      +- LogicalFilter(condition=[AND(OR(=(SUBSTR($4, 1, 2), _UTF-16LE'13'), =(SUBSTR($4, 1, 2), _UTF-16LE'31'), =(SUBSTR($4, 1, 2), _UTF-16LE'23'), =(SUBSTR($4, 1, 2), _UTF-16LE'29'), =(SUBSTR($4, 1, 2), _UTF-16LE'30'), =(SUBSTR($4, 1, 2), _UTF-16LE'18'), =(SUBSTR($4, 1, 2), _UTF-16LE'17')), >($5, $SCALAR_QUERY({\nLogicalAggregate(group=[{}], EXPR$0=[AVG($0)])\n  LogicalProject(c_acctbal=[$5])\n    LogicalFilter(condition=[AND(>($5, 0.00:DECIMAL(3, 2)), OR(=(SUBSTR($4, 1, 2), _UTF-16LE'13'), =(SUBSTR($4, 1, 2), _UTF-16LE'31'), =(SUBSTR($4, 1, 2), _UTF-16LE'23'), =(SUBSTR($4, 1, 2), _UTF-16LE'29'), =(SUBSTR($4, 1, 2), _UTF-16LE'30'), =(SUBSTR($4, 1, 2), _UTF-16LE'18'), =(SUBSTR($4, 1, 2), _UTF-16LE'17')))])\n      LogicalTableScan(table=[[default_catalog, default_database, customer]])\n})), NOT(EXISTS({\nLogicalFilter(condition=[=($1, $cor18.c_custkey)])\n  LogicalTableScan(table=[[default_catalog, default_database, orders]])\n})))], variablesSet=[[$cor18]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n\n== Optimized Physical Plan ==\nSort(orderBy=[cntrycode ASC])\n+- Exchange(distribution=[single])\n   +- SortAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_COUNT(count1$0) AS numcust, Final_SUM(sum$1) AS totacctbal])\n      +- Sort(orderBy=[cntrycode ASC])\n         +- Exchange(distribution=[hash[cntrycode]])\n            +- LocalSortAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS count1$0, Partial_SUM(c_acctbal) AS sum$1])\n               +- Sort(orderBy=[cntrycode ASC])\n                  +- Calc(select=[SUBSTR(c_phone, 1, 2) AS cntrycode, c_acctbal])\n                     +- NestedLoopJoin(joinType=[InnerJoin], where=[>(c_acctbal, EXPR$0)], select=[c_phone, c_acctbal, EXPR$0], build=[right], singleRowJoin=[true])\n                        :- Calc(select=[c_phone, c_acctbal], where=[OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31'))])\n                        :  +- HashJoin(joinType=[LeftAntiJoin], where=[=(o_custkey, c_custkey)], select=[c_custkey, c_phone, c_acctbal], isBroadcast=[true], build=[right])\n                        :     :- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31'))], project=[c_custkey, c_phone, c_acctbal], metadata=[]]], fields=[c_custkey, c_phone, c_acctbal])\n                        :     +- Exchange(distribution=[broadcast])\n                        :        +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_custkey], metadata=[]]], fields=[o_custkey])\n                        +- Exchange(distribution=[broadcast])\n                           +- HashAggregate(isMerge=[true], select=[Final_AVG(sum$0, count$1) AS EXPR$0])\n                              +- Exchange(distribution=[single])\n                                 +- LocalHashAggregate(select=[Partial_AVG(c_acctbal) AS (sum$0, count$1)])\n                                    +- Calc(select=[c_acctbal], where=[AND(>(c_acctbal, 0.00), OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31')))])\n                                       +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[and(>(c_acctbal, 0.00:DECIMAL(3, 2)), OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31')))], project=[c_phone, c_acctbal], metadata=[]]], fields=[c_phone, c_acctbal])\n\n== Optimized Execution Plan ==\nSort(orderBy=[cntrycode ASC])\n+- Exchange(distribution=[single])\n   +- SortAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_COUNT(count1$0) AS numcust, Final_SUM(sum$1) AS totacctbal])\n      +- Exchange(distribution=[forward])\n         +- Sort(orderBy=[cntrycode ASC])\n            +- Exchange(distribution=[hash[cntrycode]])\n               +- LocalSortAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS count1$0, Partial_SUM(c_acctbal) AS sum$1])\n                  +- Exchange(distribution=[forward])\n                     +- Sort(orderBy=[cntrycode ASC])\n                        +- Calc(select=[SUBSTR(c_phone, 1, 2) AS cntrycode, c_acctbal])\n                           +- MultipleInput(readOrder=[0,1,0], members=[\\nNestedLoopJoin(joinType=[InnerJoin], where=[(c_acctbal > EXPR$0)], select=[c_phone, c_acctbal, EXPR$0], build=[right], singleRowJoin=[true])\\n:- Calc(select=[c_phone, c_acctbal], where=[((SUBSTR(c_phone, 1, 2) = '13') OR (SUBSTR(c_phone, 1, 2) = '17') OR (SUBSTR(c_phone, 1, 2) = '18') OR (SUBSTR(c_phone, 1, 2) = '23') OR (SUBSTR(c_phone, 1, 2) = '29') OR (SUBSTR(c_phone, 1, 2) = '30') OR (SUBSTR(c_phone, 1, 2) = '31'))])\\n:  +- HashJoin(joinType=[LeftAntiJoin], where=[(o_custkey = c_custkey)], select=[c_custkey, c_phone, c_acctbal], isBroadcast=[true], build=[right])\\n:     :- [#2] TableSourceScan(table=[[default_catalog, default_database, customer, filter=[OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31'))], project=[c_custkey, c_phone, c_acctbal], metadata=[]]], fields=[c_custkey, c_phone, c_acctbal])\\n:     +- [#3] Exchange(distribution=[broadcast])\\n+- [#1] Exchange(distribution=[broadcast])\\n])\n                              :- Exchange(distribution=[broadcast])\n                              :  +- HashAggregate(isMerge=[true], select=[Final_AVG(sum$0, count$1) AS EXPR$0])\n                              :     +- Exchange(distribution=[single])\n                              :        +- LocalHashAggregate(select=[Partial_AVG(c_acctbal) AS (sum$0, count$1)])\n                              :           +- Calc(select=[c_acctbal], where=[((c_acctbal > 0.00) AND ((SUBSTR(c_phone, 1, 2) = '13') OR (SUBSTR(c_phone, 1, 2) = '17') OR (SUBSTR(c_phone, 1, 2) = '18') OR (SUBSTR(c_phone, 1, 2) = '23') OR (SUBSTR(c_phone, 1, 2) = '29') OR (SUBSTR(c_phone, 1, 2) = '30') OR (SUBSTR(c_phone, 1, 2) = '31')))])\n                              :              +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[and(>(c_acctbal, 0.00:DECIMAL(3, 2)), OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31')))], project=[c_phone, c_acctbal], metadata=[]]], fields=[c_phone, c_acctbal])\n                              :- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31'))], project=[c_custkey, c_phone, c_acctbal], metadata=[]]], fields=[c_custkey, c_phone, c_acctbal])\n                              +- Exchange(distribution=[broadcast])\n                                 +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_custkey], metadata=[]]], fields=[o_custkey])\n",
      "nativePlan": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0}], numcust=[COUNT()], totacctbal=[SUM($1)])\n   +- LogicalProject(cntrycode=[SUBSTR($4, 1, 2)], c_acctbal=[$5])\n      +- LogicalFilter(condition=[AND(OR(=(SUBSTR($4, 1, 2), _UTF-16LE'13'), =(SUBSTR($4, 1, 2), _UTF-16LE'31'), =(SUBSTR($4, 1, 2), _UTF-16LE'23'), =(SUBSTR($4, 1, 2), _UTF-16LE'29'), =(SUBSTR($4, 1, 2), _UTF-16LE'30'), =(SUBSTR($4, 1, 2), _UTF-16LE'18'), =(SUBSTR($4, 1, 2), _UTF-16LE'17')), >($5, $SCALAR_QUERY({\nLogicalAggregate(group=[{}], EXPR$0=[AVG($0)])\n  LogicalProject(c_acctbal=[$5])\n    LogicalFilter(condition=[AND(>($5, 0.00:DECIMAL(3, 2)), OR(=(SUBSTR($4, 1, 2), _UTF-16LE'13'), =(SUBSTR($4, 1, 2), _UTF-16LE'31'), =(SUBSTR($4, 1, 2), _UTF-16LE'23'), =(SUBSTR($4, 1, 2), _UTF-16LE'29'), =(SUBSTR($4, 1, 2), _UTF-16LE'30'), =(SUBSTR($4, 1, 2), _UTF-16LE'18'), =(SUBSTR($4, 1, 2), _UTF-16LE'17')))])\n      LogicalTableScan(table=[[default_catalog, default_database, customer]])\n})), NOT(EXISTS({\nLogicalFilter(condition=[=($1, $cor27.c_custkey)])\n  LogicalTableScan(table=[[default_catalog, default_database, orders]])\n})))], variablesSet=[[$cor27]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[cntrycode ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_COUNT(count1$0) AS numcust, Final_SUM(sum$1) AS totacctbal])\n      +- NativeExchange(orderBy=[cntrycode ASC])\n         +- NativeSort(orderBy=[cntrycode ASC])\n            +- NativeExchange(distribution=[hash[cntrycode]])\n               +- NativeAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS count1$0, Partial_SUM(c_acctbal) AS sum$1])\n                  +- NativeSort(orderBy=[cntrycode ASC])\n                     +- NativeCalc(select=[SUBSTR(c_phone, 1, 2) AS cntrycode, c_acctbal], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                        +- NativeJoin(joinType=[InnerJoin], where=[>(c_acctbal, EXPR$0)], select=[c_phone, c_acctbal, EXPR$0], build=[right], singleRowJoin=[true])\n                           :- NativeCalc(select=[c_phone, c_acctbal], where=[OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31'))], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                           :  +- NativeJoin(joinType=[LeftAntiJoin], where=[=(o_custkey, c_custkey)], select=[c_custkey, c_phone, c_acctbal], isBroadcast=[true], build=[right])\n                           :     :- RowDataToArrow\n                           :     :  +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31'))], project=[c_custkey, c_phone, c_acctbal], metadata=[]]], fields=[c_custkey, c_phone, c_acctbal])\n                           :     +- NativeExchange(distribution=[broadcast])\n                           :        +- RowDataToArrow\n                           :           +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_custkey], metadata=[]]], fields=[o_custkey])\n                           +- NativeExchange(distribution=[broadcast])\n                              +- NativeAggregate(isMerge=[true], select=[Final_AVG(sum$0, count$1) AS EXPR$0])\n                                 +- NativeExchange(distribution=[single])\n                                    +- NativeAggregate(select=[Partial_AVG(c_acctbal) AS (sum$0, count$1)])\n                                       +- NativeCalc(select=[c_acctbal], where=[AND(>(c_acctbal, 0.00), OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31')))], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                                          +- RowDataToArrow\n                                             +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[and(>(c_acctbal, 0.00:DECIMAL(3, 2)), OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31')))], project=[c_phone, c_acctbal], metadata=[]]], fields=[c_phone, c_acctbal])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[cntrycode ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_COUNT(count1$0) AS numcust, Final_SUM(sum$1) AS totacctbal])\n      +- NativeExchange(orderBy=[cntrycode ASC])\n         +- NativeSort(orderBy=[cntrycode ASC])\n            +- NativeExchange(distribution=[hash[cntrycode]])\n               +- NativeAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS count1$0, Partial_SUM(c_acctbal) AS sum$1])\n                  +- NativeSort(orderBy=[cntrycode ASC])\n                     +- NativeCalc(select=[SUBSTR(c_phone, 1, 2) AS cntrycode, c_acctbal], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                        +- NativeJoin(joinType=[InnerJoin], where=[>(c_acctbal, EXPR$0)], select=[c_phone, c_acctbal, EXPR$0], build=[right], singleRowJoin=[true])\n                           :- NativeCalc(select=[c_phone, c_acctbal], where=[OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31'))], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                           :  +- NativeJoin(joinType=[LeftAntiJoin], where=[=(o_custkey, c_custkey)], select=[c_custkey, c_phone, c_acctbal], isBroadcast=[true], build=[right])\n                           :     :- RowDataToArrow\n                           :     :  +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31'))], project=[c_custkey, c_phone, c_acctbal], metadata=[]]], fields=[c_custkey, c_phone, c_acctbal])\n                           :     +- NativeExchange(distribution=[broadcast])\n                           :        +- RowDataToArrow\n                           :           +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_custkey], metadata=[]]], fields=[o_custkey])\n                           +- NativeExchange(distribution=[broadcast])\n                              +- NativeAggregate(isMerge=[true], select=[Final_AVG(sum$0, count$1) AS EXPR$0])\n                                 +- NativeExchange(distribution=[single])\n                                    +- NativeAggregate(select=[Partial_AVG(c_acctbal) AS (sum$0, count$1)])\n                                       +- NativeCalc(select=[c_acctbal], where=[AND(>(c_acctbal, 0.00), OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31')))], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                                          +- RowDataToArrow\n                                             +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[and(>(c_acctbal, 0.00:DECIMAL(3, 2)), OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31')))], project=[c_phone, c_acctbal], metadata=[]]], fields=[c_phone, c_acctbal])\n",
      "admission": "== Abstract Syntax Tree ==\nLogicalSort(sort0=[$0], dir0=[ASC-nulls-first])\n+- LogicalAggregate(group=[{0}], numcust=[COUNT()], totacctbal=[SUM($1)])\n   +- LogicalProject(cntrycode=[SUBSTR($4, 1, 2)], c_acctbal=[$5])\n      +- LogicalFilter(condition=[AND(OR(=(SUBSTR($4, 1, 2), _UTF-16LE'13'), =(SUBSTR($4, 1, 2), _UTF-16LE'31'), =(SUBSTR($4, 1, 2), _UTF-16LE'23'), =(SUBSTR($4, 1, 2), _UTF-16LE'29'), =(SUBSTR($4, 1, 2), _UTF-16LE'30'), =(SUBSTR($4, 1, 2), _UTF-16LE'18'), =(SUBSTR($4, 1, 2), _UTF-16LE'17')), >($5, $SCALAR_QUERY({\nLogicalAggregate(group=[{}], EXPR$0=[AVG($0)])\n  LogicalProject(c_acctbal=[$5])\n    LogicalFilter(condition=[AND(>($5, 0.00:DECIMAL(3, 2)), OR(=(SUBSTR($4, 1, 2), _UTF-16LE'13'), =(SUBSTR($4, 1, 2), _UTF-16LE'31'), =(SUBSTR($4, 1, 2), _UTF-16LE'23'), =(SUBSTR($4, 1, 2), _UTF-16LE'29'), =(SUBSTR($4, 1, 2), _UTF-16LE'30'), =(SUBSTR($4, 1, 2), _UTF-16LE'18'), =(SUBSTR($4, 1, 2), _UTF-16LE'17')))])\n      LogicalTableScan(table=[[default_catalog, default_database, customer]])\n})), NOT(EXISTS({\nLogicalFilter(condition=[=($1, $cor28.c_custkey)])\n  LogicalTableScan(table=[[default_catalog, default_database, orders]])\n})))], variablesSet=[[$cor28]])\n         +- LogicalTableScan(table=[[default_catalog, default_database, customer]])\n\n== Optimized Physical Plan ==\nNativeSort(orderBy=[cntrycode ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_COUNT(count1$0) AS numcust, Final_SUM(sum$1) AS totacctbal])\n      +- NativeExchange(orderBy=[cntrycode ASC])\n         +- NativeSort(orderBy=[cntrycode ASC])\n            +- NativeExchange(distribution=[hash[cntrycode]])\n               +- NativeAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS count1$0, Partial_SUM(c_acctbal) AS sum$1])\n                  +- NativeSort(orderBy=[cntrycode ASC])\n                     +- NativeCalc(select=[SUBSTR(c_phone, 1, 2) AS cntrycode, c_acctbal], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                        +- NativeJoin(joinType=[InnerJoin], where=[>(c_acctbal, EXPR$0)], select=[c_phone, c_acctbal, EXPR$0], build=[right], singleRowJoin=[true])\n                           :- NativeCalc(select=[c_phone, c_acctbal], where=[OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31'))], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                           :  +- NativeJoin(joinType=[LeftAntiJoin], where=[=(o_custkey, c_custkey)], select=[c_custkey, c_phone, c_acctbal], isBroadcast=[true], build=[right])\n                           :     :- RowDataToArrow\n                           :     :  +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31'))], project=[c_custkey, c_phone, c_acctbal], metadata=[]]], fields=[c_custkey, c_phone, c_acctbal])\n                           :     +- NativeExchange(distribution=[broadcast])\n                           :        +- RowDataToArrow\n                           :           +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_custkey], metadata=[]]], fields=[o_custkey])\n                           +- NativeExchange(distribution=[broadcast])\n                              +- NativeAggregate(isMerge=[true], select=[Final_AVG(sum$0, count$1) AS EXPR$0])\n                                 +- NativeExchange(distribution=[single])\n                                    +- NativeAggregate(select=[Partial_AVG(c_acctbal) AS (sum$0, count$1)])\n                                       +- NativeCalc(select=[c_acctbal], where=[AND(>(c_acctbal, 0.00), OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31')))], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                                          +- RowDataToArrow\n                                             +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[and(>(c_acctbal, 0.00:DECIMAL(3, 2)), OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31')))], project=[c_phone, c_acctbal], metadata=[]]], fields=[c_phone, c_acctbal])\n\n== Optimized Execution Plan ==\nNativeSort(orderBy=[cntrycode ASC])\n+- NativeExchange(distribution=[single])\n   +- NativeAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_COUNT(count1$0) AS numcust, Final_SUM(sum$1) AS totacctbal])\n      +- NativeExchange(orderBy=[cntrycode ASC])\n         +- NativeSort(orderBy=[cntrycode ASC])\n            +- NativeExchange(distribution=[hash[cntrycode]])\n               +- NativeAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS count1$0, Partial_SUM(c_acctbal) AS sum$1])\n                  +- NativeSort(orderBy=[cntrycode ASC])\n                     +- NativeCalc(select=[SUBSTR(c_phone, 1, 2) AS cntrycode, c_acctbal], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                        +- NativeJoin(joinType=[InnerJoin], where=[>(c_acctbal, EXPR$0)], select=[c_phone, c_acctbal, EXPR$0], build=[right], singleRowJoin=[true])\n                           :- NativeCalc(select=[c_phone, c_acctbal], where=[OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31'))], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                           :  +- NativeJoin(joinType=[LeftAntiJoin], where=[=(o_custkey, c_custkey)], select=[c_custkey, c_phone, c_acctbal], isBroadcast=[true], build=[right])\n                           :     :- RowDataToArrow\n                           :     :  +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31'))], project=[c_custkey, c_phone, c_acctbal], metadata=[]]], fields=[c_custkey, c_phone, c_acctbal])\n                           :     +- NativeExchange(distribution=[broadcast])\n                           :        +- RowDataToArrow\n                           :           +- TableSourceScan(table=[[default_catalog, default_database, orders, project=[o_custkey], metadata=[]]], fields=[o_custkey])\n                           +- NativeExchange(distribution=[broadcast])\n                              +- NativeAggregate(isMerge=[true], select=[Final_AVG(sum$0, count$1) AS EXPR$0])\n                                 +- NativeExchange(distribution=[single])\n                                    +- NativeAggregate(select=[Partial_AVG(c_acctbal) AS (sum$0, count$1)])\n                                       +- NativeCalc(select=[c_acctbal], where=[AND(>(c_acctbal, 0.00), OR(=(SUBSTR(c_phone, 1, 2), '13'), =(SUBSTR(c_phone, 1, 2), '17'), =(SUBSTR(c_phone, 1, 2), '18'), =(SUBSTR(c_phone, 1, 2), '23'), =(SUBSTR(c_phone, 1, 2), '29'), =(SUBSTR(c_phone, 1, 2), '30'), =(SUBSTR(c_phone, 1, 2), '31')))], nativeFunctions=[SUBSTR], jvmFunctions=[])\n                                          +- RowDataToArrow\n                                             +- TableSourceScan(table=[[default_catalog, default_database, customer, filter=[and(>(c_acctbal, 0.00:DECIMAL(3, 2)), OR(OR(OR(OR(OR(OR(=(SUBSTR(c_phone, 1, 2), _UTF-16LE'13'), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'17')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'18')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'23')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'29')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'30')), =(SUBSTR(c_phone, 1, 2), _UTF-16LE'31')))], project=[c_phone, c_acctbal], metadata=[]]], fields=[c_phone, c_acctbal])\n\nStreamFusion batch: 17 native substitutions; fallback reasons=[]",
      "nativePlanned": true,
      "runs": [
        {
          "engine": "stock",
          "trial": 0,
          "jobId": "dad7b8c47c99de616be9160c2c39017d",
          "sourceArrowRows": 0,
          "entryTransposeRows": 0,
          "nativeWork": []
        },
        {
          "engine": "streamfusion",
          "trial": 0,
          "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
          "sourceArrowRows": 18000,
          "entryTransposeRows": 0,
          "nativeWork": [
            {
              "operator": "NativeAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS coun",
              "recordsIn": 0,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS coun",
              "recordsIn": 0,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS coun",
              "recordsIn": 7,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 7
            },
            {
              "operator": "NativeAggregate(groupBy=[cntrycode], select=[cntrycode, Partial_COUNT(*) AS coun",
              "recordsIn": 73,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 7
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_CO",
              "recordsIn": 2,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_CO",
              "recordsIn": 2,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_CO",
              "recordsIn": 5,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            },
            {
              "operator": "NativeAggregate(isMerge=[true], groupBy=[cntrycode], select=[cntrycode, Final_CO",
              "recordsIn": 5,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            },
            {
              "operator": "NativeAggregate(isMerge=[true], select=[Final_AVG(sum$0, count$1) AS EXPR$0])[33",
              "recordsIn": 1,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeAggregate(select=[Partial_AVG(c_acctbal) AS (sum$0, count$1)])[3318]",
              "recordsIn": 0,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeAggregate(select=[Partial_AVG(c_acctbal) AS (sum$0, count$1)])[3318]",
              "recordsIn": 387,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[SUBSTR(c_phone, 1, 2) AS cntrycode, c_acctbal], nativeFunctio",
              "recordsIn": 1,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeCalc(select=[SUBSTR(c_phone, 1, 2) AS cntrycode, c_acctbal], nativeFunctio",
              "recordsIn": 73,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 73
            },
            {
              "operator": "NativeCalc(select=[c_acctbal], where=[AND(>(c_acctbal, 0.00), OR(=(SUBSTR(c_phon",
              "recordsIn": 0,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_acctbal], where=[AND(>(c_acctbal, 0.00), OR(=(SUBSTR(c_phon",
              "recordsIn": 1500,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 387
            },
            {
              "operator": "NativeCalc(select=[c_phone, c_acctbal], where=[OR(=(SUBSTR(c_phone, 1, 2), '13')",
              "recordsIn": 0,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeCalc(select=[c_phone, c_acctbal], where=[OR(=(SUBSTR(c_phone, 1, 2), '13')",
              "recordsIn": 500,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 145
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[>(c_acctbal, EXPR$0)], select=[c_phone, ",
              "recordsIn": 1,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 1
            },
            {
              "operator": "NativeJoin(joinType=[InnerJoin], where=[>(c_acctbal, EXPR$0)], select=[c_phone, ",
              "recordsIn": 146,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 73
            },
            {
              "operator": "NativeJoin(joinType=[LeftAntiJoin], where=[=(o_custkey, c_custkey)], select=[c_c",
              "recordsIn": 15000,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeJoin(joinType=[LeftAntiJoin], where=[=(o_custkey, c_custkey)], select=[c_c",
              "recordsIn": 16500,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 500
            },
            {
              "operator": "NativeSort(orderBy=[cntrycode ASC])[3325]",
              "recordsIn": 1,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 0
            },
            {
              "operator": "NativeSort(orderBy=[cntrycode ASC])[3325]",
              "recordsIn": 73,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 73
            },
            {
              "operator": "NativeSort(orderBy=[cntrycode ASC])[3328]",
              "recordsIn": 2,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "1",
              "recordsOut": 2
            },
            {
              "operator": "NativeSort(orderBy=[cntrycode ASC])[3328]",
              "recordsIn": 5,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 5
            },
            {
              "operator": "NativeSort(orderBy=[cntrycode ASC])[3332]",
              "recordsIn": 7,
              "jobId": "31cd1e22c1da4b5053b598ea03957ed0",
              "attempt": "0",
              "subtask": "0",
              "recordsOut": 7
            }
          ]
        }
      ],
      "resultType": "ROW<`cntrycode` STRING, `numcust` BIGINT NOT NULL, `totacctbal` DECIMAL(38, 2)> NOT NULL",
      "rows": 7,
      "resultSha256": "4264a833449813448998b6554531bcc23bb48102f910a9ef671e8d9a5ca19d06",
      "stockNanos": [
        269764000
      ],
      "nativeNanos": [
        137934167
      ],
      "stockRuntimeMs": [
        154
      ],
      "nativeRuntimeMs": [
        92
      ],
      "status": "passed"
    }
  ],
  "parquet": {
    "writer": "stock Flink filesystem/Parquet, SNAPPY, outside query timing",
    "writerParallelism": 2,
    "sourceCsvManifestSha256": "8ef9155dd6fb02f724631bf013393a68779997db47e979ab9f0e6c461c0a80fa",
    "writerJobIds": [
      "991f03a81b8af6a18c35a1c2230870c7",
      "487db1f3134a37c9c07b92063fc926f0",
      "edb3f524b37b3b43488dda5ad028d531",
      "9bf16c1a9f3caf42e09e2b74dbc86ea1",
      "a88c5fd9648b24b9719e4550ca1aeb48",
      "993a9009141b7bac71acb490ed99d934",
      "985ab7adacb92daabcd82942194b8198",
      "dd6da36dbbe832c0b05d792dbec61dfc"
    ],
    "files": [
      {
        "path": "customer/part-5ac8b5c4-fc5d-4dee-98d5-fc7257d9c2b4-task-0-file-0",
        "sha256": "5b1c05cbbac75e24d46e6c2040386250b32f448e3684bff156c29fed10508b77",
        "bytes": 128180
      },
      {
        "path": "lineitem/part-10152031-02d5-4718-95e3-46e5d9191cfe-task-0-file-0",
        "sha256": "738f69841097e780992f1cb96c55f6c2c9d627aa7bdfebcad6435cb055bbd8ad",
        "bytes": 2110948
      },
      {
        "path": "nation/part-c61e2d29-901e-4195-a58c-9e0edfc7ce19-task-1-file-0",
        "sha256": "a7b0a4ddd2d67b6f2bf432eb1c098eaa52c98346a4fa95309445b9e6e68b4676",
        "bytes": 2793
      },
      {
        "path": "orders/part-639e6589-7c5f-4ed1-a994-f29fdc615658-task-1-file-0",
        "sha256": "ddacbb9d43702c753a5e7ddbf2a3fb727c98b5e03f821ec4463ee88ae68ddd20",
        "bytes": 533055
      },
      {
        "path": "part/part-71447d9f-31df-40fc-b96e-c64688afc898-task-1-file-0",
        "sha256": "ec697a99715a697bf600f4113a6c5f8643f3d9f4ed20322ec903db893ea358cd",
        "bytes": 69693
      },
      {
        "path": "partsupp/part-050324b5-c09e-45d6-9bc1-92fa065444e1-task-0-file-0",
        "sha256": "f8d4f732b3c25cb0dd1143649931ec4055eb63810bdce926b8bc9283c8132416",
        "bytes": 436070
      },
      {
        "path": "region/part-bd354e09-0741-46d9-850e-bdcaab5c10a5-task-1-file-0",
        "sha256": "bdfe0271626a3580480267e985880f60262c62ef678c1eef960b00a7ddc11568",
        "bytes": 1300
      },
      {
        "path": "supplier/part-1b27966d-3822-432e-9287-8361eea167bb-task-1-file-0",
        "sha256": "8bc7c907342a098335a911f831ce7730841409d627b56cc16d047ae15790488a",
        "bytes": 11364
      }
    ]
  },
  "completeWorkload": true,
  "buildIdentity": {
    "sourceCommit": "9d25c8047deba2e0a5145c3e3d07f9de2a64b3cd",
    "cargoCommand": "cargo build -p streamfusion -p streamfusion-parquet --release --features mimalloc --locked",
    "mavenProfile": "bench",
    "features": [
      "default (rocksdb-state in core)",
      "mimalloc in both core and Parquet"
    ],
    "libraries": {
      "libstreamfusion_parquet.dylib": "186f5b960eed4775a9ba79e8497345843e92af2b4cc66e53e1581f6190e855be",
      "libstreamfusion.dylib": "cade94263459a66cc0af91278737f973090a62d0747a85c72138086ed7c1851f"
    }
  }
}
