Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SCALA

scala schemaPayload json

import org.apache.spark.sql.types.{DataType, StructType}
    val newSchema = DataType.fromJson(jsonString).asInstanceOf[StructType]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scala #schemaPayload #json
ADD COMMENT
Topic
Name
8+8 =