Description
We could go ahead and removed the expectedType in 2.0. The only reason to keep it is to avoid breaking 3rd party implementations of PipelineStages in Python which happen to be using the expectedType arg. I doubt there are many such implementations.
Keeping that argument has led to problems with mixing the expectedType and typeConverter args, as in https://github.com/apache/spark/pull/12480