)]}'
{
  "commit": "6e104b51376bb988266a4ddc7304b4ef58bce313",
  "tree": "ec3bbb43205dd9ef4d0f3d76f4c99d018bfba6e9",
  "parents": [
    "a95effe005c3a4769bde9dd7b92fa9addddb8521"
  ],
  "author": {
    "name": "minghong",
    "email": "zhouminghong@selectdb.com",
    "time": "Fri Oct 30 17:04:51 2026 +0800"
  },
  "committer": {
    "name": "minghong",
    "email": "zhouminghong@selectdb.com",
    "time": "Fri Oct 30 17:04:51 2026 +0800"
  },
  "message": "[fix](rbo) Compare the definition of the outputs when aligning a materialized view plan\n\n### What problem does this PR solve?\n\nIssue Number: None\n\nRelated PR: #69784 #69787\n\nProblem Summary:\n\nalignPlanOutputWithOrigin passes the output slot to isSameConstant, but a slot is never a constant:\nthe definition of the column is. The \"both plans define the output as the same constant\" branch was\ntherefore never taken, and the alignment relied on the name and type of the column only.\n\nLook up the definition of the rewritten output and compare the two definitions, and prefer the\ndefinition which materializes the value when collecting them, so a constant output materialized with\nanother exprId is recognised as the same constant.\n\n### Release note\n\nNone\n\n### Check List (For Author)\n\n- Test: Regression test (the mv suites) / Manual test (the reported queries with fe_debug)\n- Behavior changed: No\n- Does this need documentation: No\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0fec5373c55bd59fb0b69731a71e209e3c7c6845",
      "old_mode": 33188,
      "old_path": "fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/MaterializedViewUtils.java",
      "new_id": "ce8f75fc787c0f8dd65c6371555a5134ba393e54",
      "new_mode": 33188,
      "new_path": "fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/MaterializedViewUtils.java"
    }
  ]
}
