Hyukjin Kwon created SPARK-62236:
------------------------------------
Summary: 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
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]