You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "liosc (via GitHub)" <gi...@apache.org> on 2024/01/09 07:31:24 UTC
[I] Javascript transform changes last digit in big integer numbers (hop)
liosc opened a new issue, #3539:
URL: https://github.com/apache/hop/issues/3539
### Apache Hop version?
2.7.0-20231117.105351-1
### Java version?
Eclipse Adoptium\jdk-11.0.15.10-hotspot
### Operating system
Windows
### What happened?
In case you have an integer number with more than 16 digits, last digit is changed by javascript even simply logging the field.
### Issue Priority
Priority: 2
### Issue Component
Component: Transforms
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Javascript transform changes last digit in big integer numbers (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #3539:
URL: https://github.com/apache/hop/issues/3539#issuecomment-1908913157
Thank you for the sample @liosc
The filetypes are a github limitation, not our choice.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Javascript transform changes last digit in big integer numbers (hop)
Posted by "nadment (via GitHub)" <gi...@apache.org>.
nadment commented on issue #3539:
URL: https://github.com/apache/hop/issues/3539#issuecomment-1908805625
Can you create a simple pipeline to reproduce this error?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Javascript transform changes last digit in big integer numbers (hop)
Posted by "mattcasters (via GitHub)" <gi...@apache.org>.
mattcasters commented on issue #3539:
URL: https://github.com/apache/hop/issues/3539#issuecomment-5038930800
This is caused by the JavaScript language itself.
```
JavaScript numbers are always stored as double precision floating point numbers, following the international IEEE 754 standard.
```
TODO: document this loss of precision due to Integer-to-Double-Integer conversions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Javascript transform changes last digit in big integer numbers (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #3539: Javascript transform changes last digit in big integer numbers
URL: https://github.com/apache/hop/issues/3539
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Javascript transform changes last digit in big integer numbers (hop)
Posted by "liosc (via GitHub)" <gi...@apache.org>.
liosc commented on issue #3539:
URL: https://github.com/apache/hop/issues/3539#issuecomment-1908874778
I did but I was not able to attach it to the ticket cause it let me add only some types of file, not .hpl. Now I noticed there is zip type so I zipped the pipeline and drop it here. Let me know if you can use it.
P.S.: is it by choice that it is not possible to attach .hpl files or is it only me experiencing this limitation?
[javascript-big-integer-bad-rounding.zip](https://github.com/apache/hop/files/14043358/javascript-big-integer-bad-rounding.zip)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org