Xi Lyu created SPARK-52450: ------------------------------ Summary: Improve performance of schema deepcopy Key: SPARK-52450 URL: https://issues.apache.org/jira/browse/SPARK-52450 Project: Spark Issue Type: Improvement Components: Connect Affects Versions: 4.0.0, 4.1.0, 4.0.1 Reporter: Xi Lyu
In Spark Connect, `DataFrame.schema` returns a deep copy of the schema to prevent unexpected behavior caused by user modifications to the returned schema object. However, if a user accesses `df.schema` repeatedly on a DataFrame with a complex schema, it can lead to noticeable performance degradation. Since `deepcopy` is already known for its performance overhead, we should consider using an alternative serialization/deserialization (ser/de) method to improve the efficiency of accessing `df.schema`. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org