R/sdf_schema_tree.R

Defines functions sdf_schema_tree

sdf_schema_tree <- function (object){
  jobj <- spark_dataframe(object)
  schema <- invoke(jobj, "schema")
  fields <- invoke(schema, "fields")
  obj <- spark_jobj(schema)
  schemaString <- invoke(obj, "treeString")
  cat(schemaString)
}
environment(sdf_schema_tree) <- asNamespace('sparklyr')
catlain/sparklyrfun documentation built on Jan. 21, 2018, 4:11 a.m.