Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-37328: [Python] Add a function to download and extract timezone database on Windows #38179

Merged
merged 16 commits into from
Mar 20, 2024

Conversation

AlenkaF
Copy link
Member

@AlenkaF AlenkaF commented Oct 10, 2023

Rationale for this change

There is a section in the Arrow C++ documentation with the instructions on how to download and extract text version of the IANA timezone database and on Windows. We should provide a function in PyArrow that a user would call to download and extract the timezone database from Python.

What changes are included in this PR?

Function download_tzdata_on_windows() added to python/pyarrow/util.py that downloads and extracts timezone database to a standard location in %USERPROFILE%\Downloads\tzdata on Widnows.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@github-actions
Copy link

⚠️ GitHub issue #37328 has been automatically assigned in GitHub to PR creator.

@AlenkaF AlenkaF marked this pull request as ready for review October 18, 2023 09:57
@AlenkaF AlenkaF added this to the 15.0.0 milestone Nov 15, 2023
@AlenkaF
Copy link
Member Author

AlenkaF commented Nov 15, 2023

@jorisvandenbossche forgot about this PR a bit. It would be good to have it in 15.0.0 =)

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some quick comments!

python/pyarrow/util.py Outdated Show resolved Hide resolved
python/pyarrow/util.py Outdated Show resolved Hide resolved
python/pyarrow/util.py Outdated Show resolved Hide resolved
@github-actions github-actions bot added awaiting review Awaiting review awaiting changes Awaiting changes awaiting committer review Awaiting committer review and removed awaiting review Awaiting review awaiting changes Awaiting changes labels Dec 19, 2023
@raulcd raulcd modified the milestones: 15.0.0, 16.0.0 Jan 8, 2024
@raulcd raulcd removed this from the 16.0.0 milestone Jan 8, 2024
Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the slow follow-up here!

python/pyarrow/tests/test_util.py Outdated Show resolved Hide resolved
python/pyarrow/tests/test_util.py Outdated Show resolved Hide resolved
python/pyarrow/util.py Outdated Show resolved Hide resolved
@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Mar 14, 2024
Co-authored-by: Joris Van den Bossche <[email protected]>
@github-actions github-actions bot added awaiting change review Awaiting change review awaiting changes Awaiting changes and removed awaiting changes Awaiting changes awaiting change review Awaiting change review labels Mar 14, 2024
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Mar 18, 2024
Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jorisvandenbossche jorisvandenbossche merged commit e52017a into apache:main Mar 20, 2024
15 checks passed
@jorisvandenbossche jorisvandenbossche removed the awaiting change review Awaiting change review label Mar 20, 2024
@github-actions github-actions bot added the awaiting merge Awaiting merge label Mar 20, 2024
@AlenkaF AlenkaF deleted the gh-37328-extract-tzdata branch March 20, 2024 08:34
Copy link

After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit e52017a.

There was 1 benchmark result indicating a performance regression:

The full Conbench report has more details. It also includes information about 17 possible false positives for unstable benchmarks that are known to sometimes produce them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Python] Add a function to download and extract timezone database
3 participants