Github user yu-iskw commented on a diff in the pull request:
https://github.com/apache/spark/pull/8194#discussion_r37131453
--- Diff: R/pkg/R/functions.R ---
@@ -67,6 +67,14 @@ createFunctions <- function() {
createFunctions()
+#' @rdname functions
+#' @return Creates a Column class of literal value.
+#' @export
+lit <- function(x) {
--- End diff --
Can we define a S4 function which has argument signitures which are like
`Any`? As far as I know, `setMethod` requires signatures of argument objects.
The argument of `lit` in Scala is `Any`. Otherwise, we should define
multiple S4 function as follows.
```
setMethod("lit", signature("numeric"), .....)
setMethod("lit", signature("character"), .....)
...
```
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]