)]}'
{
  "commit": "aec68acaa59f79b30364de242118600caddb0d86",
  "tree": "e07074cc690680adccb35678bd0d847fbad2094b",
  "parents": [
    "4c4f8cbb604246fddca272de9beb77c25e01a0ad"
  ],
  "author": {
    "name": "Lalit Maganti",
    "email": "lalitm@google.com",
    "time": "Mon Nov 09 05:53:41 2026 +0000"
  },
  "committer": {
    "name": "Lalit Maganti",
    "email": "lalitm@google.com",
    "time": "Mon Nov 09 10:12:54 2026 +0000"
  },
  "message": "tp: end a run at the batch its source knows is last\n\n**Why**\n\nA SQLite join runs the inner table\u0027s plan once per outer row, and each\nrun usually returns one batch of a row or two. After reading it, the\ncursor still pulled again through the pipeline and the source to learn\nthe run was over, then read the status. That round trip was a large\npart of the executor\u0027s extra cost per lookup next to the interpreter,\nwhich only bumps an index.\n\n**Changes**\n\n- A `RowBatch` can be marked as the last of its run. The dataframe\n  readers mark the batch which reads their last row.\n- `RowCursor` ends the run after a marked batch instead of pulling\n  again.\n- A pipeline whose transforms empty a marked batch ends the run instead\n  of pulling the next one.\n- `Filter` leaves the selection alone when it drops no rows.\n\n**Testing**\n\n- New `SinkTest.LastBatchEndsTheRun` and\n  `SinkTest.EmptiedLastBatchEndsTheRun`.\n- On `_sched_with_thread_state_join` this removes about a third of the\n  extra instructions the executor ran over the interpreter.\n- `perfetto_unittests` and all diff tests pass.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b96b0b72daad59524cd97ed066b871a07dd8a139",
      "old_mode": 33188,
      "old_path": "src/trace_processor/core/exec/dataframe_windows.h",
      "new_id": "49332df9fa30461a0b87b376f34491ea5b3fa932",
      "new_mode": 33188,
      "new_path": "src/trace_processor/core/exec/dataframe_windows.h"
    },
    {
      "type": "modify",
      "old_id": "75b2fad33e2a32cb0abc66d58ae5dcfbf6608fb1",
      "old_mode": 33188,
      "old_path": "src/trace_processor/core/exec/filter.cc",
      "new_id": "f73fbfb40787a161b50b3ccc1ca4c7bb006fc5f4",
      "new_mode": 33188,
      "new_path": "src/trace_processor/core/exec/filter.cc"
    },
    {
      "type": "modify",
      "old_id": "9c88a588a83c74c27517b31a978331b057d3dca7",
      "old_mode": 33188,
      "old_path": "src/trace_processor/core/exec/operator_unittest.cc",
      "new_id": "5f0b3c5ee5c5a65d8fff6504ae1a7676ea226d13",
      "new_mode": 33188,
      "new_path": "src/trace_processor/core/exec/operator_unittest.cc"
    },
    {
      "type": "modify",
      "old_id": "be97fde080ff307385e4e856686d3c12d6b5c07e",
      "old_mode": 33188,
      "old_path": "src/trace_processor/core/exec/pipeline.cc",
      "new_id": "0ce706e539905039e19c63e36ee2dfebaa1c3254",
      "new_mode": 33188,
      "new_path": "src/trace_processor/core/exec/pipeline.cc"
    },
    {
      "type": "modify",
      "old_id": "828e2a0dfe175700fdb02263f7bbb4bb54023d70",
      "old_mode": 33188,
      "old_path": "src/trace_processor/core/exec/pipeline.h",
      "new_id": "ea532bb0ef8fcb0dbcbc740a19c86d3c4d826966",
      "new_mode": 33188,
      "new_path": "src/trace_processor/core/exec/pipeline.h"
    },
    {
      "type": "modify",
      "old_id": "c0c0ce15d0f26e42902a607cc2450fa2bbdecaf1",
      "old_mode": 33188,
      "old_path": "src/trace_processor/core/exec/row_batch.cc",
      "new_id": "c48da42db859a0e34dd04139db8a1e2056355f88",
      "new_mode": 33188,
      "new_path": "src/trace_processor/core/exec/row_batch.cc"
    },
    {
      "type": "modify",
      "old_id": "3a542027f03945864745c57f976ca0c8fa1ee3bc",
      "old_mode": 33188,
      "old_path": "src/trace_processor/core/exec/row_batch.h",
      "new_id": "f0972765654c5b8333f7ca62d3f8908ada2cc349",
      "new_mode": 33188,
      "new_path": "src/trace_processor/core/exec/row_batch.h"
    },
    {
      "type": "modify",
      "old_id": "ff5135c2d66c9a88208fac0f67e4710e547cbdf7",
      "old_mode": 33188,
      "old_path": "src/trace_processor/core/exec/row_cursor.h",
      "new_id": "ac2635aaa5f33993abdcf19d8b052a31dd2bd929",
      "new_mode": 33188,
      "new_path": "src/trace_processor/core/exec/row_cursor.h"
    }
  ]
}
