class NULL 对象的分配对于 R 中的 @sdf 无效
Assignment of an object of class NULL is not valid for @sdf in R
我在 运行 databricks 中的这段代码时遇到错误,
我是 R 和 spark 的新手。有人可以帮我吗?
%r
sql("REFRESH TABLE view_for_R")
p <- sql("SELECT * FROM view_for_R")
p <- as.data.frame(p)
Error in (function (cl, name, valueClass) :
assignment of an object of class “NULL” is not valid for @‘sdf’ in an object of class “SparkDataFrame”; is(value, "jobj") is not TRUE
Some( Error in (function (cl, name, valueClass) : assignment of an object of class “NULL” is not valid for @‘sdf’ in an object of class “SparkDataFrame”; is(value, "jobj") is not TRUE )
Error in (function (cl, name, valueClass) : assignment of an object of class “NULL” is not valid for @‘sdf’ in an object of class “SparkDataFrame”; is(value, "jobj") is not TRUE
重启集群帮助我解决了同样的问题。
我在 运行 databricks 中的这段代码时遇到错误,
我是 R 和 spark 的新手。有人可以帮我吗?
%r
sql("REFRESH TABLE view_for_R")
p <- sql("SELECT * FROM view_for_R")
p <- as.data.frame(p)
Error in (function (cl, name, valueClass) : assignment of an object of class “NULL” is not valid for @‘sdf’ in an object of class “SparkDataFrame”; is(value, "jobj") is not TRUE Some( Error in (function (cl, name, valueClass) : assignment of an object of class “NULL” is not valid for @‘sdf’ in an object of class “SparkDataFrame”; is(value, "jobj") is not TRUE ) Error in (function (cl, name, valueClass) : assignment of an object of class “NULL” is not valid for @‘sdf’ in an object of class “SparkDataFrame”; is(value, "jobj") is not TRUE
重启集群帮助我解决了同样的问题。