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