Took us a while to figure out how to fix this with pyspark this might save a few people a few hours...
The documentation describes vaguely how to fix the issue, by setting a parameter but without an actual working example.
With the given PySpark example it should hold enough information to set this in other scenarios as well.
Kept the change to the docs as small as possible.
doc update, see title
save people time figuring out how to resolve it
no code changes