Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get defintiion of pysspark teable

df: DataFrame = spark.read.load('LOCATION')
schema_json = df.schema.json()
ddl = spark.sparkContext._jvm.org.apache.spark.sql.types.DataType.fromJson(schema_json).toDDL()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #defintiion #pysspark #teable
ADD COMMENT
Topic
Name
6+7 =