)]}'
{
  "commit": "699e00ef15686550aaec576987a691b38c7d625f",
  "tree": "3e56fc98bc9d25296914f1fe3c38da44e0f4636f",
  "parents": [
    "5ce35f8993151fe8cd8c4fb7865aee102752bc5b"
  ],
  "author": {
    "name": "Fangchen Li",
    "email": "fangchen.li@outlook.com",
    "time": "Tue Jul 14 00:55:21 2026 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Jul 14 15:55:21 2026 +0800"
  },
  "message": "fix: no panic on empty partition in register_record_batches (#1627)\n\n* fix: no panic on empty partition in register_record_batches\n\n`register_record_batches` read the schema via unchecked `partitions.0[0][0]`,\nwhich panics when a partition contains no record batches (e.g. the batches of\nan empty pyarrow table, whose `to_batches()` returns `[]`).\n\nTake the schema from the first available batch across all partitions and return\na clear error when there is none, mirroring the empty-table handling added for\n`from_arrow_table` in #613. A non-empty later partition now also works instead\nof panicking on an empty leading one.\n\nCo-Authored-By: Claude Opus 4.8 (1M context) \u003cnoreply@anthropic.com\u003e\n\n* refactor: address review feedback\n\n- Use find_map(|p| p.first()) instead of flatten().next() to make the\n  \"first batch in any partition\" intent clearer (per @kosiew).\n- Extend regression test to also assert the empty outer partition list\n  case ([]) raises the same ValueError.\n\nCo-Authored-By: Claude Opus 4.8 (1M context) \u003cnoreply@anthropic.com\u003e\n\n---------\n\nCo-authored-by: Claude Opus 4.8 (1M context) \u003cnoreply@anthropic.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0613a96dcceb82fe21489ceb2a62429353f24395",
      "old_mode": 33188,
      "old_path": "crates/core/src/context.rs",
      "new_id": "6184c7c7486cc40a8bd8463ffa53d142007bffdd",
      "new_mode": 33188,
      "new_path": "crates/core/src/context.rs"
    },
    {
      "type": "modify",
      "old_id": "112a6fd7b78370ebff07890f1ee6bdcc6434e6da",
      "old_mode": 33188,
      "old_path": "python/tests/test_context.py",
      "new_id": "2f068b05d2a11334e294f88e87b4917211bc82d7",
      "new_mode": 33188,
      "new_path": "python/tests/test_context.py"
    }
  ]
}
