Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-1661

[C++] Better handling when TZDB is unavailable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • C++
    • None

    Description

      When /usr/share/zoneinfo is unavailable and TZDIR env is unset, creating C++ ORC reader will crash on Windows. We need to better deal with this case. See context from the Apache Arrow community: https://github.com/apache/arrow/issues/36026 and https://github.com/apache/arrow/issues/40633

       

      We could perhaps do following things:

      • Make sure it does not crash when TZDB is missing (on Windows). The prerequisite is to enable running C++ unit tests on Windows.
      • More TZDB search locations. (e.g. $CONDA_PREFIX/usr/share/zoneinfo)
      • Do not eagerly reading TZDB when timestamp types are not required.
      • Add a runtime config to set TZDB location.
      • Ship TZDB with the ORC library while building on Windows?

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            wgtmac Gang Wu
            wgtmac Gang Wu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: