Skip to content

GH-50455: [Ruby] Add ArrowFormat::TimeType#==#50461

Merged
kou merged 1 commit into
apache:mainfrom
Reranko05:gh-50455-time-type-eq
Jul 10, 2026
Merged

GH-50455: [Ruby] Add ArrowFormat::TimeType#==#50461
kou merged 1 commit into
apache:mainfrom
Reranko05:gh-50455-time-type-eq

Conversation

@Reranko05

@Reranko05 Reranko05 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

Comparing ArrowFormat::Time32Type and ArrowFormat::Time64Type instances with the same unit should return true.

What changes are included in this PR?

Add ArrowFormat::TimeType#==.

Are these changes tested?

Yes.

Added tests for:

  • Time32Type
    • equal types
    • different units
  • Time64Type
    • equal types
    • different units

Are there any user-facing changes?

Yes.

GitHub Issue: #50455

Copilot AI review requested due to automatic review settings July 10, 2026 05:56
@Reranko05 Reranko05 requested a review from kou as a code owner July 10, 2026 05:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

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

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you split this to test-time32-type.rb to test-time64-type.rb? We may add more tests to them later.

@github-actions github-actions Bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Jul 10, 2026
Signed-off-by: Aaditya Srinivasan <aadityasri03@gmail.com>
Copilot AI review requested due to automatic review settings July 10, 2026 07:22
@Reranko05 Reranko05 force-pushed the gh-50455-time-type-eq branch from bed0480 to 13299bc Compare July 10, 2026 07:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@kou kou merged commit 783d735 into apache:main Jul 10, 2026
33 checks passed
@kou kou removed the awaiting merge Awaiting merge label Jul 10, 2026
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.

3 participants