Pyspark sizeestimator example. Explicitly declaring schema type resolved the issue.

Lawn Fungus