[参考link]
StructType中的一个字段
# schema
schema = StructType([
StructField('task_name', StringType(), True),
StructField('property', StringType(), True),
StructField('val', StringType(), True),
StructField('usr_type', StringType(), True),
StructField('cnt', LongType(), True),
StructField('ttl_cnt', LongType(), True),
StructField('ratio', DoubleType(), True)
])