)]}'
{
  "commit": "bfa14f4ffa879c83acfab2f1d480d9ed474baf7d",
  "tree": "3e1a6711138678f3e5ee8bbe94cbb6681662bb96",
  "parents": [
    "23062f78ad55a7121517c5ab00742503e95c7342"
  ],
  "author": {
    "name": "Daniel Mesejo",
    "email": "mesejoleon@gmail.com",
    "time": "Fri Jun 05 18:09:17 2026 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Jun 05 12:09:17 2026 -0400"
  },
  "message": "refactor(context): deduplicate register/read option-building logic (#1479)\n\n* refactor(context): deduplicate register/read option-building logic\n\nExtract shared helpers (convert_partition_cols, convert_file_sort_order,\nbuild_parquet/json/avro_options, convert_csv_options), standardize path\ntypes to \u0026str, and remove redundant intermediate variables.\n\n* refactor(context): accept PathBuf for path arguments in register/read methods\n\nChange path parameters from \u0026str to PathBuf in all register/read methods\n(register_listing_table, register_parquet, register_json, register_avro,\nregister_arrow, read_json, read_parquet, read_avro, read_arrow) so callers\ncan pass either a Python str or a pathlib.Path object. For register_csv and\nread_csv, which take \u0026Bound\u003cPyAny\u003e to handle lists, extract path elements as\nPathBuf rather than String for the same reason.\n\nAdd a path_to_str helper that converts PathBuf to \u0026str, returning an explicit\nerror for non-UTF-8 paths rather than silently corrupting them.\n\nAdd build_arrow_options helper to deduplicate register_arrow/read_arrow\noption-building logic, consistent with the existing parquet/json/avro helpers.\n\nCo-Authored-By: Claude Sonnet 4.6 \u003cnoreply@anthropic.com\u003e\n\n---------\n\nCo-authored-by: Claude Sonnet 4.6 \u003cnoreply@anthropic.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ce662938520b3ab081b38b9be1cce63fb80a3b0b",
      "old_mode": 33188,
      "old_path": "crates/core/src/context.rs",
      "new_id": "0db49625f60c91c9519b8e72abd3a3e27f3a442c",
      "new_mode": 33188,
      "new_path": "crates/core/src/context.rs"
    },
    {
      "type": "modify",
      "old_id": "3be3206661831a36a2e055247691450e95e26cac",
      "old_mode": 33188,
      "old_path": "python/datafusion/context.py",
      "new_id": "5dfeed719d5b3ef8f5975130ed23c724fea05a80",
      "new_mode": 33188,
      "new_path": "python/datafusion/context.py"
    }
  ]
}
