Github user shivaram commented on a diff in the pull request: https://github.com/apache/spark/pull/6889#discussion_r32786101 --- Diff: R/pkg/R/sparkR.R --- @@ -278,3 +278,38 @@ sparkRHive.init <- function(jsc = NULL) { assign(".sparkRHivesc", hiveCtx, envir = .sparkREnv) hiveCtx } + +#' Assigns a group ID to all the jobs started by this thread until the group ID is set to a +#' different value or cleared. +#' +#' @param sc The existing +#' @param groupid the ID to be assigned to job groups +#' @param description description for the the job group ID +#' @param interruptOnCancel flag to indicate if the job is interrupted on job cancellation + +setJobGroup <- function(groupId, description, interruptOnCancel) { + if (exists(".sparkRjsc", envir = env)) { --- End diff -- While its technically fine to just lookup the `SparkContext` I think all our methods take in a SQLContext / SparkContext explicitly. Will that work for your use case as well ?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org