You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2014/06/18 22:02:25 UTC

[jira] [Updated] (SPARK-2104) RangePartitioner should use user specified serializer to serialize range bounds

     [ https://issues.apache.org/jira/browse/SPARK-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reynold Xin updated SPARK-2104:
-------------------------------

    Description: 
Otherwise it is pretty annoying to do a sort on types that are not java serializable. 

To reproduce, just set the serializer to Kryo, and run the following job:
{code}
class JavaNonSerializableClass extends Comparable { override def compareTo(o: JavaNonSerializableClass) = 0 }

sc.parallelize(Seq(new JavaNonSerializableClass, new JavaNonSerializableClass), 2).map(x => (x,x)).sortByKey()
{code}



  was:Otherwise it is pretty annoying to do a sort on types that are not java serializable. 


> RangePartitioner should use user specified serializer to serialize range bounds
> -------------------------------------------------------------------------------
>
>                 Key: SPARK-2104
>                 URL: https://issues.apache.org/jira/browse/SPARK-2104
>             Project: Spark
>          Issue Type: Bug
>            Reporter: Reynold Xin
>
> Otherwise it is pretty annoying to do a sort on types that are not java serializable. 
> To reproduce, just set the serializer to Kryo, and run the following job:
> {code}
> class JavaNonSerializableClass extends Comparable { override def compareTo(o: JavaNonSerializableClass) = 0 }
> sc.parallelize(Seq(new JavaNonSerializableClass, new JavaNonSerializableClass), 2).map(x => (x,x)).sortByKey()
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)