Skip to content

Add number handling options to round/truncate decimals - #177

Merged
AdrianStrugala merged 2 commits into
AdrianStrugala:masterfrom
robertcoltheart:feature/number-handling
Sep 18, 2025
Merged

Add number handling options to round/truncate decimals#177
AdrianStrugala merged 2 commits into
AdrianStrugala:masterfrom
robertcoltheart:feature/number-handling

Conversation

@robertcoltheart

Copy link
Copy Markdown
Contributor

We find ourselves constantly hitting the error message that our decimals do not fit into the scale/precision of the defined Avro schema. This change adds an opt-in handling for decimals that fall outside of the decimal schema with either truncating or rounding.

The default behavior is preserved, so large decimals will continue to throw an exception when writing a decimal value.

@robertcoltheart

Copy link
Copy Markdown
Contributor Author

@AdrianStrugala Any chance to take a look at this?

@AdrianStrugala
AdrianStrugala merged commit ca3b8be into AdrianStrugala:master Sep 18, 2025
1 check passed
@AdrianStrugala

Copy link
Copy Markdown
Owner

Hey, thank you for the PR.
The changes are merged and released under v.3.4.16.
Best,
Adrian

@robertcoltheart
robertcoltheart deleted the feature/number-handling branch September 18, 2025 21:59
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.

2 participants