You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/10/24 08:30:25 UTC

[GitHub] [spark] zhengruifeng opened a new pull request, #38373: [SPARK-40897][DOCS] Add some PySpark APIs to References

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

   ### What changes were proposed in this pull request?
   add following missing APIs to references:
   
   - StorageLevel.MEMORY_AND_DISK_DESER
   - TaskContext.cpus
   - BarrierTaskContext.cpus
   
   ### Why are the changes needed?
   they were missing in Reference
   
   
   ### Does this PR introduce _any_ user-facing change?
   Yes
   
   
   ### How was this patch tested?
   manually check, for `BarrierTaskContext.cpus`
   
   ```
   In [10]: from pyspark import BarrierTaskContext
   
   In [11]: rdd = spark.sparkContext.parallelize([1])
   
   In [12]: rdd.barrier().mapPartitions(lambda _: [BarrierTaskContext.get().cpus()]).collect()
   Out[12]: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
   ```
   


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


[GitHub] [spark] HyukjinKwon closed pull request #38373: [SPARK-40897][DOCS] Add some PySpark APIs to References

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #38373: [SPARK-40897][DOCS] Add some PySpark APIs to References
URL: https://github.com/apache/spark/pull/38373


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


[GitHub] [spark] HyukjinKwon commented on pull request #38373: [SPARK-40897][DOCS] Add some PySpark APIs to References

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on PR #38373:
URL: https://github.com/apache/spark/pull/38373#issuecomment-1288842403

   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