Github user huaxingao commented on the issue:

    https://github.com/apache/spark/pull/13287
  
    @gatorsmile 
    Sorry for the late response.  I just came back from China.
    
    For a class that has two level of constructor parameters, e.g.
    private[sql] case class JDBCRelation(
        url: String,
        table: String,
        parts: Array[Partition],
        properties: Properties = new Properties())(@transient val sparkSession: 
SparkSession)
    toJson will have problem.  The current code doesn't have problem any more 
because in the new method TreeNode.shouldConvertToJson, JDBCRelation returns 
false and is not allowed to convert to JSON. However, it seems to me that the 
root problem is not fixed. In the following cases:
    1. TreeNode that has two layers of constructor parameters.
    2. TreeNode has a constructor parameter that contains two layers of 
constructor parameters.
    And if the TreeNode can be converted to JSON, the Exception will still 
occur. 
    



---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to