Github user NarineK commented on a diff in the pull request:
https://github.com/apache/spark/pull/13760#discussion_r68298040
--- Diff: R/pkg/R/group.R ---
@@ -243,17 +236,73 @@ setMethod("gapply",
signature(x = "GroupedData"),
function(x, func, schema) {
try(if (is.null(schema)) stop("schema cannot be NULL"))
--- End diff --
with or without try both work work fine.
Without try the error looks like:
Error in .local(x, ...) : schema cannot be NULL
with try:
Error in try(if (is.null(schema)) stop("schema cannot be NULL")) :
schema cannot be NULL
Is there a convention in SparkR for showing an error message ?
---
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]