Numeric Types - 8.0

Talend Data Mapper User Guide

Version
8.0
Language
English
Product
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development > Designing Jobs
Last publication date
2024-03-28

JSON does not specify a mechanism to determine the scope of numbers, so these have to be derived by looking at the actual values when importing the JSON. The importer will use either the Decimal or Double data type when encountering a number, depending on the presence or absence of the e (exponent) value. Decimal is assumed rather than integer because the size of the number could be larger than an Integer (or even 64-bit Long). In addition, the number could actually have a fractional component in the actual data. Decimal will thus always work in these situations. Double is assumed for floating point numbers (having the exponent value).