Skip to content

Conversation

@tenthe
Copy link
Contributor

@tenthe tenthe commented Jan 16, 2026

Purpose

This PR addresses an issue where the migration of CorrectionValueTransformationRuleDescription caused precision loss for small positive values. The DecimalFormat pattern previously used a limited number of decimal places, causing values like 0.00001 to be rounded to 0.

Changes

Updated the DecimalFormat pattern from 0.### to 0.######################## to ensure high-precision decimals are preserved during the transformation.

Remarks

PR introduces (a) breaking change(s): no

PR introduces (a) deprecation(s): no

@github-actions github-actions bot added java Pull requests that update Java code backend Everything that is related to the StreamPipes backend testing Relates to any kind of test (unit test, integration, or E2E test). labels Jan 16, 2026
@tenthe tenthe merged commit 5557115 into dev Jan 16, 2026
23 checks passed
@tenthe tenthe deleted the 4101-precision-loss-in-correctionvaluetransformationruledescription-migration branch January 16, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Everything that is related to the StreamPipes backend java Pull requests that update Java code testing Relates to any kind of test (unit test, integration, or E2E test).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Precision loss in CorrectionValueTransformationRuleDescription migration

2 participants