Description
When creating a dataset using the Java Bean Encoder with a bean that contains a field which is a java.math.BigInteger the dataset will fail to serialize correctly. When trying to serialize the dataset, Spark throws the following error:
Exception in thread "main" org.apache.spark.sql.AnalysisException: Cannot up cast `bigInteger` from struct<> to decimal(38,18).
Reproduction steps:
Using the Java Dataset API:
- Create a Bean with a java.math.BigInteger field
- Pass said Bean into the Java SparkSession createDataset function