In MLlib PySpark, we sometimes test the type of an object and print an error if the object is of the wrong type. E.g.:
These checks should print the type, not the actual object. E.g., if the object cannot be converted to a string, then the check linked above will give a warning like this:
...which is weird for the user.
There may be other places in the codebase where this is an issue, so we need to check through and verify.