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

Hyukjin Kwon reassigned SPARK-62236:
------------------------------------

    Assignee: Hyukjin Kwon

> Write the schema of createDataFrame of a pandas DataFrame, and the json() of 
> a StructType, of a subclass that overrides the reads of its fields as 
> PySpark's json() reads them
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-62236
>                 URL: https://issues.apache.org/jira/browse/SPARK-62236
>             Project: Spark
>          Issue Type: Improvement
>          Components: Connect
>    Affects Versions: 5.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Major
>              Labels: pull-request-available
>
> PySpark 4.3.0 writes the schema of createDataFrame of a pandas DataFrame, and 
> the json() of a StructType, from the attributes of the fields as a subclass 
> gives them, such as a StructField subclass whose dataType property gives 
> StringType: PySpark's relation is struct<a:string>. The Python client's table 
> follows the override but its schema does not, so the request raises 
> AnalysisException, and the client's json() of such a StructType does not read 
> the property either. Write them as PySpark's json() reads them.



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