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

Hyukjin Kwon reassigned SPARK-62253:
------------------------------------

    Assignee: Hyukjin Kwon

> Compare a StructField that is its own type by identity first, keep the errors 
> of a pickle of a nested field, set the types' attributes outside their 
> borrow, copy nested types at any depth, and raise PySpark's RecursionError 
> text
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-62253
>                 URL: https://issues.apache.org/jira/browse/SPARK-62253
>             Project: Spark
>          Issue Type: Improvement
>          Components: Connect
>    Affects Versions: 5.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>
> Follow-up of SPARK-62224, from its review. The Python client differs from 
> PySpark 4.3.0 in these ways:
> - `f.dataType = f; f == f` raises RecursionError, where PySpark compares by 
> identity first and gives True.
> - StructField.__reduce__ runs a UDT's sqlType and loses a KeyboardInterrupt.
> - The setters of StructField.name and nullable, ArrayType.containsNull and 
> StructType.fields and names hold their borrow while Python code runs, which 
> gives "Already mutably borrowed" and a PanicException.
> - copy.copy fails between 300 and 1000 levels of nested types.
> - The RecursionError text of simpleString() and of an array's json() is fixed 
> in PySpark, so it can be matched; the known differences call it inherent.
> Make them behave as PySpark's.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to