Skip to content

Conversation

@AdamGS
Copy link
Contributor

@AdamGS AdamGS commented Jan 6, 2026

Which issue does this PR close?

Rationale for this change

I've implemented this function at least twice in other codebases, and arrow-rs now has 4 variants.

What changes are included in this PR?

New public function to test if a DataType is any decimal variant.

Are these changes tested?

Yes

Are there any user-facing changes?

New function including docs.

@AdamGS AdamGS changed the title Add DataType::is_decimal Add DataType::is_decimal Jan 6, 2026
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @AdamGS -- this makes sense to me

@alamb alamb merged commit 068a7e4 into apache:main Jan 6, 2026
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce is_decimal, is_string

2 participants