Github user MechCoder commented on the pull request:

    https://github.com/apache/spark/pull/6354#issuecomment-104635990
  
    The serialization and deserialization works but trying to create a 
DataFrame using a Matrix, gives me this error, 
    
        RuntimeError: maximum recursion depth exceeded in __instancecheck__
    
    Code to replicate
    
        from pyspark.mllib.linalg import DenseMatrix, SparseMatrix, MatrixUDT
        dm1 = DenseMatrix(3, 2, [0, 1, 4, 5, 9, 10])
        sm1 = SparseMatrix(1, 1, [0, 1], [0], [2.0])
        rdd = sc.parallelize([("dense", dm1)])
        rdd.toDF()
    
    This fails with the above mentioned error.
    
    cc @davies @rxin Any thoughts would be appreciated,,


---
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]

Reply via email to