kangtiann opened a new pull request #26149: [SPARK-29267][CORE] Support rdd.countApprox should stop when 'timeout' URL: https://github.com/apache/spark/pull/26149 ### What changes were proposed in this pull request? - Add 2 api method for spark core, similar to rdd.countApprox - def countApprox(confidence: Double, samplePartitions: Int) - def countApprox(confidence: Double, samplePercent: Double) ### Why are the changes needed? Current countApprox(timeout: Long, confidence: Double = 0.95) can not stop when timeout comes, still running at background, this is a waste of resources. ### Does this PR introduce any user-facing change? Yes, user can using countApprox() like:  ### How was this patch tested? No test case added, but testing by spark-shell, like: 
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
