)]}'
{
  "commit": "8d834059fa15f0ae48589a0071c0bf3109183814",
  "tree": "cce207b32eb0e8710c0ec917d3e00f119906bfff",
  "parents": [
    "48d1494056ec8a52f61c7a50737bdc6363c494b7"
  ],
  "author": {
    "name": "Lalit Maganti",
    "email": "lalitm@google.com",
    "time": "Mon Nov 09 23:18:34 2026 +0000"
  },
  "committer": {
    "name": "Lalit Maganti",
    "email": "lalitm@google.com",
    "time": "Wed Nov 25 09:06:47 2026 +0000"
  },
  "message": "tp: run every dataframe table query on the executor\n\n**Why**\n\nThe dataframe module ran filters on the executor, but sent any query\nwith an ORDER BY, a DISTINCT or a LIMIT, and any query of a table still\nbeing added to, through the interpreter. Keeping both meant two ways to\nrun a query and two cursors in the module. The executor now does all of\nit at least as well over the stdlib.\n\n**Changes**\n\n- `BestIndex()` writes every query as an executor plan string: the\n  filters, then DISTINCT, the sort keys, LIMIT and OFFSET. It still asks\n  `Dataframe::PlanQuery()` for the argument order, which constraints\n  SQLite can omit, and the cost.\n- The plan adds `Distinct`, `OrderBy` and `Limit` nodes for them,\n  through new `AddToPlan()` functions on those operations.\n- A table still being added to gets a plan built for each run, as a\n  plan reads the table as it is when built. A finalized table\u0027s plans\n  are still cached per query string.\n- The module reads a final sort\u0027s rows where they are held.\n- The interpreted cursor, `FilterExec()` and `ColumnInterpreted()` are\n  gone.\n- A cell reader is chosen again when a batch stores a column\n  differently from the batch it was chosen for, as a sort can serve\n  some batches where they are held and copy others.\n\n**Results**\n\nEvery include and every table and view of the stdlib, read in full on\nten test traces, gives the same results as the interpreter and runs 1%\nmore instructions in total.\n\n**Testing**\n\n- New `PerfettoSqlConnectionTest.Dataframe_ReadsATableStillBeingAddedTo`\n  and `PerfettoSqlConnectionTest.Dataframe_ReadsSortedBatchesStoredDifferently`.\n- `perfetto_unittests` and all diff tests pass.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c491452c11599a4e6383405719bbf9741557dcbb",
      "old_mode": 33188,
      "old_path": "src/trace_processor/core/exec/row_cursor.h",
      "new_id": "660b5cc7e0a3c6d14fe0ad2938d3445d116afd00",
      "new_mode": 33188,
      "new_path": "src/trace_processor/core/exec/row_cursor.h"
    },
    {
      "type": "modify",
      "old_id": "be8dce75b4782da0641117647d863b53e667a347",
      "old_mode": 33188,
      "old_path": "src/trace_processor/perfetto_sql/engine/BUILD.gn",
      "new_id": "be180de4ae2a53a4fd576badf78f55e452274eba",
      "new_mode": 33188,
      "new_path": "src/trace_processor/perfetto_sql/engine/BUILD.gn"
    },
    {
      "type": "modify",
      "old_id": "a081366d75481e4819068c53442d65720431b0bf",
      "old_mode": 33188,
      "old_path": "src/trace_processor/perfetto_sql/engine/dataframe_module.cc",
      "new_id": "9a071fd32d8057380c9becab5dafef84a5a6ecdd",
      "new_mode": 33188,
      "new_path": "src/trace_processor/perfetto_sql/engine/dataframe_module.cc"
    },
    {
      "type": "modify",
      "old_id": "0e939c0d606ce869b1daf2a8c8de9f04fb77d91f",
      "old_mode": 33188,
      "old_path": "src/trace_processor/perfetto_sql/engine/dataframe_module.h",
      "new_id": "7e8e2d12e0c72ec577249ef7f6c22934551bacda",
      "new_mode": 33188,
      "new_path": "src/trace_processor/perfetto_sql/engine/dataframe_module.h"
    },
    {
      "type": "modify",
      "old_id": "a070eabbe988496761f7bd0863b9086decdeb9ac",
      "old_mode": 33188,
      "old_path": "src/trace_processor/perfetto_sql/engine/perfetto_sql_connection_unittest.cc",
      "new_id": "0b1ab0195833fdfea50ac17a9c4d20c49f3d763a",
      "new_mode": 33188,
      "new_path": "src/trace_processor/perfetto_sql/engine/perfetto_sql_connection_unittest.cc"
    },
    {
      "type": "modify",
      "old_id": "924b22d5e4ead3d0851be566fe4660cd0014209e",
      "old_mode": 33188,
      "old_path": "src/trace_processor/perfetto_sql/pipeline/operations/distinct.cc",
      "new_id": "5cca9bc2bd7ac2c13e5465c671e2e1841625b85b",
      "new_mode": 33188,
      "new_path": "src/trace_processor/perfetto_sql/pipeline/operations/distinct.cc"
    },
    {
      "type": "modify",
      "old_id": "88d36dec6c11672f23ed12c6eb4f50d47e6fa6d0",
      "old_mode": 33188,
      "old_path": "src/trace_processor/perfetto_sql/pipeline/operations/distinct.h",
      "new_id": "e0a3ea92af99fa3f74af55c2540c5a146c2e672b",
      "new_mode": 33188,
      "new_path": "src/trace_processor/perfetto_sql/pipeline/operations/distinct.h"
    },
    {
      "type": "modify",
      "old_id": "aad2935eec59ab19b1b1052c543ec3cb4b1fe6f6",
      "old_mode": 33188,
      "old_path": "src/trace_processor/perfetto_sql/pipeline/operations/limit.cc",
      "new_id": "724e9c84e7efdc785f0a54cef957d387f321bd66",
      "new_mode": 33188,
      "new_path": "src/trace_processor/perfetto_sql/pipeline/operations/limit.cc"
    },
    {
      "type": "modify",
      "old_id": "82de16140ae86040a2ec4f2167adfac4e848aa87",
      "old_mode": 33188,
      "old_path": "src/trace_processor/perfetto_sql/pipeline/operations/limit.h",
      "new_id": "c051eca38cbd9494e5e7e37a066b54f9cdfcbcd4",
      "new_mode": 33188,
      "new_path": "src/trace_processor/perfetto_sql/pipeline/operations/limit.h"
    }
  ]
}
