Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Feb 9, 2024

Which issue does this PR close?

N/A

Rationale for this change

I noticed on #9174 there were map_err that are not needed so I figured I would propose a PR to clean them up

What changes are included in this PR?

Make code more concise

Are these changes tested?

existing tests

Are there any user-facing changes?

@alamb alamb marked this pull request as ready for review February 9, 2024 21:26
Some(val) => Decimal128Array::from(vec![val; size])
.with_precision_and_scale(precision, scale)
.map_err(|e| arrow_datafusion_err!(e)),
.with_precision_and_scale(precision, scale)?,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using ? automatically will convert the Error types.

Copy link
Contributor

@Jefffrey Jefffrey left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @alamb

@comphead comphead merged commit 5b3aacc into apache:main Feb 10, 2024
@alamb alamb deleted the alamb/cleanup_error branch February 10, 2024 21:29
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.

3 participants