{
  "schemaVersion": 1,
  "engine": "DuckDB 1.4.4",
  "oracle": "Polars 1.44.1 / PyArrow 25.0.1",
  "recordedAt": "2026-09-12T17:10:41.932640+00:00",
  "platform": {
    "system": "Darwin",
    "architecture": "arm64"
  },
  "configuration": {
    "threads": 1,
    "preserveInsertionOrder": false,
    "maxTempDirectorySize": "1GB",
    "freshConnectionPerRun": true
  },
  "normalization": "Only the temporary workspace path is replaced. Timings and native metrics are retained. Result digests are canonical uncompressed Arrow IPC streams with int64 columns and batches of 65536 rows.",
  "fixtures": {
    "events": {
      "rows": 1000000,
      "sql": "SELECT i AS id, i % 500000 AS key, (i * 104729) % 1000000 AS score, repeat(md5(i::VARCHAR), 2) AS payload FROM range(1000000) t(i)",
      "parquetBytes": 50319922,
      "parquetSha256": "10ed782b8fced6891ce674a4f826b6caf345b4e5c851ea5b7b2a09c3adad9604"
    },
    "lookup": {
      "rows": 500000,
      "sql": "SELECT i AS key, i * 3 AS amount, repeat(md5(i::VARCHAR), 2) AS payload FROM range(500000) t(i)",
      "parquetBytes": 22663755,
      "parquetSha256": "4eab6c07075e5a141fa5745aea5bd8c25a72357cce4b48b646646cdeb08c5d1d"
    }
  },
  "oracleResults": {
    "aggregate-wide": {
      "rows": 500000,
      "columns": [
        "key",
        "total",
        "n"
      ],
      "sha256": "ca7c525c513a26670afd0845708f3e2956b5012fc4eb61e07f55120dc9bd30f3",
      "first": [
        {
          "key": 0,
          "total": 500000,
          "n": 2
        },
        {
          "key": 1,
          "total": 500002,
          "n": 2
        },
        {
          "key": 2,
          "total": 500004,
          "n": 2
        },
        {
          "key": 3,
          "total": 500006,
          "n": 2
        },
        {
          "key": 4,
          "total": 500008,
          "n": 2
        },
        {
          "key": 5,
          "total": 500010,
          "n": 2
        },
        {
          "key": 6,
          "total": 500012,
          "n": 2
        },
        {
          "key": 7,
          "total": 500014,
          "n": 2
        }
      ],
      "last": [
        {
          "key": 499992,
          "total": 1499984,
          "n": 2
        },
        {
          "key": 499993,
          "total": 1499986,
          "n": 2
        },
        {
          "key": 499994,
          "total": 1499988,
          "n": 2
        },
        {
          "key": 499995,
          "total": 1499990,
          "n": 2
        },
        {
          "key": 499996,
          "total": 1499992,
          "n": 2
        },
        {
          "key": 499997,
          "total": 1499994,
          "n": 2
        },
        {
          "key": 499998,
          "total": 1499996,
          "n": 2
        },
        {
          "key": 499999,
          "total": 1499998,
          "n": 2
        }
      ]
    },
    "aggregate-coarse": {
      "rows": 4096,
      "columns": [
        "bucket",
        "total",
        "n"
      ],
      "sha256": "e7b52d37fa6cef35712896f0c03e2e3e38965012400d34ad489cad02345766b3",
      "first": [
        {
          "bucket": 0,
          "total": 122964576,
          "n": 246
        },
        {
          "bucket": 1,
          "total": 122964822,
          "n": 246
        },
        {
          "bucket": 2,
          "total": 122965068,
          "n": 246
        },
        {
          "bucket": 3,
          "total": 122965314,
          "n": 246
        },
        {
          "bucket": 4,
          "total": 122965560,
          "n": 246
        },
        {
          "bucket": 5,
          "total": 122965806,
          "n": 246
        },
        {
          "bucket": 6,
          "total": 122966052,
          "n": 246
        },
        {
          "bucket": 7,
          "total": 122966298,
          "n": 246
        }
      ],
      "last": [
        {
          "bucket": 4088,
          "total": 122462624,
          "n": 244
        },
        {
          "bucket": 4089,
          "total": 122462868,
          "n": 244
        },
        {
          "bucket": 4090,
          "total": 122463112,
          "n": 244
        },
        {
          "bucket": 4091,
          "total": 122463356,
          "n": 244
        },
        {
          "bucket": 4092,
          "total": 122463600,
          "n": 244
        },
        {
          "bucket": 4093,
          "total": 122463844,
          "n": 244
        },
        {
          "bucket": 4094,
          "total": 122464088,
          "n": 244
        },
        {
          "bucket": 4095,
          "total": 122464332,
          "n": 244
        }
      ]
    },
    "join": {
      "rows": 1,
      "columns": [
        "checksum",
        "n"
      ],
      "sha256": "5880d049dc5289f1b20cd60ae7197f0c4be6f829098fef406d0675c06735644c",
      "first": [
        {
          "checksum": 128000000,
          "n": 1000000
        }
      ],
      "last": [
        {
          "checksum": 128000000,
          "n": 1000000
        }
      ]
    },
    "sort": {
      "rows": 1000000,
      "columns": [
        "id"
      ],
      "sha256": "fafa1331f2fe3437c994c667494b36e7464fdc57f612804df25fd253fb1ae202",
      "first": [
        {
          "id": 848775
        },
        {
          "id": 752491
        },
        {
          "id": 738639
        },
        {
          "id": 5329
        },
        {
          "id": 79042
        },
        {
          "id": 241361
        },
        {
          "id": 552871
        },
        {
          "id": 646434
        }
      ],
      "last": [
        {
          "id": 789215
        },
        {
          "id": 986128
        },
        {
          "id": 616604
        },
        {
          "id": 233443
        },
        {
          "id": 373470
        },
        {
          "id": 95102
        },
        {
          "id": 803622
        },
        {
          "id": 40691
        }
      ]
    },
    "top-k": {
      "rows": 10,
      "columns": [
        "id"
      ],
      "sha256": "c1196b1878223b1b92d24ae9c5f8537e3c42602d4a3699dc6115a3901291b063",
      "first": [
        {
          "id": 848775
        },
        {
          "id": 752491
        },
        {
          "id": 738639
        },
        {
          "id": 5329
        },
        {
          "id": 79042
        },
        {
          "id": 241361
        },
        {
          "id": 552871
        },
        {
          "id": 646434
        }
      ],
      "last": [
        {
          "id": 738639
        },
        {
          "id": 5329
        },
        {
          "id": 79042
        },
        {
          "id": 241361
        },
        {
          "id": 552871
        },
        {
          "id": 646434
        },
        {
          "id": 414859
        },
        {
          "id": 194813
        }
      ]
    }
  },
  "runs": [
    {
      "id": "aggregate-wide-48MB",
      "query": "aggregate-wide",
      "memoryLimit": "48MB",
      "sql": "SELECT key, sum(id)::BIGINT AS total, count(*)::BIGINT AS n FROM events GROUP BY key ORDER BY key",
      "outcome": "out-of-memory",
      "error": "Out of Memory Error: could not allocate block of size 256.0 KiB (45.5 MiB/45.7 MiB used)\n\nPossible solutions:\n* Reducing the number of threads (SET threads=X)\n* Disabling insertion-order preservation (SET preserve_insertion_order=false)\n* Increasing the memory limit (SET memory_limit='...GB')\n\nSee also https://duckdb.org/docs/stable/guides/performance/how_to_tune_workloads"
    },
    {
      "id": "aggregate-wide-256MB",
      "query": "aggregate-wide",
      "memoryLimit": "256MB",
      "sql": "SELECT key, sum(id)::BIGINT AS total, count(*)::BIGINT AS n FROM events GROUP BY key ORDER BY key",
      "outcome": "ok",
      "result": {
        "rows": 500000,
        "columns": [
          "key",
          "total",
          "n"
        ],
        "sha256": "ca7c525c513a26670afd0845708f3e2956b5012fc4eb61e07f55120dc9bd30f3",
        "first": [
          {
            "key": 0,
            "total": 500000,
            "n": 2
          },
          {
            "key": 1,
            "total": 500002,
            "n": 2
          },
          {
            "key": 2,
            "total": 500004,
            "n": 2
          },
          {
            "key": 3,
            "total": 500006,
            "n": 2
          },
          {
            "key": 4,
            "total": 500008,
            "n": 2
          },
          {
            "key": 5,
            "total": 500010,
            "n": 2
          },
          {
            "key": 6,
            "total": 500012,
            "n": 2
          },
          {
            "key": 7,
            "total": 500014,
            "n": 2
          }
        ],
        "last": [
          {
            "key": 499992,
            "total": 1499984,
            "n": 2
          },
          {
            "key": 499993,
            "total": 1499986,
            "n": 2
          },
          {
            "key": 499994,
            "total": 1499988,
            "n": 2
          },
          {
            "key": 499995,
            "total": 1499990,
            "n": 2
          },
          {
            "key": 499996,
            "total": 1499992,
            "n": 2
          },
          {
            "key": 499997,
            "total": 1499994,
            "n": 2
          },
          {
            "key": 499998,
            "total": 1499996,
            "n": 2
          },
          {
            "key": 499999,
            "total": 1499998,
            "n": 2
          }
        ]
      },
      "metrics": {
        "peakBufferBytes": 29687808,
        "peakTempBytes": 0,
        "rowsReturned": 500000,
        "cumulativeRowsScanned": 1000000,
        "latencySeconds": 0.042651875,
        "cpuSeconds": 0.037702839999999974
      },
      "operators": [
        {
          "path": "0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 500000,
          "scannedRows": 0,
          "seconds": 0.00011495000000000015,
          "extra": {
            "Projections": [
              "__internal_decompress_integral_bigint(#0, 0)",
              "#1",
              "#2"
            ],
            "Estimated Cardinality": "535387"
          }
        },
        {
          "path": "0.0.0",
          "name": "ORDER_BY",
          "type": "ORDER_BY",
          "outputRows": 500000,
          "scannedRows": 0,
          "seconds": 0.005467782999999999,
          "extra": {
            "Order By": "\"input\".main.events.\"key\" ASC"
          }
        },
        {
          "path": "0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 500000,
          "scannedRows": 0,
          "seconds": 0.00011299000000000015,
          "extra": {
            "Projections": [
              "__internal_compress_integral_uinteger(#0, 0)",
              "#1",
              "#2"
            ],
            "Estimated Cardinality": "535387"
          }
        },
        {
          "path": "0.0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 500000,
          "scannedRows": 0,
          "seconds": 0.000713912,
          "extra": {
            "Projections": [
              "key",
              "total",
              "n"
            ],
            "Estimated Cardinality": "535387"
          }
        },
        {
          "path": "0.0.0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 500000,
          "scannedRows": 0,
          "seconds": 0.00013362199999999964,
          "extra": {
            "Projections": [
              "__internal_decompress_integral_bigint(#0, 0)",
              "#1",
              "#2"
            ],
            "Estimated Cardinality": "535387"
          }
        },
        {
          "path": "0.0.0.0.0.0.0",
          "name": "HASH_GROUP_BY",
          "type": "HASH_GROUP_BY",
          "outputRows": 500000,
          "scannedRows": 0,
          "seconds": 0.029007619999999974,
          "extra": {
            "Groups": "#0",
            "Aggregates": [
              "sum_no_overflow(#1)",
              "count_star()"
            ],
            "Estimated Cardinality": "535387"
          }
        },
        {
          "path": "0.0.0.0.0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 3.0129999999999988e-05,
          "extra": {
            "Projections": [
              "key",
              "id"
            ],
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0.0.0.0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.0003717550000000024,
          "extra": {
            "Projections": [
              "__internal_compress_integral_uinteger(#0, 0)",
              "#1"
            ],
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0.0.0.0.0.0.0.0",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 1000000,
          "scannedRows": 1000000,
          "seconds": 0.0017500780000000013,
          "extra": {
            "Table": "events",
            "Type": "Sequential Scan",
            "Projections": [
              "key",
              "id"
            ],
            "Estimated Cardinality": "1000000"
          }
        }
      ],
      "profile": "aggregate-wide-256MB.json"
    },
    {
      "id": "aggregate-coarse-48MB",
      "query": "aggregate-coarse",
      "memoryLimit": "48MB",
      "sql": "SELECT key % 4096 AS bucket, sum(id)::BIGINT AS total, count(*)::BIGINT AS n FROM events GROUP BY bucket ORDER BY bucket",
      "outcome": "ok",
      "result": {
        "rows": 4096,
        "columns": [
          "bucket",
          "total",
          "n"
        ],
        "sha256": "e7b52d37fa6cef35712896f0c03e2e3e38965012400d34ad489cad02345766b3",
        "first": [
          {
            "bucket": 0,
            "total": 122964576,
            "n": 246
          },
          {
            "bucket": 1,
            "total": 122964822,
            "n": 246
          },
          {
            "bucket": 2,
            "total": 122965068,
            "n": 246
          },
          {
            "bucket": 3,
            "total": 122965314,
            "n": 246
          },
          {
            "bucket": 4,
            "total": 122965560,
            "n": 246
          },
          {
            "bucket": 5,
            "total": 122965806,
            "n": 246
          },
          {
            "bucket": 6,
            "total": 122966052,
            "n": 246
          },
          {
            "bucket": 7,
            "total": 122966298,
            "n": 246
          }
        ],
        "last": [
          {
            "bucket": 4088,
            "total": 122462624,
            "n": 244
          },
          {
            "bucket": 4089,
            "total": 122462868,
            "n": 244
          },
          {
            "bucket": 4090,
            "total": 122463112,
            "n": 244
          },
          {
            "bucket": 4091,
            "total": 122463356,
            "n": 244
          },
          {
            "bucket": 4092,
            "total": 122463600,
            "n": 244
          },
          {
            "bucket": 4093,
            "total": 122463844,
            "n": 244
          },
          {
            "bucket": 4094,
            "total": 122464088,
            "n": 244
          },
          {
            "bucket": 4095,
            "total": 122464332,
            "n": 244
          }
        ]
      },
      "metrics": {
        "peakBufferBytes": 3473408,
        "peakTempBytes": 0,
        "rowsReturned": 4096,
        "cumulativeRowsScanned": 1000000,
        "latencySeconds": 0.012991166,
        "cpuSeconds": 0.012302978999999973
      },
      "operators": [
        {
          "path": "0.0",
          "name": "ORDER_BY",
          "type": "ORDER_BY",
          "outputRows": 4096,
          "scannedRows": 0,
          "seconds": 0.000126751,
          "extra": {
            "Order By": "(\"input\".main.events.\"key\" % 4096) ASC"
          }
        },
        {
          "path": "0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 4096,
          "scannedRows": 0,
          "seconds": 6.459e-06,
          "extra": {
            "Projections": [
              "0",
              "total",
              "n"
            ],
            "Estimated Cardinality": "500000"
          }
        },
        {
          "path": "0.0.0.0",
          "name": "HASH_GROUP_BY",
          "type": "HASH_GROUP_BY",
          "outputRows": 4096,
          "scannedRows": 0,
          "seconds": 0.008886674999999986,
          "extra": {
            "Groups": "#0",
            "Aggregates": [
              "sum_no_overflow(#1)",
              "count_star()"
            ],
            "Estimated Cardinality": "500000"
          }
        },
        {
          "path": "0.0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.0015952619999999955,
          "extra": {
            "Projections": [
              "bucket",
              "id"
            ],
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0.0.0.0",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 1000000,
          "scannedRows": 1000000,
          "seconds": 0.001687831999999991,
          "extra": {
            "Table": "events",
            "Type": "Sequential Scan",
            "Projections": [
              "key",
              "id"
            ],
            "Estimated Cardinality": "1000000"
          }
        }
      ],
      "profile": "aggregate-coarse-48MB.json"
    },
    {
      "id": "aggregate-coarse-256MB",
      "query": "aggregate-coarse",
      "memoryLimit": "256MB",
      "sql": "SELECT key % 4096 AS bucket, sum(id)::BIGINT AS total, count(*)::BIGINT AS n FROM events GROUP BY bucket ORDER BY bucket",
      "outcome": "ok",
      "result": {
        "rows": 4096,
        "columns": [
          "bucket",
          "total",
          "n"
        ],
        "sha256": "e7b52d37fa6cef35712896f0c03e2e3e38965012400d34ad489cad02345766b3",
        "first": [
          {
            "bucket": 0,
            "total": 122964576,
            "n": 246
          },
          {
            "bucket": 1,
            "total": 122964822,
            "n": 246
          },
          {
            "bucket": 2,
            "total": 122965068,
            "n": 246
          },
          {
            "bucket": 3,
            "total": 122965314,
            "n": 246
          },
          {
            "bucket": 4,
            "total": 122965560,
            "n": 246
          },
          {
            "bucket": 5,
            "total": 122965806,
            "n": 246
          },
          {
            "bucket": 6,
            "total": 122966052,
            "n": 246
          },
          {
            "bucket": 7,
            "total": 122966298,
            "n": 246
          }
        ],
        "last": [
          {
            "bucket": 4088,
            "total": 122462624,
            "n": 244
          },
          {
            "bucket": 4089,
            "total": 122462868,
            "n": 244
          },
          {
            "bucket": 4090,
            "total": 122463112,
            "n": 244
          },
          {
            "bucket": 4091,
            "total": 122463356,
            "n": 244
          },
          {
            "bucket": 4092,
            "total": 122463600,
            "n": 244
          },
          {
            "bucket": 4093,
            "total": 122463844,
            "n": 244
          },
          {
            "bucket": 4094,
            "total": 122464088,
            "n": 244
          },
          {
            "bucket": 4095,
            "total": 122464332,
            "n": 244
          }
        ]
      },
      "metrics": {
        "peakBufferBytes": 3473408,
        "peakTempBytes": 0,
        "rowsReturned": 4096,
        "cumulativeRowsScanned": 1000000,
        "latencySeconds": 0.012255083,
        "cpuSeconds": 0.011514829999999995
      },
      "operators": [
        {
          "path": "0.0",
          "name": "ORDER_BY",
          "type": "ORDER_BY",
          "outputRows": 4096,
          "scannedRows": 0,
          "seconds": 0.00010395700000000001,
          "extra": {
            "Order By": "(\"input\".main.events.\"key\" % 4096) ASC"
          }
        },
        {
          "path": "0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 4096,
          "scannedRows": 0,
          "seconds": 7.458e-06,
          "extra": {
            "Projections": [
              "0",
              "total",
              "n"
            ],
            "Estimated Cardinality": "500000"
          }
        },
        {
          "path": "0.0.0.0",
          "name": "HASH_GROUP_BY",
          "type": "HASH_GROUP_BY",
          "outputRows": 4096,
          "scannedRows": 0,
          "seconds": 0.008558498,
          "extra": {
            "Groups": "#0",
            "Aggregates": [
              "sum_no_overflow(#1)",
              "count_star()"
            ],
            "Estimated Cardinality": "500000"
          }
        },
        {
          "path": "0.0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.0015208739999999998,
          "extra": {
            "Projections": [
              "bucket",
              "id"
            ],
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0.0.0.0",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 1000000,
          "scannedRows": 1000000,
          "seconds": 0.0013240429999999957,
          "extra": {
            "Table": "events",
            "Type": "Sequential Scan",
            "Projections": [
              "key",
              "id"
            ],
            "Estimated Cardinality": "1000000"
          }
        }
      ],
      "profile": "aggregate-coarse-256MB.json"
    },
    {
      "id": "join-48MB",
      "query": "join",
      "memoryLimit": "48MB",
      "sql": "SELECT sum(length(e.payload || d.payload))::BIGINT AS checksum, count(*)::BIGINT AS n FROM events e JOIN lookup d USING (key)",
      "outcome": "ok",
      "result": {
        "rows": 1,
        "columns": [
          "checksum",
          "n"
        ],
        "sha256": "5880d049dc5289f1b20cd60ae7197f0c4be6f829098fef406d0675c06735644c",
        "first": [
          {
            "checksum": 128000000,
            "n": 1000000
          }
        ],
        "last": [
          {
            "checksum": 128000000,
            "n": 1000000
          }
        ]
      },
      "metrics": {
        "peakBufferBytes": 47996928,
        "peakTempBytes": 85393408,
        "rowsReturned": 1,
        "cumulativeRowsScanned": 1500000,
        "latencySeconds": 0.308820625,
        "cpuSeconds": 0.30392339599999996
      },
      "operators": [
        {
          "path": "0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1,
          "scannedRows": 0,
          "seconds": 9.17e-07,
          "extra": {
            "Projections": [
              "checksum",
              "n"
            ],
            "Estimated Cardinality": "1"
          }
        },
        {
          "path": "0.0.0",
          "name": "UNGROUPED_AGGREGATE",
          "type": "UNGROUPED_AGGREGATE",
          "outputRows": 1,
          "scannedRows": 0,
          "seconds": 0.001185041000000004,
          "extra": {
            "Aggregates": [
              "sum(#0)",
              "count_star()"
            ]
          }
        },
        {
          "path": "0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.04020861299999997,
          "extra": {
            "Projections": "length((payload || payload))",
            "Estimated Cardinality": "706646"
          }
        },
        {
          "path": "0.0.0.0.0",
          "name": "HASH_JOIN",
          "type": "HASH_JOIN",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.19439112000000003,
          "extra": {
            "Join Type": "INNER",
            "Conditions": "key = key",
            "Estimated Cardinality": "706646"
          }
        },
        {
          "path": "0.0.0.0.0.0",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 1000000,
          "scannedRows": 1000000,
          "seconds": 0.04580416199999997,
          "extra": {
            "Table": "events",
            "Type": "Sequential Scan",
            "Projections": [
              "key",
              "payload"
            ],
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0.0.0.1",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 500000,
          "scannedRows": 500000,
          "seconds": 0.022333542999999994,
          "extra": {
            "Table": "lookup",
            "Type": "Sequential Scan",
            "Projections": [
              "key",
              "payload"
            ],
            "Estimated Cardinality": "500000"
          }
        }
      ],
      "profile": "join-48MB.json"
    },
    {
      "id": "join-256MB",
      "query": "join",
      "memoryLimit": "256MB",
      "sql": "SELECT sum(length(e.payload || d.payload))::BIGINT AS checksum, count(*)::BIGINT AS n FROM events e JOIN lookup d USING (key)",
      "outcome": "ok",
      "result": {
        "rows": 1,
        "columns": [
          "checksum",
          "n"
        ],
        "sha256": "5880d049dc5289f1b20cd60ae7197f0c4be6f829098fef406d0675c06735644c",
        "first": [
          {
            "checksum": 128000000,
            "n": 1000000
          }
        ],
        "last": [
          {
            "checksum": 128000000,
            "n": 1000000
          }
        ]
      },
      "metrics": {
        "peakBufferBytes": 107905024,
        "peakTempBytes": 0,
        "rowsReturned": 1,
        "cumulativeRowsScanned": 1500000,
        "latencySeconds": 0.117202875,
        "cpuSeconds": 0.111501242
      },
      "operators": [
        {
          "path": "0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1,
          "scannedRows": 0,
          "seconds": 6.25e-07,
          "extra": {
            "Projections": [
              "checksum",
              "n"
            ],
            "Estimated Cardinality": "1"
          }
        },
        {
          "path": "0.0.0",
          "name": "UNGROUPED_AGGREGATE",
          "type": "UNGROUPED_AGGREGATE",
          "outputRows": 1,
          "scannedRows": 0,
          "seconds": 0.0010566350000000041,
          "extra": {
            "Aggregates": [
              "sum(#0)",
              "count_star()"
            ]
          }
        },
        {
          "path": "0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.04326542899999999,
          "extra": {
            "Projections": "length((payload || payload))",
            "Estimated Cardinality": "706646"
          }
        },
        {
          "path": "0.0.0.0.0",
          "name": "HASH_JOIN",
          "type": "HASH_JOIN",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.011957650000000007,
          "extra": {
            "Join Type": "INNER",
            "Conditions": "key = key",
            "Estimated Cardinality": "706646"
          }
        },
        {
          "path": "0.0.0.0.0.0",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 1000000,
          "scannedRows": 1000000,
          "seconds": 0.03729082,
          "extra": {
            "Table": "events",
            "Type": "Sequential Scan",
            "Projections": [
              "key",
              "payload"
            ],
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0.0.0.1",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 500000,
          "scannedRows": 500000,
          "seconds": 0.017930083000000003,
          "extra": {
            "Table": "lookup",
            "Type": "Sequential Scan",
            "Projections": [
              "key",
              "payload"
            ],
            "Estimated Cardinality": "500000"
          }
        }
      ],
      "profile": "join-256MB.json"
    },
    {
      "id": "sort-48MB",
      "query": "sort",
      "memoryLimit": "48MB",
      "sql": "SELECT id FROM events ORDER BY payload, id",
      "outcome": "ok",
      "result": {
        "rows": 1000000,
        "columns": [
          "id"
        ],
        "sha256": "fafa1331f2fe3437c994c667494b36e7464fdc57f612804df25fd253fb1ae202",
        "first": [
          {
            "id": 848775
          },
          {
            "id": 752491
          },
          {
            "id": 738639
          },
          {
            "id": 5329
          },
          {
            "id": 79042
          },
          {
            "id": 241361
          },
          {
            "id": 552871
          },
          {
            "id": 646434
          }
        ],
        "last": [
          {
            "id": 789215
          },
          {
            "id": 986128
          },
          {
            "id": 616604
          },
          {
            "id": 233443
          },
          {
            "id": 373470
          },
          {
            "id": 95102
          },
          {
            "id": 803622
          },
          {
            "id": 40691
          }
        ]
      },
      "metrics": {
        "peakBufferBytes": 47824896,
        "peakTempBytes": 69500928,
        "rowsReturned": 1000000,
        "cumulativeRowsScanned": 1000000,
        "latencySeconds": 0.350233833,
        "cpuSeconds": 0.3163886540000003
      },
      "operators": [
        {
          "path": "0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.00030953700000000117,
          "extra": {
            "Projections": "__internal_decompress_integral_bigint(#0, 0)",
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0",
          "name": "ORDER_BY",
          "type": "ORDER_BY",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.28211923800000027,
          "extra": {
            "Order By": [
              "#1 ASC",
              "\"input\".main.events.id ASC"
            ]
          }
        },
        {
          "path": "0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.00035345500000000214,
          "extra": {
            "Projections": [
              "__internal_compress_integral_uinteger(#0, 0)",
              "#1"
            ],
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0.0.0",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 1000000,
          "scannedRows": 1000000,
          "seconds": 0.033606424,
          "extra": {
            "Table": "events",
            "Type": "Sequential Scan",
            "Projections": [
              "id",
              "payload"
            ],
            "Estimated Cardinality": "1000000"
          }
        }
      ],
      "profile": "sort-48MB.json"
    },
    {
      "id": "sort-256MB",
      "query": "sort",
      "memoryLimit": "256MB",
      "sql": "SELECT id FROM events ORDER BY payload, id",
      "outcome": "ok",
      "result": {
        "rows": 1000000,
        "columns": [
          "id"
        ],
        "sha256": "fafa1331f2fe3437c994c667494b36e7464fdc57f612804df25fd253fb1ae202",
        "first": [
          {
            "id": 848775
          },
          {
            "id": 752491
          },
          {
            "id": 738639
          },
          {
            "id": 5329
          },
          {
            "id": 79042
          },
          {
            "id": 241361
          },
          {
            "id": 552871
          },
          {
            "id": 646434
          }
        ],
        "last": [
          {
            "id": 789215
          },
          {
            "id": 986128
          },
          {
            "id": 616604
          },
          {
            "id": 233443
          },
          {
            "id": 373470
          },
          {
            "id": 95102
          },
          {
            "id": 803622
          },
          {
            "id": 40691
          }
        ]
      },
      "metrics": {
        "peakBufferBytes": 138821632,
        "peakTempBytes": 0,
        "rowsReturned": 1000000,
        "cumulativeRowsScanned": 1000000,
        "latencySeconds": 0.183466541,
        "cpuSeconds": 0.126584823
      },
      "operators": [
        {
          "path": "0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.0003075460000000012,
          "extra": {
            "Projections": "__internal_decompress_integral_bigint(#0, 0)",
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0",
          "name": "ORDER_BY",
          "type": "ORDER_BY",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.092476414,
          "extra": {
            "Order By": [
              "#1 ASC",
              "\"input\".main.events.id ASC"
            ]
          }
        },
        {
          "path": "0.0.0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 1000000,
          "scannedRows": 0,
          "seconds": 0.0003207750000000007,
          "extra": {
            "Projections": [
              "__internal_compress_integral_uinteger(#0, 0)",
              "#1"
            ],
            "Estimated Cardinality": "1000000"
          }
        },
        {
          "path": "0.0.0.0.0",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 1000000,
          "scannedRows": 1000000,
          "seconds": 0.033480088,
          "extra": {
            "Table": "events",
            "Type": "Sequential Scan",
            "Projections": [
              "id",
              "payload"
            ],
            "Estimated Cardinality": "1000000"
          }
        }
      ],
      "profile": "sort-256MB.json"
    },
    {
      "id": "top-k-48MB",
      "query": "top-k",
      "memoryLimit": "48MB",
      "sql": "SELECT id FROM events ORDER BY payload, id LIMIT 10",
      "outcome": "ok",
      "result": {
        "rows": 10,
        "columns": [
          "id"
        ],
        "sha256": "c1196b1878223b1b92d24ae9c5f8537e3c42602d4a3699dc6115a3901291b063",
        "first": [
          {
            "id": 848775
          },
          {
            "id": 752491
          },
          {
            "id": 738639
          },
          {
            "id": 5329
          },
          {
            "id": 79042
          },
          {
            "id": 241361
          },
          {
            "id": 552871
          },
          {
            "id": 646434
          }
        ],
        "last": [
          {
            "id": 738639
          },
          {
            "id": 5329
          },
          {
            "id": 79042
          },
          {
            "id": 241361
          },
          {
            "id": 552871
          },
          {
            "id": 646434
          },
          {
            "id": 414859
          },
          {
            "id": 194813
          }
        ]
      },
      "metrics": {
        "peakBufferBytes": 32055296,
        "peakTempBytes": 0,
        "rowsReturned": 10,
        "cumulativeRowsScanned": 1000000,
        "latencySeconds": 0.033321333,
        "cpuSeconds": 0.032797523999999995
      },
      "operators": [
        {
          "path": "0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 10,
          "scannedRows": 0,
          "seconds": 1.67e-07,
          "extra": {
            "Projections": "#0",
            "Estimated Cardinality": "10"
          }
        },
        {
          "path": "0.0.0",
          "name": "TOP_N",
          "type": "TOP_N",
          "outputRows": 10,
          "scannedRows": 0,
          "seconds": 0.0025505689999999926,
          "extra": {
            "Top": "10",
            "Order By": [
              "#1 ASC",
              "\"input\".main.events.id ASC"
            ]
          }
        },
        {
          "path": "0.0.0.0",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 860160,
          "scannedRows": 1000000,
          "seconds": 0.030246787999999997,
          "extra": {
            "Table": "events",
            "Type": "Sequential Scan",
            "Projections": [
              "id",
              "payload"
            ],
            "Filters": "optional: Dynamic Filter (payload)",
            "Estimated Cardinality": "1000000"
          }
        }
      ],
      "profile": "top-k-48MB.json"
    },
    {
      "id": "top-k-256MB",
      "query": "top-k",
      "memoryLimit": "256MB",
      "sql": "SELECT id FROM events ORDER BY payload, id LIMIT 10",
      "outcome": "ok",
      "result": {
        "rows": 10,
        "columns": [
          "id"
        ],
        "sha256": "c1196b1878223b1b92d24ae9c5f8537e3c42602d4a3699dc6115a3901291b063",
        "first": [
          {
            "id": 848775
          },
          {
            "id": 752491
          },
          {
            "id": 738639
          },
          {
            "id": 5329
          },
          {
            "id": 79042
          },
          {
            "id": 241361
          },
          {
            "id": 552871
          },
          {
            "id": 646434
          }
        ],
        "last": [
          {
            "id": 738639
          },
          {
            "id": 5329
          },
          {
            "id": 79042
          },
          {
            "id": 241361
          },
          {
            "id": 552871
          },
          {
            "id": 646434
          },
          {
            "id": 414859
          },
          {
            "id": 194813
          }
        ]
      },
      "metrics": {
        "peakBufferBytes": 32055296,
        "peakTempBytes": 0,
        "rowsReturned": 10,
        "cumulativeRowsScanned": 1000000,
        "latencySeconds": 0.031361792,
        "cpuSeconds": 0.030870851000000008
      },
      "operators": [
        {
          "path": "0.0",
          "name": "PROJECTION",
          "type": "PROJECTION",
          "outputRows": 10,
          "scannedRows": 0,
          "seconds": 1.66e-07,
          "extra": {
            "Projections": "#0",
            "Estimated Cardinality": "10"
          }
        },
        {
          "path": "0.0.0",
          "name": "TOP_N",
          "type": "TOP_N",
          "outputRows": 10,
          "scannedRows": 0,
          "seconds": 0.0023647750000000017,
          "extra": {
            "Top": "10",
            "Order By": [
              "#1 ASC",
              "\"input\".main.events.id ASC"
            ]
          }
        },
        {
          "path": "0.0.0.0",
          "name": "SEQ_SCAN ",
          "type": "TABLE_SCAN",
          "outputRows": 860160,
          "scannedRows": 1000000,
          "seconds": 0.028505910000000006,
          "extra": {
            "Table": "events",
            "Type": "Sequential Scan",
            "Projections": [
              "id",
              "payload"
            ],
            "Filters": "optional: Dynamic Filter (payload)",
            "Estimated Cardinality": "1000000"
          }
        }
      ],
      "profile": "top-k-256MB.json"
    }
  ],
  "artifacts": {
    "aggregate-wide-256MB.json": {
      "bytes": 9386,
      "sha256": "b10b633c96edf032ab51189ce869e753e1536f0f6c8d587c43ba175c29f8d69b"
    },
    "aggregate-coarse-48MB.json": {
      "bytes": 4461,
      "sha256": "33a42c228672f3f43c50ecc225e2f12d462343ff678bd9a5c04a124e77a57ae9"
    },
    "aggregate-coarse-256MB.json": {
      "bytes": 4465,
      "sha256": "c2060d584596db3d46d0d1fe56514092ce93dbe5ba22343b4f51220815f48a8a"
    },
    "join-48MB.json": {
      "bytes": 5357,
      "sha256": "86418a8762f553bcc150626f023250858cbccc0038a0fa592d45a85150629a13"
    },
    "join-256MB.json": {
      "bytes": 5311,
      "sha256": "6436f21e6adecca78a16ab97055500302eca2b8567cbe1e1f58be9d2374a53fb"
    },
    "sort-48MB.json": {
      "bytes": 3445,
      "sha256": "db789a284f56cc8fd93d70676eb6b701c31cbd25dfa2e36b56aabece2c1f3b5a"
    },
    "sort-256MB.json": {
      "bytes": 3407,
      "sha256": "95e70211b1a321c737216346ad5889f811d0cc3db8fe8860a3fb61ac7d268c32"
    },
    "top-k-48MB.json": {
      "bytes": 2555,
      "sha256": "c5ead8ec897ec48b192f045a3320be990bcfb9a8e72ae29493b380be9ad7d174"
    },
    "top-k-256MB.json": {
      "bytes": 2555,
      "sha256": "0e8bb2824307c9a4aa28b50778170d6546907ec441618ea2acc2cc23ccef3413"
    }
  }
}
