Skip to content

[Variant] Clean up redundant get_type_name - #8617

Merged
alamb merged 2 commits into
apache:mainfrom
liamzwbao:issue-8538-cleanup
Oct 16, 2025
Merged

alamb merged 2 commits into
apache:mainfrom
liamzwbao:issue-8538-cleanup

Conversation

@liamzwbao

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

Removes redundant get_type_name and leverages the Display trait of DataType

Are these changes tested?

Yes, 3 tests added

Are there any user-facing changes?

No

@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label Oct 15, 2025
@liamzwbao
liamzwbao marked this pull request as ready for review October 15, 2025 02:12

@alamb alamb 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.

Thank you @liamzwbao -- this looks great to me

@klion26 klion26 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.

Thanks for this improvement, LGTM

@alamb
alamb merged commit c42c0a4 into apache:main Oct 16, 2025
@alamb

alamb commented Oct 16, 2025

Copy link
Copy Markdown
Contributor

Thanks @liamzwbao and @klion26

@liamzwbao
liamzwbao deleted the issue-8538-cleanup branch October 16, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Variant] Improve the get type logic for DataType in variant to arrow row builder

3 participants