Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21649#discussion_r199328470
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -3905,6 +3905,16 @@ setMethod("rollup",
                 groupedData(sgd)
               })
     
    +isTypeAllowedForSqlHint <- function(x) {
    +  if (is.character(x) | is.numeric(x)) {
    +    TRUE
    +  } else if (is.list(x)) {
    +    all (sapply(x, (function (y) is.character(y) | is.numeric(y))))
    +  } else {
    +    FALSE
    +  }
    +}
    +
     #' hint
     #'
     #' Specifies execution plan hint and return a new SparkDataFrame.
    --- End diff --
    
    does scala have any doc on hint type supported?


---

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

Reply via email to