sdf_schema(x)
tbl_spark
).list
, with each list
element describing the
name
and type
of a column.
type
column returned gives the string representation of the
underlying Spark type for that column; for example, a vector of numeric
values would be returned with the type "DoubleType"
. Please see the
Spark Scala API Documentation
for information on what types are available and exposed by Spark.