📜  如何使用字符串创建火花模式 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:05.660000             🧑  作者: Mango

代码示例1
DDLSchema = "user_id string, user_first_touch_timestamp long, email string"

usersDF = (spark.read
  .option("sep", "\t")
  .option("header", True)
  .schema(DDLSchema)
  .csv(usersCsvPath))