Skip to content

GH-49970: [GLib] Enable tests for custom extension data type - #49971

Merged
kou merged 1 commit into
apache:mainfrom
kou:glib-test-extension-data-type
Sep 3, 2026
Merged

GH-49970: [GLib] Enable tests for custom extension data type#49971
kou merged 1 commit into
apache:mainfrom
kou:glib-test-extension-data-type

Conversation

@kou

@kou kou commented May 12, 2026

Copy link
Copy Markdown
Member

Rationale for this change

There are some omitted custom extension data type tests because gobject-introspection gem doesn't have enough features. But recent gobject-introspection gem provides these features.

What changes are included in this PR?

Enable omitted tests with recent gobject-introspection gem.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

Copilot AI lite review requested due to automatic review settings May 12, 2026 22:05
@github-actions

Copy link
Copy Markdown

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

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.

Pull request overview

Enables previously omitted Ruby/GLib tests for a custom Arrow::ExtensionDataType now that the gobject-introspection Ruby bindings support implementing the required virtual methods.

Changes:

  • Implement virtual_do_get_extension_name and virtual_do_get_array_gtype in the test’s custom extension data type.
  • Remove omit(...) calls so extension type behaviors (to_s, extension_name, wrapping arrays/chunked arrays) are exercised.
  • Fix chunked-array expectations to use n_chunks and value_data_type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +30 to +36
def virtual_do_get_extension_name
"uuid"
end

# TODO
# def get_array_gtype_impl
# UUIDArray.gtype
# end
def virtual_do_get_array_gtype
UUIDArray.gtype
end
@kou
kou force-pushed the glib-test-extension-data-type branch from 9d91616 to fcabe47 Compare May 12, 2026 23:33
@kou
kou force-pushed the glib-test-extension-data-type branch from fcabe47 to aeed058 Compare May 20, 2026 05:11
Copilot AI review requested due to automatic review settings September 3, 2026 02:56
@kou
kou force-pushed the glib-test-extension-data-type branch from aeed058 to 631f1b1 Compare September 3, 2026 02: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.

🟢 Approval recommended

The changes are localized to GLib Ruby tests and align with existing virtual-method override patterns already used elsewhere in the test suite.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@kou

kou commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

+1

@kou
kou merged commit 9587241 into apache:main Sep 3, 2026
36 of 37 checks passed
@kou
kou deleted the glib-test-extension-data-type branch September 3, 2026 06:27
@kou kou removed the awaiting committer review Awaiting committer review label Sep 3, 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.

2 participants