HyukjinKwon opened a new pull request, #43523:
URL: https://github.com/apache/spark/pull/43523

   ### What changes were proposed in this pull request?
   
   This PR proposes to add:
   
   - `StructType.toNullable`
   - `MapType.toNullable`
   - `ArrayType.toNullable`
   
   that returns a nullable schema.
   
   ### Why are the changes needed?
   
   See 
https://stackoverflow.com/questions/33193958/change-nullable-property-of-column-in-spark-dataframe
 as an example.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, it adds new API in both Scala and Python:
   - `StructType.toNullable`
   - `MapType.toNullable`
   - `ArrayType.toNullable`
   
   ### How was this patch tested?
   
   For Scala, it just adds an alias.
   For Python side, doctests were added.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to