Github user szczeles commented on the issue:
https://github.com/apache/spark/pull/14540
@holdenk I've checked setSeed methods in MLlib and it seems py4j handles
them well. If function gets simple arguments (strings, numerric, bool), py4j
applies conversion between types (see
https://github.com/bartdag/py4j/blob/master/py4j-java/src/main/java/py4j/reflection/MethodInvoker.java#L99).
For setSeed(Long), if argument is mapped to Integer, it goes through
toString and Long.parseLong (see
https://github.com/bartdag/py4j/blob/master/py4j-java/src/main/java/py4j/reflection/TypeConverter.java#L88)
Apparently, this conversion does not work for complex types like
fromOffsets map.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]