)]}'
{
  "commit": "3738b82366ba64cacae450e7e0e1702c66148afe",
  "tree": "25723cbef3398e601e16d8ce607e06d33cc79200",
  "parents": [
    "da33ff031472561788d7bc70a6395927ef07cd01"
  ],
  "author": {
    "name": "Gang Wu",
    "email": "ustcwg@gmail.com",
    "time": "Wed Jul 22 10:12:14 2026 +0800"
  },
  "committer": {
    "name": "Gang Wu",
    "email": "ustcwg@gmail.com",
    "time": "Wed Jul 22 10:12:14 2026 +0800"
  },
  "message": "ORC-2213: [C++] Add option to read timestamps with writer timezone\n\n### What changes were proposed in this pull request?\n\nAdd a RowReaderOptions flag that lets timestamp readers use the writer timezone recorded in each stripe footer instead of the configured reader timezone. This preserves the stored timestamp value for callers that need to avoid ORC timestamp timezone conversion.\n\n### Why are the changes needed?\n\nIn old days, ORC only supports orc::TIMESTAMP type. The semantics of orc::TIMESTAMP is equivalent to TIMESTAMP_NTZ but with a complex writer and reader timezone adjustment.  So it is difficult to support both TIMESTAMP_NTZ and TIMESTAMP_LTZ types using a single orc::TIMESTAMP. In later versions, orc::TIMESTAMP_INSTANT has been added to support TIMESTAMP_LTZ type. However, users may not know the difference under the hood and still use legacy systems to write both TIMESTAMP_LTZ and TIMESTAMP_NTZ semantics to the old orc::TIMESTAMP type. When users use orc::TIMESTAMP as TIMESTAMP_LTZ values, we should set reader timezone to the writer timezone to avoid value conversion. However, users may not know the writer timezone in advance and ORC files may have different writer timezone (considering files are produced by teams in different time zones.) We need an approach to enforce reader to use writer timezone via explicit configuration.\n\n### How was this patch tested?\n\nAdded a new test case.\n\n### Was this patch authored or co-authored using generative AI tooling?\n\nGenerated-by: Codex GPT-5.6 Sol\n\nCloses #2699 from wgtmac/ORC-2213.\n\nAuthored-by: Gang Wu \u003custcwg@gmail.com\u003e\nSigned-off-by: Gang Wu \u003custcwg@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "122a781c93558b3bba3b10e7f4fdb894d9e831d2",
      "old_mode": 33188,
      "old_path": "c++/include/orc/Reader.hh",
      "new_id": "4ae989ec5810bfb4156527c57b0fcf22f9734e3b",
      "new_mode": 33188,
      "new_path": "c++/include/orc/Reader.hh"
    },
    {
      "type": "modify",
      "old_id": "c0abf190cc1620a29539615b8d5d1c27095e3018",
      "old_mode": 33188,
      "old_path": "c++/src/Options.hh",
      "new_id": "18388780ce2d4022d490841cc247daa956cfe996",
      "new_mode": 33188,
      "new_path": "c++/src/Options.hh"
    },
    {
      "type": "modify",
      "old_id": "c409576cc9cd147061ac6309854b588cdbdcb565",
      "old_mode": 33188,
      "old_path": "c++/src/Reader.cc",
      "new_id": "4c16b737fb8d853eacedf21f13f113aa621a0445",
      "new_mode": 33188,
      "new_path": "c++/src/Reader.cc"
    },
    {
      "type": "modify",
      "old_id": "204f678e968f2fe0097e34a1a7aa546fced9a1e4",
      "old_mode": 33188,
      "old_path": "c++/src/Reader.hh",
      "new_id": "289e467930752ea1f10a0099c7bf94e02035ac14",
      "new_mode": 33188,
      "new_path": "c++/src/Reader.hh"
    },
    {
      "type": "modify",
      "old_id": "f43e80ac8e4e0ec28e19e3fa7aadbc7f01a03a0d",
      "old_mode": 33188,
      "old_path": "c++/test/TestWriter.cc",
      "new_id": "5827bcdbcae04cc98e733696906a455609a07c9c",
      "new_mode": 33188,
      "new_path": "c++/test/TestWriter.cc"
    }
  ]
}
