Answers for "how to get defintiion of pysspark teable"

0

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()
Posted by: Guest on April-27-2022

Python Answers by Framework

Browse Popular Code Answers by Language