Skip to content

Conversation

@stenlarsson
Copy link
Contributor

@stenlarsson stenlarsson commented Dec 5, 2025

Rationale for this change

The DayOfWeekOptions class is not available in GLib/Ruby, and it is used together with the day_of_week compute function.

What changes are included in this PR?

This adds the DayOfWeekOptions class to GLib.

Are these changes tested?

Yes, with Ruby unit tests.

Are there any user-facing changes?

Yes, a new class.

@stenlarsson stenlarsson requested a review from kou as a code owner December 5, 2025 14:25
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

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

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

def test_day_of_week_function_with_week_start
omit("Missing tzdata on Windows") if Gem.win_platform?
args = [
Arrow::ArrayDatum.new(build_timestamp_array(:milli, [1504953190000])),
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a comment the timestamp (with day of week) of 1504953190000?

Suggested change
Arrow::ArrayDatum.new(build_timestamp_array(:milli, [1504953190000])),
# 2017-09-09T10:33:10Z (Saturday)
Arrow::ArrayDatum.new(build_timestamp_array(:milli, [1504953190000])),

@stenlarsson stenlarsson force-pushed the glib-day-of-week-options branch from 9b60b26 to 1401e49 Compare December 10, 2025 16:51
@stenlarsson
Copy link
Contributor Author

Thanks for the review @kou. Updated according to your suggestion.

@kou kou merged commit 3cf59d8 into apache:main Dec 10, 2025
12 checks passed
@kou kou removed the awaiting review Awaiting review label Dec 10, 2025
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.

2 participants