spark-json-schema icon indicating copy to clipboard operation
spark-json-schema copied to clipboard

Support for decimalType

Open ygeszvain opened this issue 4 years ago • 0 comments

Hello,

We have some long digits of numbers coming in as number or integer. The precision could be up to 15 digits. The numbers get rounded up. Are we able to map number or integer type from schema to decimalType?

"string" -> StringType, "number" -> DecimalType, "float" -> FloatType, "integer" -> LongType, "boolean" -> BooleanType, "object" -> StructType, "array" -> ArrayType

Thanks,

Randy

ygeszvain avatar Mar 09 '20 21:03 ygeszvain