You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HyukjinKwon (via GitHub)" <gi...@apache.org> on 2023/10/25 06:56:55 UTC

[PR] [SPARK-45661][SQL][PYTHON] Add toNullable in StructType, MapType and ArrayType [spark]

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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-45661][SQL][PYTHON] Add toNullable in StructType, MapType and ArrayType [spark]

Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon closed pull request #43523: [SPARK-45661][SQL][PYTHON] Add toNullable in StructType, MapType and ArrayType
URL: https://github.com/apache/spark/pull/43523


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-45661][SQL][PYTHON] Add toNullable in StructType, MapType and ArrayType [spark]

Posted by "HyukjinKwon (via GitHub)" <gi...@apache.org>.
HyukjinKwon commented on PR #43523:
URL: https://github.com/apache/spark/pull/43523#issuecomment-1780237735

   Merged to master.


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org