Description
I have a job that infers schema from mongodb and does operations such as flattening and unwinding because there are nested fields. After performing various transformations, finally when the count() is performed, it works perfectly fine in databricks runtime version 7.3 LTS but fails to perform the same in 10.4 LTS.
Below is the image that shows successful run in 7.3 LTS:
Below is the image that shows failure in 10.4 LTS:
And I have validated that there is no field in our schema that has NullType. In fact when the schema was inferred, there were Null & void type fields which were converted to string using my UDF. This issue will persists even when I infer schema on complete dataset, that is, samplePoolSize is on full data set.