Hyukjin Kwon created SPARK-62228:
------------------------------------

             Summary: Read the fields of the StructType of a cast and of 
DataFrame.to() when the plan is rendered and built, as PySpark does
                 Key: SPARK-62228
                 URL: https://issues.apache.org/jira/browse/SPARK-62228
             Project: Spark
          Issue Type: Improvement
          Components: Connect
    Affects Versions: 5.0.0
            Reporter: Hyukjin Kwon


A cast to a plain StructType, or a DataFrame.to() that fails, fixes the struct 
type at the call in the drop-in, where PySpark reads it when it renders and 
builds the plan: after a cast, a field appended to the StructType shows in 
PySpark's repr (STRUCT<A:BIGINT,B:BIGINT>) but not in the drop-in's 
(STRUCT<A:BIGINT>). Read it as PySpark does.




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