Below from Snowflake documentation on datatype - Number - Numbers up to 38 digits, with an optional precision and scale. INT, INTEGER, BIGINT, SMALLINT, TINYINT, BYTEINT - Synonymous with NUMBER, except that precision and scale cannot be specified (i.e. always defaults to NUMBER(38, 0)).
In Java, Long will be shorter to satisfy 38 digits. BigDecimal seems a fit, however it can have fraction part which is not needed incase of NUMBER(38, 0). Curious to know how and for what 38 digit numbers are being used? And how others are dealing with NUMBER(38, 0) from the java code perspective?
Thank you.