Github user kanzhang commented on a diff in the pull request:
https://github.com/apache/spark/pull/1338#discussion_r15296619
--- Diff:
core/src/main/scala/org/apache/spark/api/python/PythonHadoopUtil.scala ---
@@ -31,13 +31,14 @@ import org.apache.spark.annotation.Experimental
* transformation code by overriding the convert method.
*/
@Experimental
-trait Converter[T, U] extends Serializable {
+trait Converter[T, +U] extends Serializable {
--- End diff --
@mateiz thanks, Matei. I saw it but I couldn't believe that was the reason
:-). I added the + sign because some of our converters have more specific types
like [Any, Writable] and the compiler complains when assigning them to where
[Any, Any] is required. I don't have a strong preference here and could change
them back to [Any, Any]. Let me know.
---
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.
---