-
Notifications
You must be signed in to change notification settings - Fork 210
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
[BUG] DynamoDB source export converts Numbers ending in 0 to scientific notation #3840
Comments
I can work this |
As part of this change, we provided an option for the user to convert the decimal number to BigDecimal of his own chosen scale (or precision) which should help handle numbers ending in 0 not to get converted into scientific notation. PR notes in the below link has the details about about how to use this and what kind of flexibility user has to tune his needs. Hence marking this ticket as fixed. |
The solution to provide a scale is useful, but ideally, the |
Describe the bug
Given an item in with a Number type ending in 0, such as
1702062202420
, the DynamoDB source will convert it to scientific notation for export items.To Reproduce
Steps to reproduce the behavior:
my_number_ending_in_0
key converted to scientific notationExpected behavior
The Numbers ending in 0 should not be manipulated and the above example should result in
Additional context
The conversion only happens for export values when converting from the ion line here (
data-prepper/data-prepper-plugins/dynamodb-source/src/main/java/org/opensearch/dataprepper/plugins/source/dynamodb/converter/ExportRecordConverter.java
Line 82 in 91ff22d
JacksonEvent
also converts to scientific notation when converting to json string (data-prepper/data-prepper-api/src/main/java/org/opensearch/dataprepper/model/event/JacksonEvent.java
Line 621 in 91ff22d
The text was updated successfully, but these errors were encountered: