apache / hop

Hop Orchestration Platform
https://hop.apache.org/
Apache License 2.0
940 stars 342 forks source link

Javascript transform changes last digit in big integer numbers #3539

Open liosc opened 8 months ago

liosc commented 8 months ago

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. The behaviour is the same in Hop version 2.5 and also in PDI.

Issue Priority

Priority: 2

Issue Component

Component: Transforms

nadment commented 8 months ago

Can you create a simple pipeline to reproduce this error?

liosc commented 8 months ago

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

hansva commented 8 months ago

Thank you for the sample @liosc The filetypes are a github limitation, not our choice.