Github user shivaram commented on a diff in the pull request:
https://github.com/apache/spark/pull/14173#discussion_r70705110
--- Diff: R/pkg/R/column.R ---
@@ -235,20 +248,16 @@ setMethod("cast",
function(x, dataType) {
if (is.character(dataType)) {
column(callJMethod(x@jc, "cast", dataType))
- } else if (is.list(dataType)) {
--- End diff --
Actually this was broken code in the sense that `tojson` is not a valid
function defined in base R or SparkR. I think this is a remnant from early code
written in amplab-extras/SparkR-pkg. I will remove the examples above -- thats
a good point
---
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]