Github user wangyum commented on the issue:

    https://github.com/apache/spark/pull/22179
  
    Sorry @dongjoon-hyun I only reproduce one test.
    kryo-parametrized-type-inheritance related to language. It seems scala 
can't reproduce it:
    ```scala
        val ser = new KryoSerializer(new 
SparkConf).newInstance().asInstanceOf[KryoSerializerInstance]
    
        class BaseType[R] {}
        class CollectionType(val child: BaseType[_]*) extends BaseType[Boolean] 
{
          val children: List[BaseType[_]] = child.toList
        }
        class ValueType[R](val v: R) extends BaseType[R] {}
    
        val value = new CollectionType(new ValueType("hello"))
    
        ser.serialize(value)
    ```
    
    SPARK-23131 may be related to data. I can't reproduce it:
    ```scala
      def modelToString(model: GeneralizedLinearRegressionModel): (String, 
String) = {
        val os: ByteArrayOutputStream = new ByteArrayOutputStream()
        val zos = new GZIPOutputStream(os)
        val oo: ObjectOutputStream = new ObjectOutputStream(zos)
        oo.writeObject(model)
        oo.close()
        zos.close()
        os.close()
        (model.uid, DatatypeConverter.printBase64Binary(os.toByteArray))
      }
    ```


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to