Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate decimal error checking and improve error messages #1438

Merged
merged 1 commit into from
Dec 13, 2021

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Dec 12, 2021

Rationale:

As suggested by @Dandandan and @liukun4515, there is a bit of duplication and an error message mismatch: https://github.com/apache/arrow-datafusion/pull/1431/files#r766728006

Changes

Pull decimal precision error checking into a siingle function

@github-actions github-actions bot added datafusion Changes in the datafusion crate sql SQL Planner labels Dec 12, 2021
)));
}
(Some(p), Some(s)) => {
// Arrow decimal is i128 meaning 38 maximum decimal digits
Copy link
Contributor

Choose a reason for hiding this comment

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

good

Copy link
Contributor

@liukun4515 liukun4515 left a comment

Choose a reason for hiding this comment

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

LGTM

@alamb alamb merged commit 4b454d0 into apache:master Dec 13, 2021
@alamb alamb deleted the alamb/error-tweak branch August 8, 2023 20:12
mcheshkov pushed a commit to cube-js/arrow-datafusion that referenced this pull request Aug 23, 2024
Can drop this after rebase on commit 4b454d0, first released in 7.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants